Add own native library (example touch controller)
Posted: Tue Mar 22, 2016 9:52 am
Hi all.
I have recently written a small touch library (http://github.com/ulno/libni) for the esp8266. I also designed a workshop for using this to build with students a tin foil based touch game controller (just presented on FOSSASIA 2016). However, using C in an introductory class (and especially flashing boards where the serial connectors are not soldered on correctly) can be pretty tedious, so I was wondering how I could compile my own native library into the firmware or even load it later. Then students could just use the Python command line to configure their controller. The library is very time critical and some blocks need to run atomically for some microseconds. Python itself is unlikely to be fast enough to handle this core directly. However the major part is probably easy to run also as Python code.
Where would I start with this?
I have recently written a small touch library (http://github.com/ulno/libni) for the esp8266. I also designed a workshop for using this to build with students a tin foil based touch game controller (just presented on FOSSASIA 2016). However, using C in an introductory class (and especially flashing boards where the serial connectors are not soldered on correctly) can be pretty tedious, so I was wondering how I could compile my own native library into the firmware or even load it later. Then students could just use the Python command line to configure their controller. The library is very time critical and some blocks need to run atomically for some microseconds. Python itself is unlikely to be fast enough to handle this core directly. However the major part is probably easy to run also as Python code.
Where would I start with this?