Can I use TWi from within lua-code`?

Support for Air Player desktop on ARM devices, like the Raspberry Pi.

Moderators: russ, Ralph

Post Reply
Message
Author
drnicolas
Posts: 115
Joined: Tue Aug 02, 2016 12:03 pm

Can I use TWi from within lua-code`?

#1 Post by drnicolas »

Another question: Can I use the TWI-interface from inside lua-code?

I have some Port-Expanders hooked to a Raspberry with TWI, and I want to use them as part of my lua-code to control some LEDs
Air Manager 3.6 Home Use - Rpi AirpLayer with 7" Touchscreen

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Can I use TWi from within lua-code`?

#2 Post by Corjan »

Hi,


I'm afraid I am saying no all the time to you, but this is a no as well :).
It you want i2c, I would suggest you use an Arduino, and use the message port to communicate with AM/AP (it uses UART).


Corjan

drnicolas
Posts: 115
Joined: Tue Aug 02, 2016 12:03 pm

Re: Can I use TWi from within lua-code`?

#3 Post by drnicolas »

Change your mind? One can do pretty funny things with those buses (TWI, SPI etc.)
Air Manager 3.6 Home Use - Rpi AirpLayer with 7" Touchscreen

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Can I use TWi from within lua-code`?

#4 Post by Corjan »

Hey,


We plan to create a raspberry hat, where you can attach more I/O to, specially aimed for cockpit builders. It also uses twi to operate.
So that is the main reason why we won't put it in the lua API.

Another reason is that we want to keep the lua API as functional as possible. So no byte protocol stuff; although the message port is kinda of an exception to that rule :)


Corjan

Post Reply