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
Interface/interface.cpp
- Committer:
- weixitao
- Date:
- 2017-05-04
- Revision:
- 3:dd4678a85a1a
File content as of revision 3:dd4678a85a1a:
#include "interface.h"
extern N5110 lcd;
extern Gamepad pad;
void interface::A()
{
lcd.drawLine(16,15,16,24,1);//left 9
lcd.drawLine(16,15,24,15,1);//top 9
lcd.drawLine(24,15,24,24,1);//right
lcd.drawLine(16,24,24,24,1);//bass
lcd.printString("A", 18,2);
lcd.drawLine(20,15,20,10,1);
lcd.drawLine(20,24,20,40,1);
}
void interface::B()
{
lcd.drawLine(31,15,31,24,1);
lcd.drawLine(31,15,39,15,1);
lcd.drawLine(31,24,39,24,1);
lcd.drawLine(39,15,39,24,1);
lcd.printString("B", 33,2);
lcd.drawLine(35,15,35,10,1);
lcd.drawLine(35,24,35,40,1);
}
void interface::X()
{
lcd.drawLine(46,15,46,24,1);
lcd.drawLine(46,15,54,15,1);
lcd.drawLine(46,24,54,24,1);
lcd.drawLine(54,15,54,24,1);
lcd.printString("X", 48,2);
lcd.drawLine(50,15,50,10,1);
lcd.drawLine(50,24,50,40,1);
}
void interface::Y()
{
lcd.drawLine(61,15,61,24,1);
lcd.drawLine(61,15,69,15,1);
lcd.drawLine(61,24,69,24,1);
lcd.drawLine(69,15,69,24,1);
lcd.printString("Y", 63,2);
lcd.drawLine(65,15,65,10,1);
lcd.drawLine(65,24,65,40,1);
}
void interface::border()
{
lcd.drawLine(10,10,76,10,1); //top
lcd.drawLine(10,10,10,40,1); //left
lcd.drawLine(10,40,76,40,1);//bass
lcd.drawLine(76,10,76,40,1);//right
}