'*********************************************************** '** ** '** CMPS03 Demonstration Software for the PICAXE-28x ** '** ** '** Copyright 2003 - Devantech Ltd ** '** Commercial use of this software is prohibited ** '** Private and educational use only is permitted ** '** ** '** Written by Gerald Coe - May 2003 ** '** ** '*********************************************************** main: i2cslave $C0,i2cfast,i2cbyte ' Define i2c slave address for the CMPS03 loop: readi2c 0,(b0) ' Read CMPS03 Software Revision readi2c 1,(b1) ' Read compass bearing as a byte (0-255 for full circle) debug b0 ' Display Software Revision debug b1 ' Display Light Sensor Value goto loop