All other static OLED pages
This commit is contained in:
@@ -18,6 +18,12 @@ Needs implementation:
|
|||||||
* RX configuration from TX module
|
* RX configuration from TX module
|
||||||
* Sending telemetry from TX to OpenTX radio
|
* Sending telemetry from TX to OpenTX radio
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
|
||||||
|
To compile, following libraries have to be installed:
|
||||||
|
|
||||||
|
* [U8g2](https://github.com/olikraus/u8g2) for OLED support in TX module
|
||||||
|
|
||||||
# Protocol
|
# Protocol
|
||||||
|
|
||||||
| Byte | Description | Notes |
|
| Byte | Description | Notes |
|
||||||
|
|||||||
@@ -77,48 +77,39 @@ void TxOled::page(uint8_t page) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TxOled::renderPagePwr() {
|
void TxOled::renderPagePwr() {
|
||||||
// _display.clearDisplay();
|
char buf[OLED_COL_COUNT];
|
||||||
// _display.setTextColor(WHITE, BLACK);
|
|
||||||
|
|
||||||
// _display.setCursor(0, 0);
|
_display.clear();
|
||||||
// _display.setTextSize(2);
|
_display.setFont(u8x8_font_pxplustandynewtv_f);
|
||||||
// _display.print("PWR");
|
_display.draw1x2String(0, 0, "Power");
|
||||||
|
|
||||||
// //TODO content
|
_display.setFont(u8x8_font_chroma48medium8_r);
|
||||||
// _display.setCursor(0, 25);
|
snprintf(buf, OLED_COL_COUNT, "%d%s", radioNode.loraTxPower, "dBm");
|
||||||
// _display.setTextSize(3);
|
_display.draw1x2String(0, 4, buf);
|
||||||
// _display.print(radioNode.loraTxPower);
|
|
||||||
// _display.print("dBm");
|
|
||||||
|
|
||||||
// _display.display();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TxOled::renderPageBind() {
|
void TxOled::renderPageBind() {
|
||||||
// _display.clearDisplay();
|
char buf[OLED_COL_COUNT];
|
||||||
// _display.setTextColor(WHITE, BLACK);
|
|
||||||
|
|
||||||
// _display.setCursor(0, 0);
|
_display.clear();
|
||||||
// _display.setTextSize(2);
|
_display.setFont(u8x8_font_pxplustandynewtv_f);
|
||||||
// _display.print("Bind");
|
_display.draw1x2String(0, 0, "Bind");
|
||||||
|
|
||||||
// //TODO content
|
_display.setFont(u8x8_font_chroma48medium8_r);
|
||||||
|
snprintf(buf, OLED_COL_COUNT, "Bind?");
|
||||||
// _display.display();
|
_display.draw1x2String(0, 4, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TxOled::renderPageMode() {
|
void TxOled::renderPageMode() {
|
||||||
// _display.clearDisplay();
|
char buf[OLED_COL_COUNT];
|
||||||
// _display.setTextColor(WHITE, BLACK);
|
|
||||||
|
|
||||||
// _display.setCursor(0, 0);
|
_display.clear();
|
||||||
// _display.setTextSize(2);
|
_display.setFont(u8x8_font_pxplustandynewtv_f);
|
||||||
// _display.print("Mode");
|
_display.draw1x2String(0, 0, "Mode");
|
||||||
|
|
||||||
// _display.setCursor(0, 25);
|
_display.setFont(u8x8_font_chroma48medium8_r);
|
||||||
// _display.setTextSize(3);
|
snprintf(buf, OLED_COL_COUNT, "Full");
|
||||||
// _display.print("Full");
|
_display.draw1x2String(0, 4, buf);
|
||||||
|
|
||||||
// _display.display();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TxOled::renderPageStats() {
|
void TxOled::renderPageStats() {
|
||||||
|
|||||||
Reference in New Issue
Block a user