Restructuring, refactoring.

This commit is contained in:
2023-08-22 14:32:09 +02:00
parent 200a27fd06
commit e9f95591bc
5 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
#ifndef ANIMATIONFUNCTIONS_H
#define ANIMATIONFUNCTIONS_H
#include <Arduino.h>
enum Direction
{
RIGHT,
LEFT,
UP,
DOWN
};
Direction next_direction(Direction dir, int d);
int random_snake(bool init, const uint8_t len, const uint32_t color, int numSteps);
int random_tetris(bool init);
int draw_spiral(bool init, bool empty, uint8_t size);
void show_digital_clock(uint8_t hours, uint8_t minutes, uint32_t color);
#endif /* ANIMATIONFUNCTIONS_H */