Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Lcd 16x2 and Usb.Init ()

Status
Not open for further replies.
I do not know if you are still there. The LCD + i2C display with a simple sketch works and the display shows the characters correctly, but using lcd + i2C in my sketch, i have the same problem as the LCD 1602 without i2C module, and the lcd does not shows anything and i understand that the cause is because the serial does not turn on, in fact the if (Serial.available ()) returns value False, while disconnecting the i2C module the serial works regularly.
 
No! I went on holiday... We're allowed to do that you know!!

As you may already know... I don't really follow Arduino.. I do pic's.. The Arduino system has very few pins so interfacing two or more shields will always be a headache.. I thought that the I2C pins on an Arduino were on AD4 and 5 so they shouldn't affect serial atall..
 
oh sorry, I hope you're relaxed ;-) I also think that analog pins 4 and 5 should not affect the serial, unfortunately the problem does not resolve
 
Yes, I'm connecting the lcd to arduino but the code is too long to enter here, there are about 500 lines.
 
looking at the PDF for the keyes shield.... The MAX_LCD library uses the digital pins on the shield to drive an LCD as the shield itself uses eight Arduino pins.. The MAX_LCD library is built into the host shield library..

This is how I would run the display!!

If you open this link
http://tinkbox.ph/sites/tinkbox.ph/files/downloads/Keyes - USB Host Shield.pdf
there is a library link within..
 
I can try it out because a USB_Host_Shield library is already included and it also contains the max_LCD files, although they know that they have different sizes.

Thanks !
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top