1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 12:53:22 +00:00

cleanup of brettcvz's read_byte function, added read_word since he really needs 12 bits of data. finally fixed the gpio cleanup() without argument issue once and for all, sorry for lying howientc

This commit is contained in:
Robert Wolterman
2017-01-29 22:58:41 +00:00
parent 6beacbb382
commit cd85e2b5eb
8 changed files with 130 additions and 41 deletions

View File

@ -62,8 +62,7 @@ static PyObject *py_cleanup(PyObject *self, PyObject *args)
return NULL;
} else {
if (!get_key(channel, key)) {
PyErr_SetString(PyExc_ValueError, "Invalid SOFTPWM key or name.");
return NULL;
softpwm_cleanup();
}
softpwm_disable(key);
}