summaryrefslogtreecommitdiffstatshomepage
path: root/examples/hwapi
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-09 22:48:26 +0000
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-10 01:59:10 +0300
commit29f3f84fbd90e5d43ba5d6c621d19021a45d184d (patch)
tree50191633c06b0b9719a2d0843fdadc17b65c6d9c /examples/hwapi
parent11957840e8ab7496ba87867fd73de38134a3fbbc (diff)
downloadmicropython-29f3f84fbd90e5d43ba5d6c621d19021a45d184d.tar.gz
micropython-29f3f84fbd90e5d43ba5d6c621d19021a45d184d.zip
examples/hwapi: Add hwconfig for DragonBoard 410c.
This requires recently added implementation of machine.Pin from micropython-lib.
Diffstat (limited to 'examples/hwapi')
-rw-r--r--examples/hwapi/hwconfig_dragonboard410c.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/hwapi/hwconfig_dragonboard410c.py b/examples/hwapi/hwconfig_dragonboard410c.py
new file mode 100644
index 0000000000..00f21a658f
--- /dev/null
+++ b/examples/hwapi/hwconfig_dragonboard410c.py
@@ -0,0 +1,12 @@
+from machine import Pin
+
+# 96Boards/Qualcomm DragonBoard 410c
+# By default, on-board LEDs are controlled by kernel LED driver.
+# To make corresponding pins be available as normal GPIO,
+# corresponding driver needs to be unbound first (as root):
+# echo -n "soc:leds" >/sys/class/leds/apq8016-sbc:green:user1/device/driver/unbind
+# Note that application also either should be run as root, or
+# /sys/class/gpio ownership needs to be changed.
+
+# User LED 1 on gpio21
+LED = Pin(21, Pin.OUT)