52 lines
896 B
C++
52 lines
896 B
C++
|
#include "AdafruitVfdDisplay.hpp"
|
||
|
|
||
|
AdafruitVfdDisplay::AdafruitVfdDisplay(UART& lcdUart) : m_lcdUart{lcdUart} {}
|
||
|
|
||
|
|
||
|
void AdafruitVfdDisplay::createChar(uint8_t id, uint8_t* c) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::drawBlinker() {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::clearBlinker() {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::begin() {
|
||
|
delay(500);
|
||
|
clear();
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::clear() {
|
||
|
uint8_t clearCmd[] = {0xfe, 0x58};
|
||
|
m_lcdUart.write_raw(clearCmd, sizeof(clearCmd));
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::show() {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::hide() {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::draw(uint8_t byte) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::draw(const char* text) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::setCursor(uint8_t col, uint8_t row) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void AdafruitVfdDisplay::setBacklight(bool enabled) {
|
||
|
uint8_t backlightCmd[] = {0xfe, 0x99, enabled ? 150 : 50};
|
||
|
m_lcdUart.write_raw(backlightCmd, sizeof(backlightCmd));
|
||
|
}
|