HYDRASDR_GPIO(1)
π 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-nargument 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-nargument 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
- ubuntu resolute: hydrasdr-tools 1.0.3-1 Β· HydraSDR-BSD
- ubuntu stonking: hydrasdr-tools 1.1.1+dfsg-1 Β· HydraSDR-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms