added serial events

This commit is contained in:
Peli de Halleux
2016-05-17 09:36:01 -07:00
parent 7704ad9f8d
commit 2e3d875b7d
5 changed files with 58 additions and 13 deletions

View File

@ -169,7 +169,7 @@ namespace control {
* Gets the timestamp of the last event executed on the bus
*/
//% blockId=control_event_timestamp" block="event timestamp"
//% weight=19 blockGap-8
//% weight=19 blockGap=8
int eventTimestamp() {
return pxt::lastEvent.timestamp;
}