8M2 I2C syntax issue

Benjie

Senior Member
Hello there,
after 6 years I'm back to Picaxe to design a variometer (barometer) to be mounted on a model sailplane using the MS6511 sensor. The vertical speed of the model has to be transformed to audio signals to be transmitted to ground via a modified 433 MHz module.
Right now I am refreshing my code knowledge and I'm sucked on a I2C syntax to read the sensor.
The code in error is: hi2csetup hi2cmaster, %11101100, i2cslow, i2cbyte
Someone can tell me what is wrong on that line?

Thanks a lot. I feel like a school boy
 

lbenson

Senior Member
No "h" in hi2cmaster.

hi2csetup i2cmaster, %11101100, i2cslow, i2cbyte

I'm no school boy, but I still make mistakes like that which I can stare at forever without seeing.
 
Top