Openbeacon Axbo Example Code

Example Source Code
The following program is a simple example for initializing the NRF24L01 of the Sputnik and putting it into receive mode to receive all packages from the aXbo motion sensors. Every package which is received is sent out via RS232 protocol 38400, 8,n,1 on the optional buzzer output on the Sputnik (see schematic), which is not used on the PCB v0.2. The program is sending only the first package to the PC and is filtering all packages which are just sent for dealing with air collisions. The program was written for the Hitech PICC compiler and compiles with the free version of it. The included serial.c is part of the compiler and copyright by Hitech. It needs to be modified to use RA1 as TX for the RS232 protocol.