Refacto function run_display Add call to function refresh_display_notes Add call to function refresh_display_gamme
Fork of Nucleo_piano_V1 by
button_value.h
00001 #ifndef BUTTON_VALUE_H_ 00002 #define BUTTON_VALUE_H_ 00003 00004 #define PERIOD(x) 1.0 / (x * 1000000.0) 00005 00006 #define ALL_BUTTONS 0x0; 00007 #define NO_BUTTONS 0xF; 00008 00009 #define DO 0xE; // DO 00010 #define BUTTON_1_2 0xC; 00011 #define BUTTON_1_2_3 0x8; 00012 #define BUTTON_1_2_4 0x4; 00013 #define BUTTON_1_3 0xA; 00014 #define BUTTON_1_3_4 0x2; 00015 #define BUTTON_1_4 0x6; 00016 00017 #define RE 0xD; // RE 00018 #define BUTTON_2_3 0x9; 00019 #define BUTTON_2_3_4 0x1; 00020 #define BUTTON_2_4 0x5; 00021 00022 #define MI 0xB; // MI 00023 #define BUTTON_3_4 0x3; 00024 00025 #define FA 0x7; // FA 00026 00027 void check_buttons(); 00028 00029 #endif
Generated on Wed Jul 13 2022 09:23:36 by
1.7.2
