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

Fixing and Closing #43, #44, and #45. setmode() function added, per pin cleanup added for GPIO and SOFTPWM, and README updates

This commit is contained in:
Robert Wolterman
2017-01-05 05:54:14 +00:00
parent d0ed4665aa
commit 8ecec67bad
8 changed files with 84 additions and 20 deletions

View File

@ -76,6 +76,15 @@ void define_constants(PyObject *module)
both_edge = Py_BuildValue("i", BOTH_EDGE);
PyModule_AddObject(module, "BOTH", both_edge);
version = Py_BuildValue("s", "0.2.7");
unknown = Py_BuildValue("i", MODE_UNKNOWN);
PyModule_AddObject(module, "UNKNOWN", unknown);
board = Py_BuildValue("i", BOARD);
PyModule_AddObject(module, "BOARD", board);
bcm = Py_BuildValue("i", BCM);
PyModule_AddObject(module, "BCM", bcm);
version = Py_BuildValue("s", "0.3.0");
PyModule_AddObject(module, "VERSION", version);
}