---
name: "airspy_gpio"
section: "1"
platform: "linux"
package: "airspy"
version: "1.0.10-3+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/airspy_gpio"
---

# airspy\_gpio(1)

read and write gpio pin values

## NAME

airspy\_gpio - read and write gpio pin values

## DESCRIPTION

The Airspy is a tiny and efficient software defined radio receiver.

This application lets the user read and write gpio pins.

## SYNOPSIS

**airspy\_gpio**

## OPTIONS

- \-p, --port\_no \<p\>: set port number\<p\>\[0,7\] for subsequent read/write operations0

  - \-n, --pin\_no \<n\>: set pin number\<n\>\[0,31\] for subsequent read/write operations0

  - \-r, --read: read port number/pin number value and direction specified by last -n argument, or all port/pin0

  - \-w, --write \<v\>: write value specified by last -n argument with value\<v\>\[0,1\]0

  - \[-s serial\_number\_64bits\]: Open board with specified 64bits serial number.0

  ## Examples

- \<command\> -p 0 -n 12 -r # reads from port 0 pin number 120

  - \<command\> -r # reads all pins on all ports0

  - \<command\> -p 0 -n 10 -w 1 # writes port 0 pin number 10 with 1 decimal0

  ## Hardware Info AirSpy

- LED1(out): -p 0 -n 12 (0=OFF, 1=ON)0

  - Enable R820T(out): -p 1 -n 7 (0=OFF, 1=ON)0

  - Enable BiasT(out): -p 1 -n 13 (0=OFF, 1=ON)0

  ## SEE ALSO

Airspy web page: **http://airspy.com/**

Other airspy programs:

[airspy\_info(1)](/airspy_info/1.md), [airspy\_si5351c(1)](/airspy_si5351c/1.md), [airspy\_spiflash(1)](/airspy_spiflash/1.md), [airspy\_gpio(1)](/airspy_gpio/1.md), [airspy\_gpiodir(1)](/airspy_gpiodir/1.md), [airspy\_lib\_version(1)](/airspy_lib_version/1.md)

## AUTHOR

This manual page was written by Maitland Bottoms for the Debian project (but may be used by others).

## COPYRIGHT

Copyright (c) 2015 A. Maitland Bottoms \<bottoms@debian.org\>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
