1
0

More documentation cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-11-03 12:00:05 +00:00
parent b8eccbe162
commit 737e3b8225
6 changed files with 45 additions and 130 deletions

View File

@ -1,8 +1,8 @@
#include "DisplayProxyMAX7456.h"
DisplayProxyMAX7456::DisplayProxyMAX7456(Max7456 *osd)
DisplayProxyMAX7456::DisplayProxyMAX7456()
{
this->osd = osd;
this->osd = new Max7456();
this->osd->init(6);
clear();
this->osd->setBlinkParams(_8fields, _BT_3BT);
@ -11,7 +11,6 @@ DisplayProxyMAX7456::DisplayProxyMAX7456(Max7456 *osd)
onScreenDisplay(true);
}
bool DisplayProxyMAX7456::on()
{
onScreenDisplay(true);
@ -25,8 +24,6 @@ bool DisplayProxyMAX7456::off()
return true;
}
bool DisplayProxyMAX7456::write(int x, int y, const char *text)
{
this->osd->print(text, x, y);
@ -39,7 +36,6 @@ bool DisplayProxyMAX7456::clear()
return true;
}
bool DisplayProxyMAX7456::setOffset(int x, int y)
{
this->osd->setDisplayOffsets(x, y);

View File

@ -19,14 +19,14 @@ class DisplayProxyMAX7456 : public DisplayProxy
{
public:
/**
* Initalize a Max7456 Style display
* Initalize a MAX7456 Style display
* - Initialize with CS on Pin 6.
* - Clear the display
* - Initialize blinking frequency.
* - Disable external video
* - Enable OSD.
*/
explicit DisplayProxyMAX7456(Max7456 *osd);
explicit DisplayProxyMAX7456();
/**
* OSD on, external video left untouched.