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: mbed mbed-rtos 4DGL-uLCD-SE HC_SR04_Ultrasonic_Library
main.cpp@2:1ec843c95914, 2020-04-21 (annotated)
- Committer:
- mmarine3
- Date:
- Tue Apr 21 18:52:03 2020 +0000
- Revision:
- 2:1ec843c95914
- Child:
- 3:b5cdd40e99e9
Added SDFileSystem, wave_player and created a main function that will blink the LED1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mmarine3 | 2:1ec843c95914 | 1 | #include "mbed.h" |
mmarine3 | 2:1ec843c95914 | 2 | #include "SDFileSystem.h" |
mmarine3 | 2:1ec843c95914 | 3 | #include "uLCD_4DGL.h" |
mmarine3 | 2:1ec843c95914 | 4 | #include <string> |
mmarine3 | 2:1ec843c95914 | 5 | |
mmarine3 | 2:1ec843c95914 | 6 | DigitalOut MyLED(LED1); |
mmarine3 | 2:1ec843c95914 | 7 | |
mmarine3 | 2:1ec843c95914 | 8 | |
mmarine3 | 2:1ec843c95914 | 9 | |
mmarine3 | 2:1ec843c95914 | 10 | int main() |
mmarine3 | 2:1ec843c95914 | 11 | { |
mmarine3 | 2:1ec843c95914 | 12 | MyLED = 0; |
mmarine3 | 2:1ec843c95914 | 13 | while(1){ |
mmarine3 | 2:1ec843c95914 | 14 | MyLED = !MyLED; |
mmarine3 | 2:1ec843c95914 | 15 | wait(.1); |
mmarine3 | 2:1ec843c95914 | 16 | } |
mmarine3 | 2:1ec843c95914 | 17 | } |