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
Levelengine.cpp
- Committer:
- el17arm
- Date:
- 2019-03-25
- Revision:
- 8:9bc80e40ac0d
- Parent:
- 7:c6e6ec0e3396
- Child:
- 10:65a6866d418b
File content as of revision 8:9bc80e40ac0d:
#include <iostream>
#include "Levelengine.h"
#include "Minerengine.h"
Levelengine::Levelengine()
{
}
Levelengine::~Levelengine()
{
}
void Levelengine::test_level(N5110 &lcd)
{
//Border
lcd.drawRect(0,0,1,HEIGHT,FILL_BLACK);
lcd.drawRect(0,0,WIDTH,1,FILL_BLACK);
lcd.drawRect(WIDTH -1,0,1,48,FILL_BLACK);
lcd.drawRect(0,HEIGHT -1,84,1,FILL_BLACK);
//platforms
//lcd.drawRect(0,41,34,2,FILL_BLACK);
lcd.drawRect(20,HEIGHT - 12, 40, 2, FILL_TRANSPARENT);
lcd.drawRect(68,HEIGHT - 4, 24, 2, FILL_TRANSPARENT);
}