piano 4 octaves 8 notes, little bug display

Dependencies:   TextLCD

Fork of Nucleo_piano by Adeline Galasso

button_value.h

Committer:
aknin001
Date:
2018-07-03
Revision:
6:58bab17100a2
Parent:
3:ca0d5d72f842

File content as of revision 6:58bab17100a2:

#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