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 |
---|---|
apa102 writes to a strip of APA102 LED.
|
apa102 writes to a strip of APA102 LED. |
bmxx80 reads environmental data from a BMP180/BME280/BMP280.
|
bmxx80 reads environmental data from a BMP180/BME280/BMP280. |
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. |
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. |
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. |
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. |
onewire-list lists all onewire buses and devices.
|
onewire-list lists all onewire buses and 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. |
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. |
thermal reads the state of thermal sensors exposed via sysfs.
|
thermal reads the state of thermal sensors exposed via sysfs. |
tm1637 writes to a digits LED display.
|
tm1637 writes to a digits LED display. |
Click to show internal directories.
Click to hide internal directories.