121ad398e4
new method for determining if the computer is a chip/chip pro, this fixes the runtimeerror's i was getting. for #32
2017-02-25 17:06:38 -06:00
ca7d221b33
More work on #32 , Checks for gpio being invalid on specific hardware, pwm invalid checks done. Need to do proper export of PWM1 on CHIP Pro
2017-02-20 05:03:04 +00:00
c5dbede3c4
Formal initial start at CHIP Pro support. Removed the custom DT Overlays, OverlayManager now pulls dtbo from chip-dt-overlays package from NTC. First commit to CHIP_IO from a CPro DevKit
2017-02-13 05:18:33 +00:00
cd85e2b5eb
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
2017-01-29 22:58:41 +00:00
a498fc12bd
Added the ability to read a full byte from a set of channels
...
For example, you can hook up to the 8 XIO pins and 8 CSID pins to read
a word in just two calls: `GPIO.read_byte("XIO") + GPIO.read_byte("CSID") << 8`
For fast-changing inputs (e.g. reading from a counter), this is more
accurate than reading the bits individually.
2017-01-29 12:32:53 -08:00
2e2177da26
quick fix because i broke xio input setup with the pud code, this closes #58
2017-01-29 20:21:02 +00:00
2b23e2d165
pull up/down feature addition to close #48 . fixed gpio cleanup() function again, 3rd time is a charm. version bump to 0.3.4
2017-01-29 03:50:37 +00:00
a839661c3b
randomness for #32 and #48 . cleanup of removing the spi function in common.c/.h since it isn't chip specific
2017-01-28 20:05:53 +00:00
cb4e272a35
adding the code to py_pwm.c to get the error data out of c_pwm.c. general code cleanup. this should close #56 as the softpwm code had the error string support already in it
2017-01-28 19:04:31 +00:00
10e7043269
Fix and close #51 , I wasn't careful in swapping the module name. I thought the name was changed months ago, but eh, fixed now
2017-01-11 03:17:26 +00:00
486cf73860
Fix and close #50 , I really don't understand pointers because Python abstracts that all out for me and C does not.
2017-01-10 01:14:16 +00:00
8ecec67bad
Fixing and Closing #43 , #44 , and #45 . setmode() function added, per pin cleanup added for GPIO and SOFTPWM, and README updates
2017-01-05 05:54:14 +00:00
51c38843d9
Add files via upload
2016-12-26 16:34:47 +11:00
9a83cf765a
Update py_gpio.c
...
allow passing data arguments to c callbacks
2016-08-26 16:06:43 +02:00
db4493322d
Inital attempt at fixing #9 . Things are still broken. wait_for_edge no longer works on AP-EINT1/3, XIO will trigger only one on falling edge.
2016-07-10 14:56:40 -05:00
7812063991
Fixed softpwm bug ("disable" code didn't synchronize thread exit)
2016-07-09 18:42:38 -05:00
45ba0e5332
More error checking work
2016-07-04 14:45:41 -05:00
0e7d03c472
Fixed a bunch of error handling
2016-07-04 13:56:11 -05:00
9ee83c0b38
Adding Python interface to get the base XIO numbers, fixes for gptest.py on the 4.4 kernel CHIPs
2016-07-03 11:49:17 -05:00
71b6829804
Reworked a lot of error handling.
2016-07-02 18:57:03 -05:00
093922567a
Added a bunch of sanity checking
2016-06-26 14:28:06 -05:00
1f4714a351
Got rid of last of GPIO port constants from code.
2016-06-25 20:02:45 -05:00
34167a9574
Some (not all) of the changes for the new XIO base addr
2016-06-21 17:40:00 -05:00
777fda06a3
Fixing issue #2 , edge detection for the XIO pins now works, simple logic issue in the if statement for throwing errors if gpio number is bad
2016-04-18 19:31:08 -05:00
0e1cf46c4e
Addressing Issue #1 , adding the ability to set the AP-EINT1 and AP-EINT3 pins as useable for edge detection and callbacks
2016-04-08 21:47:42 -05:00
c2ab013a5d
Adding protection for to the GPIO to only allow edge detection and call back on the XIO pins, clean up of the PWM, updated test code
2016-04-02 19:48:57 -05:00
01ae605491
Initial commit, working GPIO for all available CHIP GPIO pins, have not tested edge detection and callbacks
2016-02-24 21:48:40 -06:00