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
State.cpp
- Committer:
- Siriagus
- Date:
- 2015-05-02
- Revision:
- 8:9ac6a428fa26
- Parent:
- 7:678873947b29
- Child:
- 12:8178fad5e660
File content as of revision 8:9ac6a428fa26:
#include "State.h"
#include "StateManager.h"
// Request the fsm to change to a new state
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);
}
}
}