mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-19 20:33:21 +00:00
@ -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
|
||||
|
2
setup.py
2
setup.py
@ -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',
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user