Skip to content

ivmech/samur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samur MainBoard Python Module

REQUIREMENTS

  • RPi.GPIO
  • smbus2
  • Python 2.7 to 3.6.

INSTALL

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

RUNNING TESTS

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

Features

  • MainBoard
  • Output Support
  • Input Support
  • DigitalModule Support
  • AnalogModule Support
  • I2C Expansion Support

Authors

Ivmech Mechatronics Ltd.

About

Samur MainBoard Python Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages