BS2 Pro Dev Board & LCD
churd
Posts: 9
I am currently teaching an intro to programming class at the high school level, and one of my students is trying to use the lcd panel that came with the pro dev board. (HD44780-compatible LCD module) They want to display "The button is:" on the first line, and "on" or "off" depending on the state of the button.
The button is attached to an I/O pin, and the LCD panel operates fine using the LCD Demo program in the manual.
I have very little knowledge about the lcd panel and it's operation, and I was wondering if there is anyone out there that has a a program that will do something similar, that I can use as a starting point. It's a learning experience for me too! Eventually they want to hook up a temp sensor to the I/O pin, and read the temp.
Thanks in advance! Appreciate it!
The button is attached to an I/O pin, and the LCD panel operates fine using the LCD Demo program in the manual.
I have very little knowledge about the lcd panel and it's operation, and I was wondering if there is anyone out there that has a a program that will do something similar, that I can use as a starting point. It's a learning experience for me too! Eventually they want to hook up a temp sensor to the I/O pin, and read the temp.
Thanks in advance! Appreciate it!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Depending on how your code is structured you can either refresh the LCD when the button state has changed, or you can update it in real time and provide the on/off response via conditional branch or value. Your code structure for your main program will greatly depend on how you do this because there really is more than one way to accomplish it. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Thanks again!
··· I believe the LCD display that came with the Pro Developers Board for the BS2 is a parallel LCD display.· Attached is the datasheet for the processor on board the display.· There is also examples in the Nuts and Volts archives for this display.· You can find the NV articles here at parallax's site.
··· I would recomend ordering one of parallax's serial displays for your class.· They are very user friendly compared to the parallel display.
Happy Holidays.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 types of people that understand binary, those who do, and those who don't.
Thanks! I think I will go with Serial for next year, as I am a Hardware guy, and user-friendly is my game! I will get the nuts & Volts articles, and check them out.
Thanks and have a great Holiday Season!
Only in Digital Electronics class is 1 + 1 = 10!!!!!