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@0:db398ab6f572, 2021-06-01 (annotated)
- Committer:
- 221003975
- Date:
- Tue Jun 01 12:03:53 2021 +0000
- Revision:
- 0:db398ab6f572
MY FIRST PROGRAM WITH LCD by using push button
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
221003975 | 0:db398ab6f572 | 1 | #include "mbed.h" |
221003975 | 0:db398ab6f572 | 2 | |
221003975 | 0:db398ab6f572 | 3 | DigitalOut myled(LED1); |
221003975 | 0:db398ab6f572 | 4 | |
221003975 | 0:db398ab6f572 | 5 | int main() { |
221003975 | 0:db398ab6f572 | 6 | while(1) { |
221003975 | 0:db398ab6f572 | 7 | myled = 1; |
221003975 | 0:db398ab6f572 | 8 | wait(0.2); |
221003975 | 0:db398ab6f572 | 9 | myled = 0; |
221003975 | 0:db398ab6f572 | 10 | wait(0.2); |
221003975 | 0:db398ab6f572 | 11 | } |
221003975 | 0:db398ab6f572 | 12 | } |