avr-firmwares/pingpong.c

26 lines
477 B
C
Raw Permalink Normal View History

#include <util/delay.h>
#include "drivers/framebuffer.h"
2018-10-03 22:20:35 +02:00
#include "drivers/fbticker.h"
#include "drivers/fbani_starhopper.h"
#include "drivers/fbani_recorder.h"
2018-10-03 09:16:54 +02:00
2018-10-03 22:20:35 +02:00
void fbani_binary(uint16_t max) {
2018-10-03 09:16:54 +02:00
uint16_t i = 0;
2018-10-03 22:20:35 +02:00
for (i = 0; i < max; i++) {
_delay_ms(50);
fb_shift(i);
}
}
int main() {
unsigned char c;
2018-10-03 09:16:54 +02:00
while(1) {
2018-10-03 22:20:35 +02:00
fbani_starhopper(40);
fbani_binary(256);
fbani_recorder(50);
for (c = 'A'; c <= 'Z'; c++) {
fbticker_putc(c);
2018-10-03 09:16:54 +02:00
}
2018-10-03 22:20:35 +02:00
};
2018-10-03 09:16:54 +02:00
}