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.
Revision 12:98365610bcd5, committed 2018-12-09
- Comitter:
- w3eydi
- Date:
- Sun Dec 09 08:56:30 2018 +0000
- Parent:
- 11:0309bef74ba8
- Commit message:
- Ilk program
Changed in this revision
--- a/main.cpp Wed Feb 15 14:04:02 2017 -0600 +++ b/main.cpp Sun Dec 09 08:56:30 2018 +0000 @@ -1,22 +1,29 @@ #include "mbed.h" #include "rtos.h" - -DigitalOut led1(LED1); -DigitalOut led2(LED2); -Thread thread; - -void led2_thread() { - while (true) { - led2 = !led2; - Thread::wait(1000); - } +PortOut prt(PortA,0x0113);//PA_0,PA_1,PA_8,PA_4 +DigitalOut led(LED1); + +Thread t_led; + +void metot() { +led=1; +while (true) { +led = !led; +wait(1); +} } - + int main() { - thread.start(led2_thread); - - while (true) { - led1 = !led1; - Thread::wait(500); - } +t_led.start(metot); + +while (true) { +prt=0x0001; +wait_ms(3); +prt=0x0002; +wait_ms(3); +prt=0x0100; +wait_ms(3); +prt=0x0010; +wait_ms(3); } +} \ No newline at end of file
--- a/mbed-rtos.lib Wed Feb 15 14:04:02 2017 -0600 +++ b/mbed-rtos.lib Sun Dec 09 08:56:30 2018 +0000 @@ -1,1 +1,1 @@ -https://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e +https://mbed.org/users/mbed_official/code/mbed-rtos/#5713cbbdb706
--- a/mbed.bld Wed Feb 15 14:04:02 2017 -0600 +++ b/mbed.bld Sun Dec 09 08:56:30 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc \ No newline at end of file