add basic printing of sequence
parent
5396ca7667
commit
3fe135db8f
|
|
@ -1,6 +1,29 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
||||||
|
#define SEQ_MAX_LEN 8
|
||||||
|
|
||||||
|
/* Inputs */
|
||||||
|
// Clock In
|
||||||
|
// Reset In
|
||||||
|
|
||||||
|
/* Outputs */
|
||||||
|
// CV Out
|
||||||
|
// Gate Out
|
||||||
|
|
||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
|
/* Initialize sequence */
|
||||||
|
uint8_t sequence[SEQ_MAX_LEN] = {0};
|
||||||
|
uint8_t seq_len = SEQ_MAX_LEN;
|
||||||
|
|
||||||
|
/* Main Loop */
|
||||||
|
while (1) {
|
||||||
|
for (uint8_t step = 0; step < seq_len; step++) {
|
||||||
|
printf("%i", sequence[step]);
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue