Add Serial UART communication to display action messages (Play notes X, release notes, change gamme X to gamme Y)

Dependencies:   TextLCD

Fork of Nucleo_piano_final_clean by karine aknin

button_value.h

Committer:
Aliened
Date:
2018-07-04
Revision:
9:653ee515b0ad
Parent:
3:ca0d5d72f842

File content as of revision 9:653ee515b0ad:

#ifndef     BUTTON_VALUE_H_
#define     BUTTON_VALUE_H_

#define PERIOD(x) 1.0 / (x * 1000000.0)

#define ALL_BUTTONS 0x0;
#define NO_BUTTONS 0xF;

#define DO 0xE;   // DO
#define BUTTON_1_2 0xC;
#define BUTTON_1_2_3 0x8;
#define BUTTON_1_2_4 0x4;
#define BUTTON_1_3 0xA;
#define BUTTON_1_3_4 0x2;
#define BUTTON_1_4 0x6;

#define RE 0xD;   // RE
#define BUTTON_2_3 0x9;
#define BUTTON_2_3_4 0x1;
#define BUTTON_2_4 0x5;

#define MI 0xB;   // MI
#define BUTTON_3_4 0x3;

#define FA 0x7;   // FA

void        check_buttons();

#endif