Drivers

TinyGo has driver support for 44 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/.

The following 44 devices are supported.

Device Name Interface Type
ADT7410 I2C Temperature Sensor I2C
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
Buzzer GPIO
DS1307 real time clock I2C
DS3231 real time clock I2C
“Easystepper” stepper motor controller GPIO
ESP32 as WiFi Coprocessor with Arduino nina-fw SPI
ESP8266/ESP32 AT Command set for WiFi/TCP/UDP UART
GPS module I2C/UART
HD44780 LCD controller GPIO
HUB75 RGB led matrix SPI
ILI9341 TFT color display SPI
L293x motor driver GPIO/PWM
L9110x motor driver GPIO/PWM
LIS3DH accelerometer I2C
LSM6DS3 accelerometer I2C
MAG3110 magnetometer I2C
MCP3008 analog to digital converter (ADC) SPI
BBC micro:bit LED matrix GPIO
Microphone - PDM I2S/PDM
MMA8653 accelerometer I2C
MPU6050 accelerometer/gyroscope I2C
PCD8544 display SPI
Resistive Touchscreen (4-wire) GPIO
Semihosting Debug
Shift register GPIO
SHT3x Digital Humidity Sensor I2C
SSD1306 OLED display I2C / SPI
SSD1331 TFT color display SPI
ST7735 TFT color display SPI
ST7789 TFT color display SPI
Thermistor ADC
VEML6070 UV light sensor I2C
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.