The location variable needs to be a word variable. Also you will need to give the vaule to that variable prior to using it.
EEPromPointer = 1
I2CWrite SDA,SCL,wrtdev,EEPromPointer,[Data],Error_Indication
Pause 10
This will not work and isn't the same:
I2CWrite SDA,SCL,wrtdev,1,[Data],Error_Indication
Pause 10
Bookmarks