adding led.toggle as a block

This commit is contained in:
Peli de Halleux 2016-08-08 16:53:55 -07:00
parent dd011b977a
commit de5def8dde

View File

@ -51,7 +51,8 @@
* @param x TODO
* @param y TODO
*/
//% help=led/toggle
//% help=led/toggle weight=77
//% blockId=device_led_toggle block="toggle|x %x|y %y" icon="\uf204" blockGap=8
export function toggle(x: number, y: number): void {
if (led.point(x, y)) {
led.unplot(x, y);