1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Updating spwmtest.py to check for Issue #16. Updated Changelog and version to 0.2.2

This commit is contained in:
Robert Wolterman
2016-07-30 14:46:25 -05:00
parent 1e3e801e60
commit c8e4323c27
4 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,9 @@
0.2.2
----
* Fixes for Issue #16
- Pass SoftPWM setup errors to Python layer (aninternetof)
- Updated spwmtest.py to test for this issue
0.2.1
----
* Pull request #12 fixes:

View File

@ -20,7 +20,7 @@ classifiers = ['Development Status :: 3 - Alpha',
'Topic :: System :: Hardware']
setup(name = 'CHIP_IO',
version = '0.2.1',
version = '0.2.2',
author = 'Robert Wolterman',
author_email = 'robert.wolterman@gmail.com',
description = 'A module to control CHIP IO channels',

View File

@ -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.2.1");
version = Py_BuildValue("s", "0.2.2");
PyModule_AddObject(module, "VERSION", version);
}

View File

@ -40,7 +40,18 @@ if __name__ == "__main__":
GPIO.cleanup()
SPWM.cleanup()
# ISSUE #16 VERIFICATION
try:
print("VERIFYING FIX FOR ISSUE #16, GPIO CONFIGURED THAT SPWM WANTS TO USE")
GPIO.setup(SPWMGPIO, GPIO.OUT)
SPWM.start(SPWMGPIO, 50, 1)
except Exception as e:
print("EXCEPTION: {}".format(e))
print("GPIO CLEANUP")
GPIO.cleanup()
# SETUP SOFTPWM
print("STARTING SOFTPWM TEST")
SPWM.start(SPWMGPIO, 50, 1)
SPWM.set_frequency(SPWMGPIO, 2)