sunxi-pio(1)
β¨ sunxi-pio β¨
okay bestie, listen up π this is the manual page for sunxi-pio, the little tool that lives in the sunxi-tools world and lets you mess with PIO β that's GPIO and pinmux β on sunxi devices. she's small, she's powerful, she's giving embedded-systems main character energy π
πΈ NAME πΈ
sunxi-pio β manipulate PIO (GPIO and pinmux) on sunxi devices π¦
π SYNOPSIS π
sunxi-pio -m|-i input [ -o output ] pin
likeβ¦ that's the whole vibe. one input source, optional output file, and a pin. slay π
π DESCRIPTION π
sunxi-pio manipulates PIO (GPIO and pinmux) on sunxi devices β¨
that's it, that's the whole plot. she pokes the pins, she reads the pins, she tells you what the pins are doing. no cap π
π OPTIONS π
-mβ mmap mode: read the pin state straight from the system, live, no middleman π§-iβ read the pin state from a file instead-oβ save the pin state data out to a file πΎ
and now for the actual pin commands, because this is where it gets fun:
printβ show all pins. every single one. the whole roster πPxxβ show a single pin, just the one you asked about π«ΆPxx<mode><pull><drive><data>β configure the pin. you're setting the whole little ensemble here: mode, pull, drive, data πPxx=data,driveβ configure GPIO output π₯Pxx*countβ oscillate the GPIO output. yes, wiggle it. and heads up: this one is mmap mode only β οΈPxx?pullβ configure GPIO input πΈcleanβ clean the input pins π§Ό
reminder bestie:Pxx*countonly works with-m(mmap mode). don't come for me if it doesn't do the thing otherwise π
π SEE ALSO π
https://linux-sunxi.org/Sunxi-tools#sunxi-pio β go read the wiki, it's giving lore π
π AUTHOR π
Ian Campbell <ijc@debian.org> β the icon who made this happen π
and that's a wrap, gorgeous π this page is from sunxi-pio version 1.4.2, dated 28 Jan 2023, filed under section 1 of the manual. go forth and pinmux responsibly, bestie π β¨π¦
π¦ where this page comes from
- debian bookworm: sunxi-tools 1.4.2+git20221128.530adf-2 Β· MIT
- debian trixie: sunxi-tools 1.4.2+git20240825.4390ca-1 Β· MIT
- ubuntu noble: sunxi-tools 1.4.2+git20221128.530adf-3 Β· MIT
- ubuntu questing: sunxi-tools 1.4.2+git20240825.4390ca-1
- ubuntu resolute: sunxi-tools 1.4.2+git20240825.4390ca-1build1 Β· MIT
- ubuntu stonking: sunxi-tools 1.4.2+git20260530.d7bbd1-1 Β· MIT
- Copyright (C) 2023 by Ian Campbell <ijc@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms