Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:51 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Adafruit LCD

Author Message
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 08:58pm 06 Jul 2013
Copy link to clipboard 
Print this post

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: Thailand
Posts: 2209
Posted: 09:15pm 06 Jan 2014
Copy link to clipboard 
Print this post

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 States
Posts: 282
Posted: 01:09pm 07 Jan 2014
Copy link to clipboard 
Print this post

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 Zealand
Posts: 711
Posted: 02:00pm 07 Jan 2014
Copy link to clipboard 
Print this post

  elproducts said   Thanks for sharing jman.
Just having MMBasic code to communicate with an MCP23017 is helpful.



You are welcome

John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024