Drivers

TinyGo has driver support for 26 different sensors and devices such as digital accelerometers and multicolor LEDs.

All of the drivers code is in the TinyGo Drivers repository located at https://github.com/tinygo-org/drivers/.

Device Name Interface Type
ADXL345 accelerometer I2C
APA102 RGB LED SPI
AT24CX 2-wire serial EEPROM I2C
BH1750 ambient light sensor I2C
BlinkM RGB LED I2C
BME280 humidity/pressure sensor I2C
BMP180 barometer I2C
DS1307 real time clock I2C
DS3231 real time clock I2C
“Easystepper” stepper motor controller GPIO
ESP8266/ESP32 AT Command set for WiFi/TCP/UDP UART
GPS module I2C/UART
HUB75 RGB led matrix SPI
LIS3DH accelerometer I2C
MAG3110 magnetometer I2C
BBC micro:bit LED matrix GPIO
MMA8653 accelerometer I2C
MPU6050 accelerometer/gyroscope I2C
PCD8544 display SPI
SHT3x Digital Humidity Sensor I2C
SSD1306 OLED display I2C / SPI
Thermistor ADC
VL53L1X time-of-flight distance sensor I2C
Waveshare 2.13” e-paper display SPI
Waveshare 2.13” (B & C) e-paper display SPI
WS2812 RGB LED GPIO

We also give you the ability to add new drivers. If your device isn’t listed here, please raise an issue in the issue tracker.