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.
main.cpp
00001 #include "Nboard.h" 00002 00003 void clg_leds(float n){ 00004 for (int i=0; i<=100; i++) { 00005 Bus8Leds=0xAA; 00006 wait(n); 00007 Bus8Leds=0x55; 00008 wait(n); 00009 } 00010 } 00011 00012 void afficher_time(){ 00013 float time=timer.read(); 00014 ihm.LCD_gotoxy(0,0); 00015 ihm.LCD_printf("Time =%f ",time); 00016 } 00017 00018 int main() 00019 { 00020 ihm.LCD_clear(); 00021 float time; 00022 while(1) { 00023 timer.start(); 00024 time=0; 00025 while(time<3) { 00026 afficher_time(); 00027 if(bp==0) { 00028 clg_leds(0.4); 00029 } 00030 time=timer.read(); 00031 } 00032 clg_leds(0.1); 00033 00034 } 00035 }
Generated on Thu Jul 14 2022 02:09:38 by
1.7.2