HYDRASDR_GPIO(1)

πŸ“¦ version 1.1.1, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

hydrasdr_gpio β€” the little tool that reads and writes data to GPIO ports and pins, bestie. It's giving "poke the hardware, watch the hardware poke back" ✨


🌸 DESCRIPTION 🌸

✨ Usage ✨

  • -p, --port_no <p> β€” sets the port number <p>, which has to be in [0,7], for all the read/write stuff you do next. It's the "okay we're working in this room now" flag πŸšͺ
  • -n, --pin_no <n> β€” sets the pin number <n>, range [0,31], for whatever read/write comes after. Yes, 32 pins per port, she's roomy πŸ’…
  • -r, --read β€” reads the port number/pin number value and direction, based on the last -n argument you gave it. Or, if you didn't pin anything down, it reads all port/pin. Full sweep, no crumbs left πŸ‘‘
  • -w, --write <v> β€” writes the value <v> to whatever the last -n argument pointed at, and <v> lives in [0,1]. It's a zero or a one, that's the whole vibe πŸŽ€
  • -s [serial_number_64bits] β€” opens the board with the specified 64-bit serial number. Pick your fave when you've got more than one lil guy plugged in πŸ”Œ

πŸ”₯ EXAMPLES πŸ”₯

Read one single pin, very demure:

hydrasdr_gpio -p 0 -n 12 -r # reads from port 0 pin number 12

Read literally everything, main character energy:

hydrasdr_gpio -r          # reads all pins on all ports

Write a 1 to a pin (in decimal, no cap):

hydrasdr_gpio -p 0 -n 10 -w 1 # writes port 0 pin number 10 with 1
decimal

πŸ¦‹ Hardware Info HydraSDR πŸ¦‹

Here's the map, screenshot it πŸ“Έ

  • LED1(out) β€” -p 0 -n 12 (0=OFF, 1=ON) πŸ’‘
  • Enable R828D(out) β€” -p 1 -n 7 (0=OFF, 1=ON) πŸ“‘
  • Enable BiasT(out) β€” -p 1 -n 13 (0=OFF, 1=ON) ⚑
Heads up bestie: those are the only three hardware pins documented here, so don't go inventing new ones in your head 🫢

πŸ‘‘ AUTHORS πŸ‘‘

HydraSDR RFOne β€” and it was primarily written by Benjamin VERNOUX. Respect the pen, fr fr πŸ–ŠοΈβœ¨


🌈 SEE ALSO 🌈

  • Package documentation lives in /usr/share/doc/hydrasdr-tools/ πŸ“š
  • For more information visit https://www.hydrasdr.com 🌐

And that's the whole page, bestie β€” HydraSDR, August 2025, you're so welcome πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from