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

20 lines
489 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();
void error();
void endGame(LiquidCrystal lcd, bool win, byte score);
void configure();
#endif //SUPER_SIMON_UTILS_H