From 7e83fa84352415ae1d0d2eb4c543414d6e0d3592 Mon Sep 17 00:00:00 2001 From: Robert Wolterman Date: Mon, 25 Jul 2016 19:38:27 -0500 Subject: [PATCH] Updating version to 0.1.2, fixing the SoftPWM verification test case --- CHANGELOG.rst | 5 +++++ setup.py | 2 +- source/constants.c | 2 +- test/spwmtest.py | 4 +++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 32a294f..ea892dd 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,8 @@ +0.1.2 +---- +* SoftPWM Fix by aninternetof +* Added a verification test for SoftPWM + 0.1.1 ---- * Some refactoring of the edge detection code, made it function better diff --git a/setup.py b/setup.py index ec17c6b..0e9e334 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ classifiers = ['Development Status :: 3 - Alpha', 'Topic :: System :: Hardware'] setup(name = 'CHIP_IO', - version = '0.1.1', + version = '0.1.2', author = 'Robert Wolterman', author_email = 'robert.wolterman@gmail.com', description = 'A module to control CHIP IO channels', diff --git a/source/constants.c b/source/constants.c index 108713b..7a86c53 100644 --- a/source/constants.c +++ b/source/constants.c @@ -76,6 +76,6 @@ void define_constants(PyObject *module) both_edge = Py_BuildValue("i", BOTH_EDGE); PyModule_AddObject(module, "BOTH", both_edge); - version = Py_BuildValue("s", "0.1.1"); + version = Py_BuildValue("s", "0.1.2"); PyModule_AddObject(module, "VERSION", version); } diff --git a/test/spwmtest.py b/test/spwmtest.py index 7e89595..3c2af43 100755 --- a/test/spwmtest.py +++ b/test/spwmtest.py @@ -1,3 +1,5 @@ +#!/usr/bin/python + import CHIP_IO.SOFTPWM as SPWM import CHIP_IO.GPIO as GPIO import time @@ -40,7 +42,7 @@ if __name__ == "__main__": # SETUP SOFTPWM SPWM.start(SPWMGPIO, 50, 1) - #SPWM.set_frequency(SPWMGPIO, 2) + SPWM.set_frequency(SPWMGPIO, 2) # SETUP SOFTPWM RECEIVER rcvr = SPWMReceiver(GPIO, RECEIVERGPIO, COUNT, SLEEPTIME)