- RPi.GPIO
- smbus2
- Python 2.7 to 3.6.
If you like to install from PiP, you can do it like so:
pip install samur
If you like to clone from source, you can do it like so:
git clone https://github.com/ivmech/samur.git
If you have downloaded the source code:
cd samur
sudo python setup.py install
import samur
MB = samur.Mainboard()
MB.digitalWrite("K1", 1) # K1 named relay output High
MB.digitalWrite("K1", 0) # K1 named relay output Low
print MB.digitalReadAll() # reading all inputs
print MB.analogRead("A1") # reading analog value
MB.analogWrite("S1", 500) # analog output
- MainBoard
- Output Support
- Input Support
- DigitalModule Support
- AnalogModule Support
- I2C Expansion Support
Ivmech Mechatronics Ltd.