Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F429ZI Keyboard_Ts1 LCD_DISCO_F429ZI Led_Lcd1 TS_DISCO_F429ZI mbed
main.cpp
00001 #include "mbed.h" 00002 #include "Keyboard_Ts.h" 00003 #include "Led_Lcd.h" 00004 00005 int main() 00006 { 00007 LedLcd Led(2); 00008 KeyboardTs Keyboard(2); 00009 00010 while(1) { 00011 switch(Keyboard.eRead()) { 00012 case BUTTON_0: 00013 Led.On(0); 00014 break; 00015 case BUTTON_1: 00016 Led.On(1); 00017 break; 00018 case BUTTON_2: 00019 Led.On(2); 00020 break; 00021 case BUTTON_3: 00022 Led.On(3); 00023 break; 00024 default : 00025 Led.On(4); 00026 break; 00027 } 00028 wait(0.1); 00029 } 00030 }
Generated on Wed Jul 20 2022 02:30:30 by
1.7.2