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

Closing out #17 and #18, version upped to 0.2.4

This commit is contained in:
Robert Wolterman
2016-12-31 02:19:57 +00:00
parent 993ea29213
commit e82f62133a
4 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,10 @@
0.2.4
----
* HW PWM Fixed
- Start/Stop/Duty Cycle/Frequency settings work
- Polarity cannot be changed, so don't bother setting it to 1 in start()
* Added the unexport_all() function to Utilites
0.2.3
----
* LRADC Support

View File

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

View File

@ -385,10 +385,8 @@ int pwm_start(const char *key, float duty, float freq, int polarity)
//rtnval = pwm_set_polarity(key, polarity);
//rtnval = 0;
rtnval = pwm_set_duty_cycle(key, duty);
rtnval = 0;
// TODO: SET RETURN BASED UPON 4 FUNCTIONS ABOVE
return 1;
return rtnval;
}
int pwm_disable(const char *key)
@ -403,7 +401,7 @@ int pwm_disable(const char *key)
// Disable the PWM
pwm_set_frequency(key, 0);
pwm_set_polarity(key, 0);
//pwm_set_polarity(key, 0);
pwm_set_duty_cycle(key, 0);
pwm_set_enable(key, DISABLE);

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