![](/media/cache/group/ep_LV4vK4D.webp.50x50_q85.jpg)
9.6 Schreibt die Lauflicht Übung aus dem 1. Kurs auf die LED Strips um.
Dependencies: mbed
Fork of 09-05-Uebung by
Revision 2:cc8f334b9c12, committed 2016-03-31
- Comitter:
- marcel1691
- Date:
- Thu Mar 31 13:07:13 2016 +0000
- Parent:
- 1:4e24bd21f2ce
- Commit message:
- alle 3 LED ansprechen
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 Sun May 24 07:27:19 2015 +0000 +++ b/main.cpp Thu Mar 31 13:07:13 2016 +0000 @@ -9,13 +9,13 @@ void writeLED() { - for ( int p = 0; p < 6; p++ ) + for ( int p = 0; p < 9; p++ ) spi.write( strip[p] ); } void clearLED() { - for ( int p = 0; p < 6; p++ ) + for ( int p = 0; p < 9; p++ ) { strip[p] = 0; spi.write( strip[p] );
--- a/mbed.bld Sun May 24 07:27:19 2015 +0000 +++ b/mbed.bld Thu Mar 31 13:07:13 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/c0f6e94411f5 \ No newline at end of file