refactor encoder. no need for Dir enum.

This commit is contained in:
2025-06-28 09:45:50 -07:00
parent 6fa5674909
commit d56355a94b
4 changed files with 14 additions and 39 deletions

View File

@ -8,7 +8,7 @@
#include "button.h"
#include "clock.h"
#include "digital_output.h"
#include "encoder_dir.h"
#include "encoder.h"
#include "peripherials.h"
// Hardware abstraction wrapper for the Gravity module.
@ -32,7 +32,7 @@ class Gravity {
U8G2_SSD1306_128X64_NONAME_1_HW_I2C display; // OLED display object.
Clock clock; // Clock source wrapper.
DigitalOutput outputs[OUTPUT_COUNT]; // An array containing each Output object.
EncoderDir encoder; // Rotary encoder with button instance
Encoder encoder; // Rotary encoder with button instance
Button shift_button;
Button play_button;
AnalogInput cv1;