mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
The code is running on my Pi and seems to be stable Have added MCP3301/3302/3304 have implemented the "M" bit to allow Differential mode Have added an "absVal" for absolute values Have added a "relVal" for relative val from 0 to 1 (same as "value") left "value" for backwards compatabilety, but propse to delete it shifted Rx bits for MCP330x On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: modified: gpiozero/__init__.py modified: gpiozero/input_devices.py Untracked files: ZeroCombo11.py Date: Mon Jan 18 20:25:36 2016 -0500
53 lines
797 B
Python
53 lines
797 B
Python
from __future__ import (
|
|
unicode_literals,
|
|
print_function,
|
|
absolute_import,
|
|
division,
|
|
)
|
|
|
|
from .exc import (
|
|
GPIODeviceClosed,
|
|
GPIODeviceError,
|
|
InputDeviceError,
|
|
OutputDeviceError,
|
|
)
|
|
from .devices import (
|
|
GPIODevice,
|
|
)
|
|
from .input_devices import (
|
|
InputDevice,
|
|
Button,
|
|
LineSensor,
|
|
MotionSensor,
|
|
LightSensor,
|
|
AnalogInputDevice,
|
|
MCP3008,
|
|
MCP3004,
|
|
MCP3208,
|
|
MCP3204,
|
|
MCP3301,
|
|
MCP3302,
|
|
MCP3304,
|
|
)
|
|
from .output_devices import (
|
|
OutputDevice,
|
|
PWMOutputDevice,
|
|
PWMLED,
|
|
LED,
|
|
Buzzer,
|
|
Motor,
|
|
RGBLED,
|
|
)
|
|
from .boards import (
|
|
LEDBoard,
|
|
PiLiter,
|
|
TrafficLights,
|
|
PiTraffic,
|
|
TrafficLightsBuzzer,
|
|
FishDish,
|
|
TrafficHat,
|
|
Robot,
|
|
RyanteckRobot,
|
|
CamJamKitRobot,
|
|
)
|