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.
Fork of Nucleo_LED_PWM_Pulsing by
Revision 1:dc129d9a7e26, committed 2015-04-18
- Comitter:
- kizosgr
- Date:
- Sat Apr 18 21:21:35 2015 +0000
- Parent:
- 0:ee3ee6288b15
- Commit message:
- from : Nucleo_LED_PWM_Pulsing
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue May 27 16:54:20 2014 +0000 +++ b/main.cpp Sat Apr 18 21:21:35 2015 +0000 @@ -5,15 +5,19 @@ #define LED_ON 1 #define LED_OFF 0 -DigitalOut myled(LED1); +DigitalOut myled(p27); +DigitalOut myled1(p28); + void blink_led(int from, int to) { for (int i = 0; i < PWM_STEPS; i++) { myled = from; + myled1 = from; wait_us(i * PWM_SPEED); myled = to; + myled1 = to; wait_us((PWM_STEPS - i) * PWM_SPEED); } }
--- a/mbed.bld Tue May 27 16:54:20 2014 +0000 +++ b/mbed.bld Sat Apr 18 21:21:35 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file