From 29f3f84fbd90e5d43ba5d6c621d19021a45d184d Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Wed, 9 Nov 2016 22:48:26 +0000
Subject: [PATCH] examples/hwapi: Add hwconfig for DragonBoard 410c.

This requires recently added implementation of machine.Pin from
micropython-lib.
---
 examples/hwapi/hwconfig_dragonboard410c.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 examples/hwapi/hwconfig_dragonboard410c.py

diff --git a/examples/hwapi/hwconfig_dragonboard410c.py b/examples/hwapi/hwconfig_dragonboard410c.py
new file mode 100644
index 000000000..00f21a658
--- /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)
-- 
GitLab