//~~STARTUP // Want to mark trips as business or private while driving? // Easy, just connect a switch between input 2 and 3. // If the switch is closed, the trip will be marked as business, if it's open, the trip will be private IO1 = 1 // Input (High impedance) IO2 = 1 // Input (High impedance) IO3 = 1 // 3.3V TRIP_BUSINESS=0 //~~TIMER if IO2<1 then TRIP_BUSINESS = 0 //switch open, input will read 0V else TRIP_BUSINESS = 1 // switch closed, read 3.3V from IO3 //~~CALL // Code to execute when receiving an incoming call //~~SMS // Code to execute when receiving an SMS //~~MOVEMENT // Code to execute when detecting movement. // The movement intensity is stored in ACC_DETECT, as well as ACC_X, AXX_Y and AXX_Z //~~USSD // Code to execute when receiving a reply from a USSD string. // Reply is stored in INCOMING_USSD$ string //~~GPRS // Code to execute when receiving GPRS data. // Data is stored in INCOMING_GPRS$ string