AGH MTM PPO MBED

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Committer:
matis755
Date:
Sat May 09 08:31:59 2020 +0000
Revision:
1:36b3fd4a01fd
Parent:
0:f4a48c08fea7
Add second column on display

Who changed what in which revision?

UserRevisionLine numberNew contents of line
matis755 0:f4a48c08fea7 1 #include "Keyboard_Ts_Lcd.h"
matis755 0:f4a48c08fea7 2
matis755 0:f4a48c08fea7 3 int main() {
matis755 1:36b3fd4a01fd 4 KeyboardTsLcd Keyboard(0);
matis755 1:36b3fd4a01fd 5 LedLcd Led(2);
matis755 0:f4a48c08fea7 6
matis755 0:f4a48c08fea7 7 while(1) {
matis755 1:36b3fd4a01fd 8 switch(Keyboard.eRead()) {
matis755 1:36b3fd4a01fd 9 case BUTTON_0:
matis755 1:36b3fd4a01fd 10 Led.On(3);
matis755 1:36b3fd4a01fd 11 break;
matis755 1:36b3fd4a01fd 12 case BUTTON_1:
matis755 1:36b3fd4a01fd 13 Led.On(2);
matis755 1:36b3fd4a01fd 14 break;
matis755 1:36b3fd4a01fd 15 case BUTTON_2:
matis755 1:36b3fd4a01fd 16 Led.On(1);
matis755 1:36b3fd4a01fd 17 break;
matis755 1:36b3fd4a01fd 18 case BUTTON_3:
matis755 1:36b3fd4a01fd 19 Led.On(0);
matis755 1:36b3fd4a01fd 20 break;
matis755 1:36b3fd4a01fd 21 default :
matis755 1:36b3fd4a01fd 22 Led.On(4);
matis755 1:36b3fd4a01fd 23 break;
matis755 1:36b3fd4a01fd 24 }
matis755 0:f4a48c08fea7 25 wait(0.1);
matis755 0:f4a48c08fea7 26 }
matis755 0:f4a48c08fea7 27 }