You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Initialize the main menu items
// clang-format off
MENU_SCREEN(mainScreen, mainItems,
ITEM_BASIC("Start service"),
ITEM_BASIC("Connect to WiFi"),
ITEM_BASIC("Settings"),
ITEM_BASIC("Blink SOS"),
ITEM_BASIC("Blink random"));
// clang-format on
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hello everybody, I'm using this following code and it doesn't work because of this error please help me to solve this problem.
`#include <LcdMenu.h>
#include <MenuScreen.h>
#include <display/LiquidCrystal_I2CAdapter.h>
#include <input/KeyboardAdapter.h>
#include <renderer/CharacterDisplayRenderer.h>
#define LCD_ROWS 2
#define LCD_COLS 16
// Initialize the main menu items
// clang-format off
MENU_SCREEN(mainScreen, mainItems,
ITEM_BASIC("Start service"),
ITEM_BASIC("Connect to WiFi"),
ITEM_BASIC("Settings"),
ITEM_BASIC("Blink SOS"),
ITEM_BASIC("Blink random"));
// clang-format on
LiquidCrystal_I2C lcd(0x27, LCD_COLS, LCD_ROWS);
CharacterDisplayRenderer renderer(new LiquidCrystal_I2CAdapter(&lcd), LCD_COLS, LCD_ROWS);
LcdMenu menu(renderer);
KeyboardAdapter keyboard(&menu, &Serial);
void setup() {
Serial.begin(9600);
// Initialize LcdMenu with the menu items
renderer.begin();
menu.setScreen(mainScreen);
}
void loop() {
![Screenshot 2025-01-28 201042](https://private-user-images.githubusercontent.com/78661164/407406405-58fdc2e5-db16-42bf-b92c-9f6fb67491ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDg0NjgsIm5iZiI6MTczOTQwODE2OCwicGF0aCI6Ii83ODY2MTE2NC80MDc0MDY0MDUtNThmZGMyZTUtZGIxNi00MmJmLWI5MmMtOWY2ZmI2NzQ5MWFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDAwNTYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4MDBmNmFlMjdhZDc2OTI0Zjk3OTdkNTZkYTdhZGE3ZjE2NWEyYmY2YjQ2ZjQ0Yzc4N2M4NDI1MzJlZjQ3NTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.brcsONueLEnRz1xKs8EIe87vi07zRUn4aRfHdDw47As)
keyboard.observe();
}
`
Beta Was this translation helpful? Give feedback.
All reactions