tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.42k stars 910 forks source link

ESP32 I2C, ADC, PWM Support #4124

Open cansintartici opened 9 months ago

cansintartici commented 9 months ago

Hi all, I have just noticed TinyGo and willing to use it for my simple project that I will program an ESP32. Although in here it is mentioned that I2C, ADC and PWM is not supported yet for ESP32 this ticket made me confused which mentions that I2C is supported by TinyGo. So my question is, are these protocols not yet supported in TintGo or is it possible to be the wep page is not updated yet? Thanks for everybody for their efforts in the project.

soypat commented 8 months ago

ESP32 support is not quite there yet. That said:

If possible I'd suggest using the Raspberry Pi Pico W instead which is near feature complete in TinyGo and supports I2C, ADC and PWM.

cansintartici commented 8 months ago

Thanks for the response. I will go with pico W

deadprogram commented 5 months ago

The ESP32 i2c support just landed in dev branch https://github.com/tinygo-org/tinygo/pull/4259