8000 examples/hwapi: Add hwconfig for DragonBoard 410c. · cagedev/micropython@29f3f84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29f3f84

Browse files
committed
examples/hwapi: Add hwconfig for DragonBoard 410c.
This requires recently added implementation of machine.Pin from micropython-lib.
1 parent 1195784 commit 29f3f84

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from machine import Pin
2+
3+
# 96Boards/Qualcomm DragonBoard 410c
4+
# By default, on-board LEDs are controlled by kernel LED driver.
5+
# To make corresponding pins be available as normal GPIO,
6+
# corresponding driver needs to be unbound first (as root):
7+
# echo -n "soc:leds" >/sys/class/leds/apq8016-sbc:green:user1/device/driver/unbind
8+
# Note that application also either should be run as root, or
9+
# /sys/class/gpio ownership needs to be changed.
10+
11+
# User LED 1 on gpio21
12+
LED = Pin(21, Pin.OUT)

0 commit comments

Comments
 (0)
0