Zmiana granicy zmiany koloru texu o 1 pixel
This commit is contained in:
@@ -187,42 +187,42 @@ void loop() {
|
||||
display.fillRect(4 * GrapWidth + 4, GraphHeight - HeightBlue, GrapWidth, HeightBlue, SSD1306_WHITE);
|
||||
display.fillRect(5 * GrapWidth + 5, GraphHeight - HeightViolet, GrapWidth, HeightViolet, SSD1306_WHITE);
|
||||
display.setCursor(1 * GrapWidth -10, 0);
|
||||
if (HeightRed >27){
|
||||
if (HeightRed > 28){
|
||||
display.setTextColor(BLACK);
|
||||
}else {
|
||||
display.setTextColor(WHITE);
|
||||
}
|
||||
display.println("R:");
|
||||
display.setCursor(2 * GrapWidth -10, 0);
|
||||
if (HeightOrange >27){
|
||||
if (HeightOrange > 28){
|
||||
display.setTextColor(BLACK);
|
||||
}else {
|
||||
display.setTextColor(WHITE);
|
||||
}
|
||||
display.println("O:");
|
||||
display.setCursor(3 * GrapWidth -10, 0);
|
||||
if (HeightYellow >27){
|
||||
if (HeightYellow > 28){
|
||||
display.setTextColor(BLACK);
|
||||
}else {
|
||||
display.setTextColor(WHITE);
|
||||
}
|
||||
display.println("Y:");
|
||||
display.setCursor(4 * GrapWidth -10, 0);
|
||||
if (HeightGreen >27){
|
||||
if (HeightGreen > 28){
|
||||
display.setTextColor(BLACK);
|
||||
}else {
|
||||
display.setTextColor(WHITE);
|
||||
}
|
||||
display.println("G:");
|
||||
display.setCursor(5 * GrapWidth -10, 0);
|
||||
if (HeightBlue >27){
|
||||
if (HeightBlue > 28){
|
||||
display.setTextColor(BLACK);
|
||||
}else {
|
||||
display.setTextColor(WHITE);
|
||||
}
|
||||
display.println("B:");
|
||||
display.setCursor(6 * GrapWidth -10, 0);
|
||||
if (HeightViolet >27){
|
||||
if (HeightViolet > 28){
|
||||
display.setTextColor(BLACK);
|
||||
}else {
|
||||
display.setTextColor(WHITE);
|
||||
|
||||
Reference in New Issue
Block a user