Documentation ¶
Overview ¶
Package cmd contains tools.
Visit https://github.com/google/periph/blob/master/cmd/README.md for more information about how to use the tools provided.
Directories ¶
Path | Synopsis |
---|---|
ads1x15 reads from ADS1015/ADS1115 Analog-Digital Converters (ADC) via I²C interface.
|
ads1x15 reads from ADS1015/ADS1115 Analog-Digital Converters (ADC) via I²C interface. |
apa102 writes to a strip of APA102 LED.
|
apa102 writes to a strip of APA102 LED. |
as7262 communicates with an as7262 continually reading the spectrum.
|
as7262 communicates with an as7262 continually reading the spectrum. |
bmxx80 reads environmental data from a BMP180/BME280/BMP280.
|
bmxx80 reads environmental data from a BMP180/BME280/BMP280. |
cap1xxx sense touches.
|
cap1xxx sense touches. |
ccs811 reads from a CCS811 Volatile Organic Compounds sensor via I²C interface.
|
ccs811 reads from a CCS811 Volatile Organic Compounds sensor via I²C interface. |
ftdi prints out information about the FTDI devices found on the USB bus.
|
ftdi prints out information about the FTDI devices found on the USB bus. |
ftdi-eeprom interacts with the EEPROM of a FTDI device.
|
ftdi-eeprom interacts with the EEPROM of a FTDI device. |
gpio-list prints out the function of each GPIO pin.
|
gpio-list prints out the function of each GPIO pin. |
gpio-read reads a GPIO pin.
|
gpio-read reads a GPIO pin. |
gpio-write sets a GPIO pin to low or high.
|
gpio-write sets a GPIO pin to low or high. |
hd44780 writes to a text LCD screen.
|
hd44780 writes to a text LCD screen. |
headers-list prints out the headers as found on the computer and print the functionality of each pin.
|
headers-list prints out the headers as found on the computer and print the functionality of each pin. |
hx711 reads from a 24-bits HX711 analog to digital converter.
|
hx711 reads from a 24-bits HX711 analog to digital converter. |
i2c-io communicates to an I²C device.
|
i2c-io communicates to an I²C device. |
i2c-list lists all I²C buses.
|
i2c-list lists all I²C buses. |
ina219 communicates with an ina219 sensor reading voltage, current and power.
|
ina219 communicates with an ina219 sensor reading voltage, current and power. |
inky tests an inky board.
|
inky tests an inky board. |
ir reads from an IR receiver via LIRC.
|
ir reads from an IR receiver via LIRC. |
led reads the state of a LED or change it.
|
led reads the state of a LED or change it. |
lepton captures a single image, prints metadata about the camera state or triggers a calibration.
|
lepton captures a single image, prints metadata about the camera state or triggers a calibration. |
mcp9808 communicates with an mcp9808 sensor reading ambient temperature.
|
mcp9808 communicates with an mcp9808 sensor reading ambient temperature. |
mfrc522 reads RFID tags.
|
mfrc522 reads RFID tags. |
mpu9250 calibrates and performs the self-test, then measures the acceleration continuously.
|
mpu9250 calibrates and performs the self-test, then measures the acceleration continuously. |
nrzled writes to a strip of LEDs using the NRZ protocol.
|
nrzled writes to a strip of LEDs using the NRZ protocol. |
onewire-list lists all onewire buses and devices.
|
onewire-list lists all onewire buses and devices. |
pca9548 scans the 8 ports of a pca9548 i2c multiplexer for other i2c devices.
|
pca9548 scans the 8 ports of a pca9548 i2c multiplexer for other i2c devices. |
periph-info prints out information about the loaded periph drivers.
|
periph-info prints out information about the loaded periph drivers. |
periph-smoketest runs all known smoke tests.
|
periph-smoketest runs all known smoke tests. |
gpiosmoketest
Package gpiosmoketest is leveraged by periph-smoketest to verify that basic GPIO pin functionality work.
|
Package gpiosmoketest is leveraged by periph-smoketest to verify that basic GPIO pin functionality work. |
i2csmoketest
Package i2csmoketest is leveraged by periph-smoketest to verify that an I²C EEPROM device and a DS2483 device can be accessed on an I²C bus.
|
Package i2csmoketest is leveraged by periph-smoketest to verify that an I²C EEPROM device and a DS2483 device can be accessed on an I²C bus. |
onewiresmoketest
Package onewiresmoketest is leveraged by periph-smoketest to verify that a 1-wire bus search returns two devices, that a ds18b20 temperature sensor can be read, and that a ds2431 eeprom can be written and read.
|
Package onewiresmoketest is leveraged by periph-smoketest to verify that a 1-wire bus search returns two devices, that a ds18b20 temperature sensor can be read, and that a ds2431 eeprom can be written and read. |
spismoketest
Package spismoketest is leveraged by periph-smoketest to verify that an EEPROM device can be accessed on a SPI port.
|
Package spismoketest is leveraged by periph-smoketest to verify that an EEPROM device can be accessed on a SPI port. |
periph-web runs a web server exposing periph's state.
|
periph-web runs a web server exposing periph's state. |
sn3218 runs a smoketest on a SN3218 LED driver with 18 LEDs over an i2c bus.
|
sn3218 runs a smoketest on a SN3218 LED driver with 18 LEDs over an i2c bus. |
spi-io writes to an SPI port data from stdin and outputs to stdout or writes arguments and outputs hex encoded output.
|
spi-io writes to an SPI port data from stdin and outputs to stdout or writes arguments and outputs hex encoded output. |
spi-list lists all SPI ports.
|
spi-list lists all SPI ports. |
ssd1306 writes to a display driven by a ssd1306 controler.
|
ssd1306 writes to a display driven by a ssd1306 controler. |
st7567 displays an image on a ST7567 dot matrix LCD.
|
st7567 displays an image on a ST7567 dot matrix LCD. |
thermal reads the state of thermal sensors exposed via sysfs.
|
thermal reads the state of thermal sensors exposed via sysfs. |
tlv493d measures the magnetic flux sensed by a tlv493d component.
|
tlv493d measures the magnetic flux sensed by a tlv493d component. |
tm1637 writes to a digits LED display.
|
tm1637 writes to a digits LED display. |
videosink is a simplistic example of how to use the "videosink" virtual display as an HTTP handler.
|
videosink is a simplistic example of how to use the "videosink" virtual display as an HTTP handler. |
Click to show internal directories.
Click to hide internal directories.