Skip to content

Commit

Permalink
Merge pull request Chysn#58 from djphazer/encoder-config
Browse files Browse the repository at this point in the history
Display encoder direction config on Calibration screen
  • Loading branch information
benirose committed Feb 9, 2023
2 parents 47f1eef + bbe69d1 commit 3ecda61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions software/o_c_REV/OC_calibration.ino
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@ void calibration_draw(const CalibrationState &state) {
graphics.setPrintPos(menu::kIndentDx, y + 2);
if (step->help)
graphics.print(step->help);

// NJM: display encoder direction config on first and last screens
if (step->step == HELLO || step->step == CALIBRATION_EXIT) {
y += menu::kMenuLineH;
graphics.setPrintPos(menu::kIndentDx, y + 2);
graphics.print("Encoders: ");
graphics.print(OC::Strings::encoder_config_strings[ OC::calibration_data.encoder_config() ]);
}

weegfx::coord_t x = menu::kDisplayWidth - 22;
y = 2;
Expand Down

0 comments on commit 3ecda61

Please sign in to comment.