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*count only 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 πŸ’…βœ¨πŸ¦‹