Vielen Dank!
Ich habs nun verstanden. Ohne die Hilfe wäre das nicht geworden.
So:
geht es nun. Ich habe einen Pfeil vor dem aktiven Bargraph und alles läuft wie es soll.Code:u8g2.clearBuffer(); // clear the internal memory u8g2.setFont(u8g2_font_unifont_t_symbols); u8g2.drawGlyph(3,Cursor+12,0x2192); //Hier ist der Pfeil u8g2.setDrawColor(1); /* color 1 for the box */ u8g2.drawBox(10,8,Bar1,15); u8g2.setDrawColor(2); /* color 1 for the box */ u8g2.drawStr(25,20,"Wert 1 = "); // write something to the internal memory u8g2.setCursor(95, 20); u8g2.print(Bar1); // write something to the internal memory u8g2.setDrawColor(1); /* color 1 for the box */ u8g2.drawBox(10,28,Bar2,15); u8g2.setDrawColor(2); /* color 1 for the box */ u8g2.drawStr(25,40,"Wert 2 = "); // write something to the internal memory u8g2.setCursor(95, 40); u8g2.print(Bar2); // write something to the internal memory u8g2.setDrawColor(1); /* color 1 for the box */ u8g2.drawBox(10,48,Bar3,15); u8g2.setDrawColor(2); /* color 1 for the box */ u8g2.drawStr(25,60,"Wert 3 = "); // write something to the internal memory u8g2.setCursor(95, 60); u8g2.print(Bar3); // write something to the internal memory u8g2.sendBuffer(); // transfer internal memory to the display delay(250);
Den Rest konnte ich so lassen.
Den Font und das Min Max des Wertes passe ich dann erstmal an...
Danke!






Zitieren

Lesezeichen