![]() |
Forum Index : Microcontroller and PC projects : Adafruit LCD
Author | Message | ||||
jman![]() Guru ![]() Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi I saw this Adafruit LCD with buttons and built one for my PI The interesting thing these LCDs are RGB backlit Then decided to port it to the Maximite This PCB has an odd layout connecting the LCD to the 23017 Would have been much simpler if it used a logical layout ie 0-3 for d4-d7 instead it uses 4-1 for d4-d7 The cool thing is you get an LCD and 5 input switches with just 2 pins as it uses I2C. The I2C is handled by a Microchip MCP23017. Attached the basic code to make it go. This is based on the LCD code from the Library 2013-07-07_065707_MCP23017.zip Regards John |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
That is one way to connect an LCD, however it is not the best or most efficient way. You still need to code every bit from basic. Doable but not ideal. An in my opinion better way is how PICAXE does it. like this: http://www.picaxe.com/docs/axe133.pdf I have one of those and it works great. One of my goals is to use a small pic instead and use the I2C bus. Hopefully MOBI can make us all a bit more wiser about I2C on PICs. :) Microblocks. Build with logic. |
||||
elproducts![]() Senior Member ![]() Joined: 19/06/2011 Location: United StatesPosts: 282 |
Thanks for sharing jman. Just having MMBasic code to communicate with an MCP23017 is helpful. www.elproducts.com |
||||
jman![]() Guru ![]() Joined: 12/06/2011 Location: New ZealandPosts: 711 |
You are welcome John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |