Skip to content

Commit

Permalink
Rename rotary in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishkinDmitriy committed Sep 17, 2024
1 parent 7b79141 commit ec7638f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/InputRotary/InputRotary.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ SUB_MENU(
LiquidCrystal_I2C lcd(0x27, LCD_COLS, LCD_ROWS);
LiquidCrystal_I2CAdapter lcdAdapter(&lcd, LCD_COLS, LCD_ROWS);
LcdMenu menu(lcdAdapter);
SimpleRotary encoder(2, 3, 4);
SimpleRotaryAdapter rotary(&menu, &encoder);
SimpleRotary rotary(2, 3, 4);
SimpleRotaryAdapter rotaryAdapter(&menu, &rotary);

void setup() {
Serial.begin(9600);
menu.initialize(mainMenu);
}

void loop() {
rotary.observe();
rotaryAdapter.observe();
}

// Define the callbacks
Expand Down
6 changes: 3 additions & 3 deletions examples/SimpleRotary/SimpleRotary.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ MAIN_MENU(
LiquidCrystal_I2C lcd(0x27, LCD_COLS, LCD_ROWS);
LiquidCrystal_I2CAdapter lcdAdapter(&lcd, LCD_COLS, LCD_ROWS);
LcdMenu menu(lcdAdapter);
SimpleRotary encoder(2, 3, 4);
SimpleRotaryAdapter rotary(&menu, &encoder);
SimpleRotary rotary(2, 3, 4);
SimpleRotaryAdapter rotaryAdapter(&menu, &rotary);

void setup() {
Serial.begin(9600);
menu.initialize(mainMenu);
}

void loop() {
rotary.observe();
rotaryAdapter.observe();
}

// Define the callbacks
Expand Down

0 comments on commit ec7638f

Please sign in to comment.