Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » Cannot output menu to I2C 20x04 LCD

Author: Peter
02/02/2021 11:44:59
So I've been at this for several days now with no luck, and it's time to ask for help! I promise I've searched the forum and read everything I can.

So I can get my I2C 20x04 LCD display running fine with the LiquidCrystalIO > HelloI2C example. So my hardware is fine.

I'm starting with the most straightforward simple menu I can create, to get it working first, and then go from there. The example I created was literally a single analogue item in Tc Menu Designer 1.7.5 for MacOS. This compiles perfectly, and uploads to my device, but nothing is appearing on the screen. From what I have read, I don't need to call anything and by default the menu should appear but this is not happening. It must be something simple, but I'm baffled. Where do I start?

Edit to add: I've got an encoder set up on pins 2 and 3, with the switch on pin4. I'm using an Arduino Mega 2560. I've followed this exactly: https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/tcmenu-overview-quick-start/ and I'm getting nothing at all.

Filename tcmenu_testproject_02_02_2021.zip
Description No description given
Filesize 11 Kbytes
Downloaded 54112 time(s)
[Disk] Download


Author: davetcc
02/02/2021 15:21:41
Thanks for reporting with all the details, I'll try and build the project later today using Arduino and feedback here.

Author: davetcc
02/02/2021 19:57:20
In the designer code generator, under display settings, there's an option for the "LCD Pin Layout". I think you've picked the opposite one to which is the default in the HelloI2C sketch. Could you try the other option please and let me know if it works.

It will have options for RS_RW_EN and EN_RW_RS. Basically, can you try the other option?

Many thanks.

Author: davetcc
02/02/2021 19:58:34
A bit more background.

Basically, the I2C backpacks are not standard, some use RS-RW-EN and some use EN-RW-RS. We don't try to guess them, instead, we just rely on you trying both options.

Author: Peter
02/02/2021 22:35:38
Bravo! Solved. Many, many thanks! Was indeed the weird I2C.




Register / Login  |  Desktop view  |  Jump to top of page