mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-07 16:33:39 +00:00
espradio: implement support for wifi/BLE on the ESP32-C3
This is a work in progress. It does not yet work.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"tinygo.org/x/drivers/espradio"
|
||||
)
|
||||
|
||||
func main() {
|
||||
time.Sleep(time.Second * 1)
|
||||
|
||||
println("initializing radio...")
|
||||
err := espradio.Enable(espradio.Config{
|
||||
Logging: espradio.LogLevelVerbose,
|
||||
})
|
||||
if err != nil {
|
||||
println("could not enable radio:", err)
|
||||
} else {
|
||||
println("enabled radio successfully")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user