PWM LED Brightness control example for WIZWiki-W7500
Dependencies: mbed
Revision 3:6102eed27fab, committed 2017-04-21
- Comitter:
- jcm931213
- Date:
- Fri Apr 21 07:50:04 2017 +0000
- Parent:
- 2:8b2466c9dce3
- Commit message:
- modify i++ -> i--
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8b2466c9dce3 -r 6102eed27fab main.cpp --- a/main.cpp Fri Apr 21 01:02:48 2017 +0000 +++ b/main.cpp Fri Apr 21 07:50:04 2017 +0000 @@ -7,7 +7,7 @@ { int i; while(1){ - for(i=0; i<1000; i=i+1) { + for(i=1000; i>0; i=i-1) { pwm0.write(i*0.001);