Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C LCD + Keypad - Adafruit 715
03-01-2014, 01:52 PM,
#1
I2C LCD + Keypad - Adafruit 715
I just got a PIC32 Pinguino OTG and I want to hook up an Adafruit 715 LCD + Keypad shield. Has anyone ported the Arduino code for this board to Pinguino code?
Reply
03-01-2014, 06:47 PM,
#2
RE: I2C LCD + Keypad - Adafruit 715
(03-01-2014, 01:52 PM)charlie_abb Wrote: I just got a PIC32 Pinguino OTG and I want to hook up an Adafruit 715 LCD + Keypad shield. Has anyone ported the Arduino code for this board to Pinguino code?

Apparently not. But, you can do it and you will learn a lot on how Pinguino works. If you need any help or get stuck somwhere, just post your problem here Shy
Dreaming in Code...
Reply
03-01-2014, 07:16 PM,
#3
RE: I2C LCD + Keypad - Adafruit 715
Main thing is convert C++ to C. Keep names fairly similar but add a prefix. Read existing code Smile

John
Reply
03-01-2014, 07:38 PM,
#4
RE: I2C LCD + Keypad - Adafruit 715
(03-01-2014, 07:16 PM)pingotg Wrote: Main thing is convert C++ to C. Keep names fairly similar but add a prefix. Read existing code Smile

John

Thanks for your "Senior" advice and yes I could do that, but as a junior ( I have experience of programming in PIC and i86 assembler but not much C or C++) it requires a lot of working out and I would prefer to "plug and play". I think it would good if there were more simple examples on the IDE to get started.
Reply
03-01-2014, 09:16 PM,
#5
RE: I2C LCD + Keypad - Adafruit 715
There are a lot of examples but you posted that you want something else. By all means use the existing ones.

John
Reply
03-01-2014, 09:55 PM,
#6
RE: I2C LCD + Keypad - Adafruit 715
Hardware you mentioned is hardly to be in any examples out there other than Adafruit who wrote/designed it. Besides, biggest fun and enjoyment is when you build something yourself.
Just be positive, start from line one and ask when stuck, we're here to help Wink
Dreaming in Code...
Reply
04-01-2014, 01:04 PM,
#7
RE: I2C LCD + Keypad - Adafruit 715
Hi guys,
Just for your information Pinguino has lcdi2c keypad libraries for both 8- and 32-bit Pinguino so you should be able to drive your Adafruit board without a lot of effort. I would just not recommend to make a new library from them but make them more flexible to support your board and other LCD I2C boards.
Examples are available in these directories :
- examples/04.Communication/i2c for LCD with I2C
- examples/02.Digital for Keypad
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
04-01-2014, 03:37 PM,
#8
RE: I2C LCD + Keypad - Adafruit 715
Thanks Regis, I will check them out.
Reply
06-01-2014, 02:34 PM,
#9
RE: I2C LCD + Keypad - Adafruit 715
Hi Regis,
I checked out the I2C and LCDI2C libraries. The LCDI2C library uses a PCF8574 I2C expander which only requires 1 byte to be written or read at any time. The I2C library is also only written to send or receive 1 byte of data at a time. I will be using the MCP23017 device which is looking for |Op code (incl hardware addy)| Register addy | Data to write/read |. Can the I2C library be modified (as suggested by RL) to write/read more than 1 byte at a time so that I can write/read to the MCP23017 by passing the register addy before the data byte? Your help would be appreciated.
Reply
06-01-2014, 04:14 PM, (This post was last modified: 06-01-2014, 04:18 PM by regis.)
#10
RE: I2C LCD + Keypad - Adafruit 715
Of course you can modified the i2c library as long as you take care of regression issues.
I will try to help you if I can.


(06-01-2014, 02:34 PM)charlie_abb Wrote: Hi Regis,
I checked out the I2C and LCDI2C libraries. The LCDI2C library uses a PCF8574 I2C expander which only requires 1 byte to be written or read at any time. The I2C library is also only written to send or receive 1 byte of data at a time. I will be using the MCP23017 device which is looking for |Op code (incl hardware addy)| Register addy | Data to write/read |. Can the I2C library be modified (as suggested by RL) to write/read more than 1 byte at a time so that I can write/read to the MCP23017 by passing the register addy before the data byte? Your help would be appreciated.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)