Registry / utility / x-drivers

x-drivers

JSON →
library0.35.0gogounverified

Package drivers provides a collection of hardware drivers for TinyGo for devices such as sensors and displays.

go get tinygo.org/x/drivers
INSTALL
IMPORT
SIG · X-DRIVERS
X
x-drivers
utilitygov0.35.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

drivers
tinygo.org/x/drivers

Read temperature from a BME280 sensor using TinyGo

package main import ( "machine" "tinygo.org/x/drivers/bme280" ) func main() { bus := machine.I2C0 sensor := bme280.New(bus) sensor.Configure() temp, _ := sensor.ReadTemperature() println(temp) }
Debug
Known issues
gotchaOnly works with TinyGo compiler, not standard Go
fix
Use 'tinygo build' instead of 'go build'
affects: >=0.1.0
Upgrade
Version history
0.35.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources
x-drivers — go get x-drivers · libregistry