i2c

du1mga

New Member
Hi I just switched from 18x to 20m2,
I have the following problem:

on the old setup with the 18X I starting with:

symbol slaveaddress = $AA
i2cslave slaveaddress, i2cslow, i2cbyte

that works.

Now with the new 20M2 I try :

symbol slaveaddress = $AA
hi2csetup slaveaddress, i2cslow, i2cbyte

I becoming an error.
Please help me with this problem

Regards
 

hippy

Ex-Staff (retired)
Try

hi2csetup i2cmaster, slaveaddress, i2cslow, i2cbyte

It's the "i2cmaster" you're missing.
 

du1mga

New Member
Hi hippy,

it did the trick. Thanks very much. Now it works very good.

Greetings and all the best

du1mga
 
Top