I'm attempting to use tcMenuGenerator, a menu generator tool that seems very promising.
I'm using an Arduino Mega to control a a 20x4 LCD, using I2C on 0x27 (pins SDA 20 and SCL 21, along with Vcc and Ground). I was using it successfully with the LiquidCrystal_I2C library.
The menu generator uses LiquidCrystalIO, a custom fork of LiquidCrystal included with the tool.
My issue is that the menu text displays on my LCD, but the backlight does not activate. lcd.backlight() doesn't work.
Can anyone point me toward getting the backlight turned on?
I have included the code files generated by the tool on my test run. Some of the files are named "Smoker_Menu", because this system is intended to be a PID control for a smoker, but there is nothing in the attached files except for a few test menu items. I apologize that there are 5 files to look at, but they are all relatively short and I didn't want to omit something important to sorting this out...
Perhaps I should add that the backlight comes on when I power up the system, but then turns off when the sketch finishes loading and starts running.
Also, there are a bunch of pin options for controlling the LCD in the setup for the tool, but since I am using I2C, I didn't know what to do with them and left them at their defaults. They show up in Smoker_Menu.h, lines 28-33. Maybe that is the problem?
I have also attached an image of the options available when running the menu generator.
Thanks in advance.
Smoker_Menu.cpp (1.79 KB)
Smoker_Menu.h (1.49 KB)
Smoker_Menu.ino (158 Bytes)
tcMenuLiquidCrystal.cpp (2.25 KB)
tcMenuLiquidCrystal.h (1.47 KB)