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
617 stars 195 forks source link

Add example with MCP3204 #385

Open Gustavomurta opened 2 years ago

Gustavomurta commented 2 years ago

I'm fascinated with Golang and TinyGo. I hope it will be the most used language in the very near future. I'm not an experienced programmer, not knowing how to use Github. I would like to contribute this example with the ADC converter ( SPI - 4CH 12 bits) MCP3204. Could someone include this example, please?

https://github.com/Gustavomurta/tinyGo_my_experiments/tree/main/MCP3204

sago35 commented 2 years ago

Hi @Gustavomurta

You can make it the same way as below. If you have any questions, we will be happy to help.

https://github.com/tinygo-org/drivers/pull/93 https://github.com/tinygo-org/drivers/blob/release/mcp3008/mcp3008.go

Gustavomurta commented 2 years ago

Hi Sago, I will try to do that as soon as possible. Thank you