#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);
        }
    }
}