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

tcMenu Arduinio library » -plz point to work working sample for Uno with 16x I2C and few push buttons

Author: thevikas
16/03/2021 05:04:20
Hi,

I have read lot of the docs for tcMenu. Have even tried Menu designer. I feel it is really a superb project with a sort of multi tasking system it has while rendering menus.
I just cant get it to work. menu designer is not giving the options that I have.
I just need a smallest example which uses Arduino Uno + 16x2 I2C + 3 push buttons. I cannot locate this most simple sample. I do not have keypad shields and advance gfx hardware with me. I do have esp8266 and not able to work with even that.
Plz assist me.

Thanks,
Vikas

Author: davetcc
16/03/2021 09:14:43
I'm not sure if an I2C LCD will fit on an Uno board along with task manager and everything else. I mean LCD I2C on its own is 10K before task manager or tcMenu are brought into play. For Uno, we normally recommend using a DfRobot LCD shield, or using an LCD display with direct wiring. I think the SSD1306 ASCII support also fits well. In 2.0 when we release it soon, we've actually made some improvements, and got an Uno DfRobot menu down to 23K, that would probably just about allow I2C, but then what about your own code.

One important point, as per the documentation you need to determine if your display is RS first or EN first, and set it as such in the code generator, see https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/tcmenu-plugins/liquidcrystalio-hd44780-renderer-plugin/ particularly the section on "Commonly available I2C".

I quote from that page:

PIN_LAYOUT: I2C displays mainly fall into two categories, either with EN on pin0, or RS on pin 0. Try each of these if you are not sure. If your display does not work with either, use the above “display direct or non standard i2c option”.
 

Author: davetcc
16/03/2021 09:16:56
We'll also look to add this example in 2.0 if Uno has enough memory to allow for it, if not we'll add the example for Mega2560. I think as odd as it sounds, the nano 33 ble example does use a common I2C 20x4 display.

Author: thevikas
25/03/2021 08:26:39
Got it finally running using esp8266 + few buttons + 16x2 LCD
Thanks.




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