1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

Add RollPitch page and code cleaning

This commit is contained in:
norbert-walter
2022-04-12 15:54:14 +02:00
parent cf9ae1e767
commit 8054567f4f
13 changed files with 170 additions and 128 deletions

View File

@@ -112,6 +112,14 @@ void setBuzzerPower(uint power){
buzzerpower = power;
}
// Delete xdr prefix from string
String xdrDelete(String input){
if(input.substring(0,3) == "xdr"){
input = input.substring(3, input.length());
}
return input;
}
// Show a triangle for trend direction high (x, y is the left edge)
void displayTrendHigh(int16_t x, int16_t y, uint16_t size, uint16_t color){
display.fillTriangle(x, y, x+size*2, y, x+size, y-size*2, color);