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 N5110 ShiftReg PinDetect
Diff: State.cpp
- Revision:
- 8:9ac6a428fa26
- Parent:
- 7:678873947b29
- Child:
- 12:8178fad5e660
diff -r 678873947b29 -r 9ac6a428fa26 State.cpp
--- a/State.cpp Fri May 01 18:10:59 2015 +0000
+++ b/State.cpp Sat May 02 00:22:43 2015 +0000
@@ -5,4 +5,16 @@
void State::requestStateChange(MainState newState)
{
fsm->requestStateChange(newState);
+}
+
+void State::drawImage(const int img[HEIGHT][WIDTH])
+{
+ for (int i = 0; i < HEIGHT; ++i)
+ {
+ for (int j = 0; j < WIDTH; ++j)
+ {
+ if (img[i][j])
+ lcd->setPixel(j,i);
+ }
+ }
}
\ No newline at end of file