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.
Dependencies: mbed
Fork of FernsehSimulator by
Diff: main.cpp
- Revision:
- 1:4e24bd21f2ce
- Parent:
- 0:96b9c5faa0d1
- Child:
- 2:0362ad565944
--- a/main.cpp Wed Mar 04 17:10:44 2015 +0000
+++ b/main.cpp Sun May 24 07:27:19 2015 +0000
@@ -1,4 +1,4 @@
-/** 9.5 Schreibt die Lauflicht Übung aus dem 1. Kurs auf die LED Strips um.
+/** 9.6 Schreibt die Lauflicht Übung aus dem 1. Kurs auf die LED Strips um.
*/
#include "mbed.h"
@@ -9,13 +9,13 @@
void writeLED()
{
- for ( int p = 0; p < 9; p++ )
+ for ( int p = 0; p < 6; p++ )
spi.write( strip[p] );
}
void clearLED()
{
- for ( int p = 0; p < 9; p++ )
+ for ( int p = 0; p < 6; p++ )
{
strip[p] = 0;
spi.write( strip[p] );
