google/periph

Support for firmata

draeron opened this issue · 2 comments

I was wondering if it was possible to use periph with the firmata protocol? It would be very convenient if you want to use golang with board such as the ESP32 or ESP8266 which aren't really supported. This could unlock a lot of possible devices.

Official documentation: https://github.com/firmata/protocol

Gobot has a minimal implementation (without SPI): https://godoc.org/gobot.io/x/gobot/platforms/firmata

There's another 5 years old precedent: https://godoc.org/github.com/kraman/go-firmata which includes SPI. It is not usable as-is but it gives an idea of how much code this represents.

It's totally doable, just needs someone to create the implementation. The current lack of formal UART support may be limiting.

If someone wants to implement this, please file a PR against https://github.com/periph/devices.