arduino-toy-projects/super_simon/include/utils.h

23 lines
525 B
C
Raw Normal View History

//
// Created by Gabriel Augendre on 29/04/2021.
//
#ifndef SUPER_SIMON_UTILS_H
#define SUPER_SIMON_UTILS_H
void activate(byte index);
void buzz(byte index, unsigned long duration = 0);
bool buttonIsPressed(byte index);
void deactivateAll();
2021-04-29 17:38:54 +02:00
void playSequence(const byte sequence[], byte upTo);
2021-04-29 20:23:21 +02:00
bool userSequence(const byte sequence[], byte upTo);
byte waitForButton();
2021-05-04 15:47:10 +02:00
void error(byte index);
2021-04-29 20:23:21 +02:00
void endGame(LiquidCrystal lcd, bool win, byte score);
void configure();
2021-04-30 08:09:38 +02:00
void blink(byte index);
#endif //SUPER_SIMON_UTILS_H