janitoo_raspberry_i2c_pca9685 package

Submodules

janitoo_raspberry_i2c_pca9685.bus_pca9685 module

The Raspberry camera worker

Installation :

sudo apt-get install python-pycamera
class janitoo_raspberry_i2c_pca9685.bus_pca9685.Pca9685Manager(addr=64, freq=1600, busnum=None)[source]

Bases: Adafruit_MotorHAT.Adafruit_MotorHAT_Motors.Adafruit_MotorHAT

To share bus with the adafruit library. Maybe we must control the pin use (ie to not activate a led on the

motors
software_reset()[source]
steppers
janitoo_raspberry_i2c_pca9685.bus_pca9685.extend(self)[source]

janitoo_raspberry_i2c_pca9685.pca9685 module

The Raspberry bmp thread

Server files using the http protocol

class janitoo_raspberry_i2c_pca9685.pca9685.DcMotorComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo.component.JNTComponent

A DC motor component for gpio

get_current_speed(node_uuid, index)[source]

Get the current speed

set_action(node_uuid, index, data)[source]

Act on the motor

set_speed(node_uuid, index, data)[source]

Set the speed ot the motor

class janitoo_raspberry_i2c_pca9685.pca9685.PwmComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo.component.JNTComponent

A led driver component

set_level(node_uuid, index, data)[source]

Set the level ot the LED

set_switch(node_uuid, index, data)[source]

Switch On/Off the led

class janitoo_raspberry_i2c_pca9685.pca9685.ServoComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo.component.JNTComponent

A servo component

set_angle(node_uuid, index, data, pin=None)[source]

Change the angle of the servo

translate(value, left_min, left_max, right_min=None, right_max=None)[source]

Translate a value in a range to a value in the servo’s limits

class janitoo_raspberry_i2c_pca9685.pca9685.StepMotorComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo.component.JNTComponent

A stepper motor component

janitoo_raspberry_i2c_pca9685.pca9685.make_dcmotor(**kwargs)[source]
janitoo_raspberry_i2c_pca9685.pca9685.make_pwm(**kwargs)[source]
janitoo_raspberry_i2c_pca9685.pca9685.make_servo(**kwargs)[source]
janitoo_raspberry_i2c_pca9685.pca9685.make_stepmotor(**kwargs)[source]

Module contents