pxt-calliope/docs/reference/led.md

28 lines
1.0 KiB
Markdown
Raw Normal View History

2016-04-05 22:23:42 +02:00
# Led
2016-05-05 20:16:14 +02:00
Control of the LED screen.
2016-04-05 22:23:42 +02:00
```cards
led.plot(0, 0);
led.unplot(0, 0);
led.point(0, 0);
2016-08-29 23:49:51 +02:00
led.toggle(0, 0);
2016-04-05 22:23:42 +02:00
led.brightness();
2017-08-18 17:15:43 +02:00
led.plotBrightness(0, 0, 255)
2016-04-05 22:23:42 +02:00
led.setBrightness(255);
led.stopAnimation();
2016-05-05 20:16:14 +02:00
led.plotBarGraph(0, 0);
2016-04-05 22:23:42 +02:00
led.fadeIn();
led.fadeOut();
led.plotAll();
led.screenshot();
led.toggleAll();
2016-04-05 22:54:48 +02:00
led.setDisplayMode(DisplayMode.BackAndWhite);
led.enable(false)
2016-04-05 22:23:42 +02:00
```
2016-08-08 22:08:15 +02:00
### See Also
[plot](/reference/led/plot), [unplot](/reference/led/unplot), [point](/reference/led/point), [brightness](/reference/led/brightness), [setBrightness](/reference/led/set-brightness), [stopAnimation](/reference/led/stop-animation), [plotBarGraph](/reference/led/plot-bar-graph), [fadeIn](/reference/led/fade-in), [fadeOut](/reference/led/fade-out), [plotAll](/reference/led/plot-all), [screenshot](/reference/led/screenshot), [toggle](/reference/led/toggle), [toggleAll](/reference/led/toggle-all), [setDisplayMode](/reference/led/set-display-mode), [enabled](/reference/led/enable),
2017-08-18 17:15:43 +02:00
[plotBrightness](/reference/led/plot-brightness),