Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy