https://toitlang.org/ logo
How does Toit handle GPIO of Raspberry Pi?
# help
r
Now, I have a Toit SDK installed and working well in my RPi 4B. So how does Toit talk with the board`s GPIO and control sensors attached to those GPIOs?
f
GPIO support hasn't been implemented for Linux systems yet. There is UART and SPIO support, but not general gpio or i2c.
Getting some basic GPIO going would probably not be too hard. See here, for the ESP32 implementation: https://github.com/toitlang/toit/blob/master/src/resources/gpio_esp32.cc
r
UART is good enough for cellular communication.
f
We might need to do minor modifications to the cellular package to support uarts from the host. I will try to find time this week. Don't hesitate to ping me/us if you don't see anything happening.