Hi Steve, Good news. I tried your program and it works! I guess it just wanted me to use variables instead of hard coding the I2C statements. Or, maybe I just needed to add the TRISIO to set the pins as outputs. There is a weird anomaly going on though. Most of the time when I power it on, other leds flash on for a second then are off. To debug this, I put a pause right under the TRISIO statement. The leds stayed on much longer, then started dropping out one by one. Also, if I have GPIO.0 and GPIO.1 connected to a led, as well as the SDA and SCL lines, the program doesn't work. Any ideas on this? Other than that, the program works great!
Thanks for your help.
Chris
Bookmarks