I have found that the library will compile when replacing Wire,h and Print.h with application.h.
However when I flash, nothing happens on the LCD, and the light on the photon goes to steady Cyan. The only way to flash after that is to put it into DFU Mode.
Can anyone offer some help to either porting this library or steering me in the right direction?
You are using the library from the linked page? in the rgb_lcd.cpp file you will need to remove all headers (particle includes them if required) and replace with application.h,
as a test try this example with the #include <Wire.h> removed
there was a bug with 0.4.7 where the device would lock up if the resistors were not present on i2c, maybe try going back to an older version just to test, maybe 0.4.6.
@Thewierd1, you may need to add pull-up resistors on the SDA and SCL lines. I recommend 4.7K ohm resistors to the +5 or Vin line from which you power the LCD module.
Well I tried your suggestion @peekay123. I dont quite have 4.7k, Just 4k ohm however to no such luck. Just get the same results as the previous image posted.
Could it be an addressing issue with I2C?
I was following the post above. I have a Grove RGB I2C LCD display that I wish to connect to a Photon. But I didn’t see where the the SCL and the SDA pins from the LCD connect to the photon?
Can someone help to help me understand how to hook up the LCD.
Do I really need to connect pull-up resistors to make it work?
Any help would be appreciated
thanks
Tom
@Geotek50, here is how you need to connect the grove to your Photon:
Grove Photon
Wire Pin
----------------
Black GND
Red Vin (this is 5v USB power)
White D0 (SDA)
Yellow D1 (SCL)
You WILL need 4.7K or 10K pulllup resistors for both SDA and SCL lines. You will need to pullup to Vin (5v). You can try without the resistors to begin as it is unclear if there are pullups on the Grove board already.
Can you modify that part, or do you just have to resign to the fact that D0 and D1 will be the chosen pins. Either way, it will take up two I/O pins, I’m just wondering in case I have to modify it.