piano 4 octaves, 8 notes, 3 threads, 2 outputs, no bug, clean code, comments, remove old .h

Dependencies:   TextLCD

Fork of Nucleo_piano_CS435 by karine aknin

Committer:
aknin001
Date:
Thu Jul 05 01:08:36 2018 +0000
Revision:
9:9a36b66869fa
Parent:
3:ca0d5d72f842
final project finish tested and commented

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Aliened 3:ca0d5d72f842 1 #ifndef BUTTON_VALUE_H_
Aliened 3:ca0d5d72f842 2 #define BUTTON_VALUE_H_
Aliened 3:ca0d5d72f842 3
Aliened 3:ca0d5d72f842 4 #define PERIOD(x) 1.0 / (x * 1000000.0)
Aliened 3:ca0d5d72f842 5
Aliened 3:ca0d5d72f842 6 #define ALL_BUTTONS 0x0;
Aliened 3:ca0d5d72f842 7 #define NO_BUTTONS 0xF;
Aliened 3:ca0d5d72f842 8
Aliened 3:ca0d5d72f842 9 #define DO 0xE; // DO
Aliened 3:ca0d5d72f842 10 #define BUTTON_1_2 0xC;
Aliened 3:ca0d5d72f842 11 #define BUTTON_1_2_3 0x8;
Aliened 3:ca0d5d72f842 12 #define BUTTON_1_2_4 0x4;
Aliened 3:ca0d5d72f842 13 #define BUTTON_1_3 0xA;
Aliened 3:ca0d5d72f842 14 #define BUTTON_1_3_4 0x2;
Aliened 3:ca0d5d72f842 15 #define BUTTON_1_4 0x6;
Aliened 3:ca0d5d72f842 16
Aliened 3:ca0d5d72f842 17 #define RE 0xD; // RE
Aliened 3:ca0d5d72f842 18 #define BUTTON_2_3 0x9;
Aliened 3:ca0d5d72f842 19 #define BUTTON_2_3_4 0x1;
Aliened 3:ca0d5d72f842 20 #define BUTTON_2_4 0x5;
Aliened 3:ca0d5d72f842 21
Aliened 3:ca0d5d72f842 22 #define MI 0xB; // MI
Aliened 3:ca0d5d72f842 23 #define BUTTON_3_4 0x3;
Aliened 3:ca0d5d72f842 24
Aliened 3:ca0d5d72f842 25 #define FA 0x7; // FA
Aliened 3:ca0d5d72f842 26
Aliened 3:ca0d5d72f842 27 void check_buttons();
Aliened 3:ca0d5d72f842 28
Aliened 3:ca0d5d72f842 29 #endif