Currently IoTPy implements GPIO, SPI and I2C interfaces for the Carambola2 board. However there are few things to note:
1) GPIO does not support interrupts - they seem to be supported by hardware, but they need some software, probably kernel driver modification and I haven't looked into it yet.
2) SPI requires custom kernel module (which I have, but haven't released the source yet) to dynamically allocate sysfs spidevs. SPI however can be used as SPIDEV class (see
https://github.com/8devices/IoTPy/blob/ ... nux/spi.py) if you have statically allocated the spi device (maybe it's possible via spi-custom module???)
3) I2C requires i2c-custom module (which is available in the package repo)
IoTPy is in developmental stage so if you have any insights feel free to share. You can also take a look at slothy's IoTPy variant, where he did several changes (more related to internal core than the interface), which I do like - not necessarily the changes themselves, but the fact that the code mutates.