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

20 lines
513 B
C

//
// 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();
void playSequence(const byte sequence[], byte upTo);
bool userSequence(const byte sequence[], byte upTo);
byte waitForButton();
void error();
void endGame(LiquidCrystal lcd, bool win, byte score);
void configure();
void blink(byte index);
#endif //SUPER_SIMON_UTILS_H