lora: created shared RadioEvent

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2022-12-26 00:46:49 +01:00
committed by Ron Evans
parent 2005d7d483
commit 6d51370512
4 changed files with 68 additions and 72 deletions
+2 -1
View File
@@ -7,11 +7,12 @@ import (
"errors"
"machine"
"tinygo.org/x/drivers"
"tinygo.org/x/drivers/lora"
)
// New creates a new SX126x connection.
func New(spi drivers.SPI) *Device {
c := make(chan RadioEvent, 10)
c := make(chan lora.RadioEvent, 10)
d := Device{
spi: spi,
radioEventChan: c,