adding led.toggle as a block
This commit is contained in:
parent
dd011b977a
commit
de5def8dde
@ -51,7 +51,8 @@
|
|||||||
* @param x TODO
|
* @param x TODO
|
||||||
* @param y 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 {
|
export function toggle(x: number, y: number): void {
|
||||||
if (led.point(x, y)) {
|
if (led.point(x, y)) {
|
||||||
led.unplot(x, y);
|
led.unplot(x, y);
|
||||||
|
Loading…
Reference in New Issue
Block a user