This CCBasic example, with the C-Control I Unit M2.0 mounted on the C-Control I Application Board 2.0, will read the CMPS10 16 bit bearing, 8 bit pitch and roll and display the data on the LCD as B = xxx,x° / P = xx° / R = xx°.
Communication with the CMPS10 is via an emulated I2C bus using my E-I2C (v2.0) subroutines.
The emulated SDA line is via port 4.
The emulated SCL line is via port 5.
Greetings,
H.J. Windt
Lesezeichen