One of the shield's LEDs, D1 (green) or D2 (red). More...
Public Member Functions | |
| on (self) | |
| Turns the LED on. | |
| off (self) | |
| Turns the LED off. | |
| toggle (self) | |
| Turns the LED on if it is off, and off if it is on. | |
| value (self, level=None) | |
| Reads or sets the LED. | |
One of the shield's LEDs, D1 (green) or D2 (red).
Each LED runs from VIO through 1 kOhm to its pin, so the pin turns it on by pulling low. on() and off() hide that: on() drives the pin low. The pin is set up the first time the LED is used, starting with the LED off.
| value | ( | self, | |
| level = None ) |
Reads or sets the LED.
| level | None to read; 1 (on) or 0 (off) to set. |