ELEC2645 (2018/19) / Mbed 2 deprecated el17mtu_

Dependencies:   mbed

ModeB/ModeB.h

Committer:
el17mtu
Date:
2019-05-09
Revision:
22:eadcb3d8fec0
Parent:
18:59befe1eaa56

File content as of revision 22:eadcb3d8fec0:

#ifndef MODEB_H
#define MODEB_H

#include "mbed.h"
#include "main.h"
#include "N5110.h"
#include "Gamepad.h"

/** ModeB class

@brief Class displaying instructions
@author Maria Ungureanu
@date May 2019

*/

class ModeB
{

public:
    /** Constructor */
    ModeB();
    /** Destructor */
    ~ModeB();
    /**
    * @brief Refreshes and draws instructions on lcd
    @code
    void ModeB::draw(N5110 &lcd)
    {
     lcd.printString("INSTRUCTIONS",3,0);
    lcd.printString("Use Y, X ",0,1);
    lcd.printString("for square",0,2);
    lcd.printString("and bar",0,3);
    lcd.printString("Back:GAME",0,5);
    }
    @endcode
    */
    void draw(N5110 &lcd);
    /**
    * @brief Refreshes and draws instructions on lcd
    @code
    void ModeB::screen(N5110 &lcd)
    {
    lcd.clear(); //clear screen
    };
    @endcode
    */
    void screen(N5110 &lcd);
};
#endif