mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-24 09:35:40 +08:00
Allow the modem to host a serial display.
This commit is contained in:
14
TFTSerial.h
14
TFTSerial.h
@@ -21,14 +21,14 @@
|
||||
|
||||
#include "Display.h"
|
||||
#include "Defines.h"
|
||||
#include "SerialController.h"
|
||||
#include "SerialPort.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class CTFTSerial : public CDisplay
|
||||
{
|
||||
public:
|
||||
CTFTSerial(const std::string& callsign, unsigned int dmrid, const std::string& port, unsigned int brightness);
|
||||
CTFTSerial(const std::string& callsign, unsigned int dmrid, ISerialPort* serial, unsigned int brightness);
|
||||
virtual ~CTFTSerial();
|
||||
|
||||
virtual bool open();
|
||||
@@ -56,11 +56,11 @@ protected:
|
||||
virtual void clearCWInt();
|
||||
|
||||
private:
|
||||
std::string m_callsign;
|
||||
unsigned int m_dmrid;
|
||||
CSerialController m_serial;
|
||||
unsigned int m_brightness;
|
||||
unsigned char m_mode;
|
||||
std::string m_callsign;
|
||||
unsigned int m_dmrid;
|
||||
ISerialPort* m_serial;
|
||||
unsigned int m_brightness;
|
||||
unsigned char m_mode;
|
||||
|
||||
void clearScreen();
|
||||
void setBackground(unsigned char colour);
|
||||
|
||||
Reference in New Issue
Block a user