I been trying to use a appnote I found not much luck I think Mplab x with xc8 is hexed LOL
Dose anyone have a sample they don't care to share.
I'm just needing how to send the commands
I added my mplab X files may some one can point me to why it's not working It should but I get this and I'm sure I put them in the main c But why it keeps saying it's not using them is be on me.
And as you can see I'm using them
Dose anyone have a sample they don't care to share.
I'm just needing how to send the commands
I added my mplab X files may some one can point me to why it's not working It should but I get this and I'm sure I put them in the main c But why it keeps saying it's not using them is be on me.
Code:
./main.c:146: warning: (520) function "_ini_gpio" is never called
../WI2C.c:12: warning: (520) function "_i2c_start" is never called
../WI2C.c:28: warning: (520) function "_i2c_stop" is never called
../WI2C.c:99: warning: (520) function "_i2c_rd" is never called
../WI2C.c:118: warning: (520) function "_ack_poll" is never called
Code:
i2c_start;
i2c_wr(0x38);
i2c_wr(0x00);
i2c_wr(0xFF);
i2c_stop;
Attachments
-
97.1 KB Views: 51


