td1
Dependencies: lib_LCD_i2c_SPTLYI mbed
main.cpp
- Committer:
- mbedo
- Date:
- 2014-10-23
- Revision:
- 0:dca3b291558e
File content as of revision 0:dca3b291558e:
#include "mbed.h" #include "lib_LCD_i2c_SPTLYI.h" LCD_I2C LCD(p28,p27,p26,0x7C); int main() { float i=0; float j=0; LCD.set_position_cursor(0,0); LCD.print("compteur:"); LCD.set_position_cursor(0,1); LCD.print("compteur2:"); while(1) { LCD.set_position_cursor(9,0); LCD.print(i++); if(i>99) i=0.0 ; wait(0.25); LCD.set_position_cursor(10,1); LCD.print(j=i/2); if(j>99) j=0.0 ; wait(0.25); } }