First you should read the Steelsquid Kiss OS extend functionality. Below i explain the class PIIO in a Steelsquid Kiss OS module. Everything else you can read in Steelsquid Kiss OS extend functionality. It is useful to read PIIO Simple Example, examples of how to use different functions... And also the Board overview... Enable the PIIO boarAnd for any of this to work you must enable the PIIO board in Steelsquid Kiss OS To enable the board just execute this in the command line. steelsquid piio-on Or you can do it from the synchronization program by pressing e and then the number in front of kiss_piio. Useful methodsIn the module steelsquid_piio you have alot if methods to handle IO stuff.Mostly wrapper functions for steelsquid_pi (hard coded addresses and pins) for the PIIO board. On the PIIO board the pins has the number 1,2,3... You can use that numbering or the normal Raspberrt Pi GPIO numbering. The numbering on the PCB looks like: 1_14, 2_15, 3_18... Before the underscore is the PIIO board pin nr and after is the Raspberry Pi GPIO The PIIO class in a ModuleUse the synchronization program to create a new and you will get a copy of kiss_expand.py. Press N and then the name of the new module... For more info how the modules works and the synchronization program see Steelsquid Kiss OS extend functionality. In you module create a class like this: class PIIO(object): Inside that class all the PIIO functionality should be. The following methods you can use.
|