send_string(" key." CRLF);
}
+void send_timer() {
+ /* send a packet of the form KX with X being the key, or R for reset */
+ unsigned int t=get_timer_counter();
+
+ send_string("013 ");
+ sci_tx_buf[0] = '0'+(t/10000)%10;
+ sci_tx_buf[1] = '0'+(t/1000)%10;
+ sci_tx_buf[2] = '0'+(t/100)%10;
+ sci_tx_buf[3] = '0'+(t/10)%10;
+ sci_tx_buf[4] = '0'+t%10;
+ sci_tx_buf[5] = 0;
+ send_buffer(1);
+}
+
void send_door_msg(bool open) {
if (is_standalone()) return;
sci_tx_buf[0] = '4';
" Revision: " VERSION_STRING " Built: " DATEBUILT_STRING CRLF "" CRLF CRLF
" This snack machine was brought to you by " CRLF
" Bernard Blackham" CRLF
- " Mark Tearle" CRLF
" Harry McNally" CRLF
+ " Mark Tearle" CRLF
" Michal Gornisiewicz" CRLF
+ " Nick Bannon" CRLF
" and others." CRLF
"" CRLF
" Another UCC project in action. http://www.ucc.asn.au/" CRLF
}
} else
send_keypress(last_key);
+ send_timer();
}
/*