Closed lis0r closed 4 years ago
updated the diagram! will update the site as well
All documents need to be updated, i tried https://docs.onion.io/omega2-starter-kit/starter-kit-temp-sensor.html but i do not have GPIO 19 on my dock and tried GPIO 9 and 8. GPIO 0 is working though
what could be updated in the 1-Wire Temperature Sensor article to make it clearer?
Oh, i forgot that i have a power dock and not a dock expansion We should note at the "Building the circuit" that basically all GPIOs can be used expect 7, 8 and 9. And tell the reader that he only needs to change the GPIO in the code too.
I would also find it cool to have some document which describes how we can have multiple w1-buses (probably overkill for a Onion but it maybe good to know)
updated the document to make it clear that other GPIOs can be used, and pointed to our article on using the gpios
The article on the docs.onion.io website will be updated automatically in a few hours.
Btw, it's definitely doable to instantiate multiple buses. Just need to instantiate them with unique GPIOs. See this article for more details on instantiating one-wire buses: https://onion.io/2bt-reading-temperature-from-a-1-wire-sensor/ It goes into more detail about the instantiation commands, while the starter kit article puts all of that in a Python program.
Whilst GPIOs 7, 8, and 9 might technically be GPIOs on the SoC, they can't be used as such on the module, due to the flash using their SPI channel. This is alluded to in a dark corner of the written documentation, but could be more clearly communicated by not marking them as GPIOs on the pinout diagram.