mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
version updates prior to merge
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
0.5.0
|
||||
---
|
||||
* CHIP Pro Support
|
||||
* README Updates
|
||||
|
||||
0.4.0
|
||||
---
|
||||
* Software Servo code added
|
||||
|
15
README.rst
15
README.rst
@ -178,6 +178,9 @@ Debug can be enabled/disabled by the following command::
|
||||
|
||||
You can determine if the hardware is a CHIP/CHIP Pro using the following::
|
||||
|
||||
# Determine hardware
|
||||
# 0 For CHIP
|
||||
# 1 For CHIP Pro
|
||||
GPIO.is_chip_pro()
|
||||
|
||||
**GPIO Output**
|
||||
@ -265,6 +268,10 @@ To clean up the GPIO when done, do the following::
|
||||
Hardware PWM requires a DTB Overlay loaded on the CHIP to allow the kernel to know there is a PWM device available to use.
|
||||
::
|
||||
import CHIP_IO.PWM as PWM
|
||||
# Determine hardware
|
||||
# 0 For CHIP
|
||||
# 1 For CHIP Pro
|
||||
PWM.is_chip_pro()
|
||||
# Enable/Disable Debug
|
||||
PWM.toggle_debug()
|
||||
#PWM.start(channel, duty, freq=2000, polarity=0)
|
||||
@ -281,6 +288,10 @@ Hardware PWM requires a DTB Overlay loaded on the CHIP to allow the kernel to kn
|
||||
**SOFTPWM**::
|
||||
|
||||
import CHIP_IO.SOFTPWM as SPWM
|
||||
# Determine hardware
|
||||
# 0 For CHIP
|
||||
# 1 For CHIP Pro
|
||||
SPWM.is_chip_pro()
|
||||
# Enable/Disable Debug
|
||||
SPWM.toggle_debug()
|
||||
#SPWM.start(channel, duty, freq=2000, polarity=0)
|
||||
@ -303,6 +314,10 @@ If using SOFTPWM and PWM at the same time, import CHIP_IO.SOFTPWM as SPWM or som
|
||||
**SERVO**::
|
||||
|
||||
import CHIP_IO.SERVO as SERVO
|
||||
# Determine hardware
|
||||
# 0 For CHIP
|
||||
# 1 For CHIP Pro
|
||||
SERVO.is_chip_pro()
|
||||
# Enable/Disable Debug
|
||||
SERVO.toggle_debug()
|
||||
#SPWM.start(channel, angle=0, range=180)
|
||||
|
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
||||
chip-io (0.5.0-1) unstable; urgency=low
|
||||
|
||||
* CHIP Pro support for PWM1, reduced GPIO capability
|
||||
* New is_chip_pro() in each of the PWM, GPIO, SoftPWM, and Servo modules
|
||||
* Updated README
|
||||
|
||||
-- Robert Wolterman <robert.wolterman@gmail.com> Sat, 25 Feb 2017 19:00:00 -0600
|
||||
|
||||
chip-io (0.4.0-1) unstable; urgency=low
|
||||
|
||||
* source package automatically created by stdeb 0.8.2
|
||||
|
Reference in New Issue
Block a user