Skip to content

Commit

Permalink
Finally fixed the offset of the voltage display which was moved by on…
Browse files Browse the repository at this point in the history
…e pixel
  • Loading branch information
McNugget6750 committed Dec 16, 2019
1 parent a186c8d commit a78cd8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arduino/motor/status_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void display_init(void)
display_PrintText("Supply Voltage: V", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("Rudder Sensor ADC:", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("Rudder Sens. Scaled:", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("EndStop Sw:", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("Endstop Sw Type:", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("EndStop Sw:", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE); // not implemented
display_PrintText("Endstop Sw Type:", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE); // not implemented
display_PrintText("Motor Temp: degC", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("Controller Temp: degC", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
display_PrintText("Motor Current: Amps", X_OFFSET_FOR_STATUS, Y_OFFSET_FOR_STATUS + row++ * 8, 0, ST7735_WHITE);
Expand All @@ -73,8 +73,8 @@ void display_update(void)
{
// Update your display stuff here
if (display_supply_voltage_old != display_supply_voltage){
display_PrintText(String(display_supply_voltage_old / 100.0f), X_OFFSET_FOR_STATUS + 121, Y_OFFSET_FOR_STATUS + 1 * 8, 0, ST7735_BLACK);
display_PrintText(String(display_supply_voltage / 100.0f), X_OFFSET_FOR_STATUS + 121, Y_OFFSET_FOR_STATUS + 1 * 8, 0, ST7735_YELLOW);
display_PrintText(String(display_supply_voltage_old / 100.0f), X_OFFSET_FOR_STATUS + 120, Y_OFFSET_FOR_STATUS + 1 * 8, 0, ST7735_BLACK);
display_PrintText(String(display_supply_voltage / 100.0f), X_OFFSET_FOR_STATUS + 120, Y_OFFSET_FOR_STATUS + 1 * 8, 0, ST7735_YELLOW);
display_supply_voltage_old = display_supply_voltage;
}
if (display_sensor_ADC_old != display_sensor_ADC){
Expand Down

0 comments on commit a78cd8f

Please sign in to comment.