This library is based on Intel mraa library: http://iotdk.intel.com/docs/master/mraa/
It supports devices such as Intel Edison. Note that the attached library will not work on ARM devices such as Raspberry Pi or BeagleBone.
Currently it supports GPIO. Support for more features can be added if needed.
Example:
The pins map: http://iotdk.intel.com/docs/master/mraa/edison.html
It supports devices such as Intel Edison. Note that the attached library will not work on ARM devices such as Raspberry Pi or BeagleBone.
Currently it supports GPIO. Support for more features can be added if needed.
Example:
B4X:
Sub Process_Globals
Private mraa As MraaController
Private pinOut As MraaPinDigitalOutput
Private pinIn As MraaPinDigitalInput
End Sub
Sub AppStart (Args() As String)
mraa.Initialize
pinOut.Initialize(13, False)
pinIn.Initialize("PinIn", 41)
StartMessageLoop
End Sub
Private Sub PinIN_StateChange(State As Boolean)
Log("New state: " & State)
pinOut.State = State
End Sub
The pins map: http://iotdk.intel.com/docs/master/mraa/edison.html