examples/hwapi: Add hwconfig_pyboard.py for pyboard.

This commit is contained in:
Kai Fricke 2017-02-08 20:33:54 +01:00 committed by Damien George
parent 18e6569166
commit c8febe631a
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
from machine import Pin, Signal
# Red LED on pin LED_RED also kown as A13
LED = Signal(Pin('LED_RED', Pin.OUT))
# Green LED on pin LED_GREEN also known as A14
LED2 = Signal(Pin('LED_GREEN', Pin.OUT))
# Yellow LED on pin LED_YELLOW also known as A15
LED3 = Signal(Pin('LED_YELLOW', Pin.OUT))
# Blue LED on pin LED_BLUE also known as B4
LED4 = Signal(Pin('LED_BLUE', Pin.OUT))