Gives control of the built-in LED (D8) on GPIO5. 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. | |
Gives control of the built-in LED (D8) on GPIO5.
Use the class object to control the built-in LED (D8) on GPIO5. When call it sets up the GPIO5 as an OUTPUT and set the drive strength to 12mA. The class will allow you to turn the LED on/off/toggle.
| value | ( | self, | |
| level = None ) |
Reads or sets the LED.
| level | None to read; 1 (on) or 0 (off) to set. |