guild icon
Toit
#How does Toit handle GPIO of Raspberry Pi?
Thread channel in help
Timmy77
Timmy77 04/09/2024 12:57 PM
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?
floitsch
floitsch 04/09/2024 01:01 PM
GPIO support hasn't been implemented for Linux systems yet.
There is UART and SPIO support, but not general gpio or i2c.
floitsch
floitsch 04/09/2024 01:03 PM
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
Program your microcontrollers in a fast and robust high-level language. - toitlang/toit
Timmy77
Timmy77 04/09/2024 01:07 PM
UART is good enough for cellular communication.
Timmy77OPTimmy77
UART is good enough for cellular communication.
floitsch
floitsch 04/09/2024 01:53 PM
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.
๐Ÿ˜Š1
5 messages in total