mchlmmc / CirnOS

Bringing the workflow of Arduino to the Raspberry Pi
GNU General Public License v3.0
102 stars 6 forks source link

Add Lua wrappers for I2C, SPI and PWM #7

Open mchlmmc opened 6 years ago

mchlmmc commented 6 years ago

Currently userspace Lua code can only read/write to the SD Card, print to the screen, and read/write GPIO pins digitally.

CirnOS users would be able to accomplish much more if they could also use the Raspberry Pi's built in abilities for I2C, SPI, and PWM communication. Such features would allow CirnOS to do everything that an Arduino can, making it much more viable for electronics projects.

mchlmmc commented 6 years ago

I have added wrappers for hardware PWM. This leaves I2C, SPI, and software PWM.

mchlmmc commented 6 years ago

I have added complete SPI wrappers, this leaves just I2C and software PWM.