pxt-calliope/libs/microbit/control.ts
2016-04-01 17:45:18 -07:00

19 lines
501 B
TypeScript

//% weight=1 color="#333333"
namespace control {
/**
* Returns the value of a C++ runtime constant
*/
//% weight=19 weight=19 blockId="control_event_source" block="%id"
export function eventSource(id: EventBusSource) : number {
return id;
}
/**
* Returns the value of a C++ runtime constant
*/
//% weight=19 weight=19 blockId="control_event_value" block="%id"
export function eventValue(id: EventBusValue) : number {
return id;
}
}