summaryrefslogtreecommitdiff
path: root/examples/hwapi/hwconfig_pyboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hwapi/hwconfig_pyboard.py')
-rw-r--r--examples/hwapi/hwconfig_pyboard.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/hwapi/hwconfig_pyboard.py b/examples/hwapi/hwconfig_pyboard.py
new file mode 100644
index 000000000..4db432491
--- /dev/null
+++ b/examples/hwapi/hwconfig_pyboard.py
@@ -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))