1
0
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:
Robert Wolterman
2017-02-25 19:09:47 -06:00
parent c3ead5d395
commit dab60b334d
3 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,8 @@
0.5.0
---
* CHIP Pro Support
* README Updates
0.4.0 0.4.0
--- ---
* Software Servo code added * Software Servo code added

View File

@ -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:: 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.is_chip_pro()
**GPIO Output** **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. 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 import CHIP_IO.PWM as PWM
# Determine hardware
# 0 For CHIP
# 1 For CHIP Pro
PWM.is_chip_pro()
# Enable/Disable Debug # Enable/Disable Debug
PWM.toggle_debug() PWM.toggle_debug()
#PWM.start(channel, duty, freq=2000, polarity=0) #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**:: **SOFTPWM**::
import CHIP_IO.SOFTPWM as SPWM import CHIP_IO.SOFTPWM as SPWM
# Determine hardware
# 0 For CHIP
# 1 For CHIP Pro
SPWM.is_chip_pro()
# Enable/Disable Debug # Enable/Disable Debug
SPWM.toggle_debug() SPWM.toggle_debug()
#SPWM.start(channel, duty, freq=2000, polarity=0) #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**:: **SERVO**::
import CHIP_IO.SERVO as SERVO import CHIP_IO.SERVO as SERVO
# Determine hardware
# 0 For CHIP
# 1 For CHIP Pro
SERVO.is_chip_pro()
# Enable/Disable Debug # Enable/Disable Debug
SERVO.toggle_debug() SERVO.toggle_debug()
#SPWM.start(channel, angle=0, range=180) #SPWM.start(channel, angle=0, range=180)

8
debian/changelog vendored
View File

@ -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 chip-io (0.4.0-1) unstable; urgency=low
* source package automatically created by stdeb 0.8.2 * source package automatically created by stdeb 0.8.2