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
c21c431b7b
pwm1 works on the chip pro, commit to allow me to reset all the changes that broke stuff on the normal chip
2017-02-25 12:48:36 -06:00
f66740b797
pwm1 and pwm0 working on chip pro. thanks ntc for the awesome led's on the devkit, they're super helpful
2017-02-21 05:26:56 +00: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
6bd2e61450
software servo! this implements and will close #41 . also fixed issue with softpwm cleanup(), update to version 0.4.0
2017-02-07 04:17:09 +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
05b936ca1d
added error string info (a la gpio) to the pwm code for #56
2017-01-28 18:50:09 +00:00
3ff79d43e3
version bump to 0.3.3, cleaning up stuff left over in fixing #40 , start of implementing #56
2017-01-28 05:41:05 +00:00
73ae207e16
Copied over 2 new pwm functions from @streamnsight to close #46 . these 2 functions are untested, which is why i'm not updating the readme at the moment.
2017-01-28 04:16:12 +00:00
bf27e2feea
final updates in the initial addition of debug printing. this should close #55
2017-01-28 02:09:14 +00:00
8221016c10
More updates to the library to add debug printing
2017-01-26 05:55:30 +00:00
8c3dab1ecc
Fix and close #53 . Start of implementation for #55
2017-01-24 05:23:04 +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
d0ed4665aa
Fixing issue with the enable 1.8v pin code. Updating version to 0.2.7
2017-01-03 00:07:40 +00:00
abbc4968c6
version update to 0.2.6 that brings in the fix for #34
2016-12-31 21:52:21 +00:00
9a2e81f093
fix to close #34 , gpio value file is now opened as read/write instead of read only
2016-12-31 21:49:52 +00:00
7cce06b472
fixing error in the overlay builder, forgot to remove the i2c-1 stuff in there. added code to common to allow denotation if a pin supports software pwm
2016-12-31 20:25:12 +00:00
7489fd21b4
Removing i2c-1 custom support in OverlayManager as it's back in 4.4.13, this is to close #31 . Update to version 0.2.5
2016-12-31 05:10:26 +00:00
8aa402fbd5
mods to test_pwm_setup.py to mark some tests that are failing as expected to fail ( #22 ). the issue appears to be the pwm cleanup stuff. added some code to help with future work
2016-12-31 04:37:24 +00:00
e82f62133a
Closing out #17 and #18 , version upped to 0.2.4
2016-12-31 02:19:57 +00:00
7d91bbc47e
fixes for #17 , hardware pwm works now, still can't change polarity, but i think that's a kernel driver/dtb thing.
2016-12-31 01:43:42 +00:00
b12c0ad2fe
Merge branch 'master' into hotfix/hwpwmfix
2016-12-30 17:16:17 +00:00
51c38843d9
Add files via upload
2016-12-26 16:34:47 +11:00
89cbea038e
LRADC support to close out feature #15 . Added Utilities to enable and disable the 1.8v pin on U13. Updated README. Updated version to 2.3
2016-12-01 05:55:26 +00:00
82d6fef173
checking in debug stuff for the hw pwm issue #17
2016-09-24 14:22:05 -05:00
d66032ed93
Merge pull request #1 from fabien-gigante/patch-1
...
Patch 1
2016-08-26 16:29:18 +02:00
9a83cf765a
Update py_gpio.c
...
allow passing data arguments to c callbacks
2016-08-26 16:06:43 +02:00
d95847eb5a
Update event_gpio.c
...
allow passing data arguments to c callbacks
2016-08-26 16:05:25 +02:00
12bc9dec67
Update event_gpio.h
...
allow passing data arguments to c callbacks
2016-08-26 16:03:09 +02:00
29eb018e78
Update common.c
...
unnecessary include of Python
2016-08-26 15:57:07 +02:00
ee0e27cb22
Update c_softpwm.c
...
unnecessary include of Python
2016-08-26 15:55:43 +02:00
c8e4323c27
Updating spwmtest.py to check for Issue #16 . Updated Changelog and version to 0.2.2
2016-07-30 14:46:25 -05:00
1e3e801e60
Adds runtime err if softpwm fails for Issue #16
2016-07-28 12:49:28 +00:00
20b72490f2
Merging in the latest master for Issue #10 , PR #12
2016-07-25 19:47:05 -05:00
7e83fa8435
Updating version to 0.1.2, fixing the SoftPWM verification test case
2016-07-25 19:38:27 -05:00
c3448ec661
Fixes softpwm mutex stallout and assert
2016-07-25 14:27:31 +00:00
4f6acf4676
Pull Request #12 fixes for Issue #10 .
2016-07-19 21:03:40 -05:00
e270080af8
Last commit for #10 to get the Overlay Manager implemented. i2c-1 still shows up as i2c-3, but everything should work. Will add new bug to investigate. Bumping rev to 0.2.0 as this is a big feature. Custom Overlay should work now
2016-07-16 17:33:09 -05:00
ea4a21235d
Some refactoring of the edge detection code to clean stuff up, added more tests
2016-07-11 21:14:40 -05:00
bff65d346d
Initial work at refactoring the edge detection code I added to get it working
2016-07-10 22:00:01 -05:00
a4dd1558f0
Realized that the AP-EINT1/3 test code wasn't actually testing callbacks, they do work properly in my testing. Reverting gptest.py to what it was. Revision Update. Issue #9 is resolved.
2016-07-10 19:23:45 -05:00
3d1ecb6b5e
Edge detection callback is now working for the XIO's. Blocking wait_for_edge works for both the AP-EINT1/3 and the XIO's. Need to figure out why AP-EINT1/3 don't work for the callback. This is to help fix issue #9 .
2016-07-10 16:37:22 -05:00