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: 4DGL-uLCD-SE DebounceIn LSM9DS1_Library_cal SDFileSystem TextLCD mbed-rtos mbed wave_player_appbd
main.cpp@0:f29cfb036e34, 2016-10-30 (annotated)
- Committer:
- taylornichols
- Date:
- Sun Oct 30 00:34:56 2016 +0000
- Revision:
- 0:f29cfb036e34
- Child:
- 1:d1d12f229b9a
Just TextLCD not tested;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
taylornichols | 0:f29cfb036e34 | 1 | #include "mbed.h" |
taylornichols | 0:f29cfb036e34 | 2 | #include "TextLCD.h" |
taylornichols | 0:f29cfb036e34 | 3 | |
taylornichols | 0:f29cfb036e34 | 4 | // LEDs on mbed |
taylornichols | 0:f29cfb036e34 | 5 | DigitalOut led1( LED1 ); |
taylornichols | 0:f29cfb036e34 | 6 | DigitalOut led2( LED2 ); |
taylornichols | 0:f29cfb036e34 | 7 | DigitalOut led3( LED3 ); |
taylornichols | 0:f29cfb036e34 | 8 | DigitalOut led4( LED4 ); |
taylornichols | 0:f29cfb036e34 | 9 | |
taylornichols | 0:f29cfb036e34 | 10 | int main() { |
taylornichols | 0:f29cfb036e34 | 11 | while(1) { |
taylornichols | 0:f29cfb036e34 | 12 | myled = 1; |
taylornichols | 0:f29cfb036e34 | 13 | wait(0.2); |
taylornichols | 0:f29cfb036e34 | 14 | myled = 0; |
taylornichols | 0:f29cfb036e34 | 15 | wait(0.2); |
taylornichols | 0:f29cfb036e34 | 16 | } |
taylornichols | 0:f29cfb036e34 | 17 | } |