tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
608 stars 192 forks source link

lorawan examples: Add LGT92 sx127x configuration #514

Closed ofauchon closed 1 year ago

ofauchon commented 1 year ago

Dragino LGT92 board embedds a SX127x lorawan module. It uses a specific wiring that differs from featherbed's - pybadge. So It has its own configuration file.

Of course, we could merge parts of common/sx127x.go(featherwing/pybadge) and common/sx127x-lgt92.go. But I'm not sure it makes sense right now, as lorawan is still work in progress and it would make the code even harder to understand.

ofauchon commented 1 year ago

@deadprogram : Should we rename "common/sx127x.go" to "common/sx127x-pybadge.go" so the filename is more explicit (like common/sx27x-lgt92.go) ?

deadprogram commented 1 year ago

If we want to name the files this way, probably better to use sx127x_lgt92.go to follow the Go convention.

deadprogram commented 1 year ago

I think you can close this PR now, @ofauchon

ofauchon commented 1 year ago

LGT92 SX127x declaration was provided by another PR #515