Commit graph

70 commits

Author SHA1 Message Date
Brennen Bearnes
511796c89a first pass at checking for pi zero based on revision
I'm working off of:

https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/

Probably some unanswered questions here.
2018-11-08 15:57:23 -07:00
Abhinuv Nitin Pitale
67de20d275
update _mosi typo as per #83 2018-10-02 00:58:53 -07:00
Tony DiCola
c543d1df9c
Check for older BCM2708 combined mode path before attempting to set. 2018-02-26 17:58:56 -08:00
Tony DiCola
f17faeeac8
Merge pull request #71 from lsellens/master
duplicate function
2018-02-26 17:43:57 -08:00
Tony DiCola
35a6a9ca58
Fix previous commit to correctly set SpiDev device cshigh property. 2018-02-26 17:40:44 -08:00
Tony DiCola
145b1d3eaa
Merge pull request #52 from mrnuke/cs-high-fix
SPI: Make sure CS line is active-low
2018-02-26 17:37:43 -08:00
Tony DiCola
bde795a635
Merge pull request #37 from Pelado-Mat/master
Add a GPIO class to support PCA9555 chips
2018-02-26 17:33:09 -08:00
Tony DiCola
2cea57917d
Explicitly set internal MCP23017 GPIO state on input_pins read, fix #70. 2018-02-26 17:27:17 -08:00
Tony DiCola
f300bddc6c
Default MCP230xx direction to input, fix #44. 2018-02-26 17:18:18 -08:00
Tony DiCola
8042997714
Swap to Python 2 and 3 compatible items() call vs. iteritems(), fix #43. 2018-02-26 17:15:14 -08:00
Tony DiCola
22a1ff4f54 Deprecate I2C reverseByteOrder function.
Throwing an error now based on deprecation from: https://github.com/adafruit/Adafruit_Python_GPIO/issues/48
2017-08-23 00:43:28 -07:00
lsellens
88273cd27a duplicate function 2017-07-11 07:23:24 -05:00
Tony DiCola
37e55de593 Add Pi 3 4.9 kernel detection 2017-03-06 22:41:59 -08:00
Tony DiCola
f9a870f6bf Don't throw errors when enumerating multiple devices.
Workaround for issue seen with: https://forums.adafruit.com/viewtopic.php?f=19&t=112200
2017-02-28 00:55:44 -08:00
Tony DiCola
b0d68e0f9e Python 3 fix for FT232H import. 2017-02-06 23:43:17 -08:00
Alexandru Gagniuc
d70b111058 SPI: Make sure CS line is active-low
If another user configures the SPI bus as CS active-high, the setting
will stick. It is thus possible to end up in a situation where CS is
forced high during SPI transactions. The solution is to explicitly
disable 'cshigh' before using the SpiDev object.
2016-10-15 14:06:20 -07:00
Tony DiCola
fdf0fca418 Switch to use pure python I2C interface with python 2 & 3 compatibility vs. older python-smbus library. 2016-04-20 19:27:50 +00:00
Matias Vidal
21d0b04300 Add a GPIO class to support PCA9XXX chips 2016-02-16 11:48:59 -03:00
Tony DiCola
fde18b88da Fix merge conflict. 2015-05-07 23:34:13 +00:00
Tony DiCola
e069922304 Merge branch 'master' of https://github.com/matthw/Adafruit_Python_GPIO into matthw-master 2015-05-07 23:04:05 +00:00
Evan Steele
474c0642f7 Added needed import 2015-04-30 18:07:13 -07:00
Evan Steele
0307bd789c bug fixes 2015-04-30 18:01:22 -07:00
Evan Steele
361fd19e86 fixed typo 2015-04-30 15:38:35 -07:00
Evan Steele
7ad97ed59a added support for MinnowBoard 2015-04-30 15:35:46 -07:00
Sylvan Butler
8d57283740 reflow license text 2015-04-25 16:08:46 -06:00
Sylvan Butler
6c5359b787 use BaseGPIO _validate_pin() 2015-04-25 11:51:46 -06:00
Sylvan Butler
e07a2f6095 fix input_pins(), reduce required client knowledge of I/Os, use BaseGPIO helper methods 2015-04-25 11:50:42 -06:00
Sylvan Butler
4229645f8e provide rudimentary input_pins(), pull in some more methods useful in derived classes 2015-04-25 11:21:57 -06:00
Sylvan Butler
c56a9327a0 basic PCF8574 functionality 2015-04-25 01:36:08 -06:00
Sylvan Butler
af4a24b390 remove redundant output() code, add validation to output_pins() 2015-04-25 00:38:26 -06:00
Tony DiCola
19a6ef1aea Fix software SPI driver initializer to define MOSI, MISO, SS pins as optional. 2015-03-19 22:17:58 +00:00
Sylvan Butler
6f795d333c create input_pins() for FT232H and GPIO (none tested) 2015-02-22 20:53:14 -07:00
Sylvan Butler
83aecd470e create input_pins() to read multiple pins with one call - MCP230xx 2015-02-22 20:37:54 -07:00
Tony DiCola
558fbab3a8 Update FT232H code to support enumerating device serial numbers and opening device by specific serial number. 2015-02-16 13:34:20 -08:00
Tony DiCola
54f486c757 Update to support correctly detecting Raspberry Pi 2. 2015-02-05 17:00:09 -08:00
Matth Walt
cd60f5d34f python 3 compat 2015-01-10 19:46:23 +01:00
Tony DiCola
4f2ea8342f Add GPIO cleanup function to remove event detection. 2015-01-03 01:18:43 +00:00
Tony DiCola
60c66d465e Fix but with event detected adding callback parameter, add unit tests to exercise event detection function. 2015-01-03 01:09:23 +00:00
Victor Torre
0d499cb99c Create mapping for edge
Add mapping for events
2014-12-27 03:15:16 +01:00
Tony DiCola
b60b1dac69 Add require_repeated_start function to I2C as workaround for I2C issue on Raspberry Pi. 2014-12-22 07:59:49 +00:00
Tony DiCola
22baf0dd78 Merge event detect logic and pull up/down resistor change. Update GPIO tests and simplify constant mapping with dicts. 2014-12-20 16:40:42 -08:00
Tony DiCola
fc85902aa9 Update default busnum parameter value to allow importing Adafruit_GPIO.I2C on unsupported platforms for testing. 2014-12-20 15:47:11 -08:00
Andrey Somov
973745604b Fix issue 11: use spaces for indentation 2014-12-15 16:58:20 +01:00
Victor Torre
dd3dc0e249 Add pull_up_down on setup 2014-12-09 05:16:39 +01:00
Victor Torre
afd9ed264b Added events detection
New functions and constants
2014-12-08 14:25:33 +01:00
Tony DiCola
cfdd75d35f Fix #9 by adding missing kwargs parameter to MCP230xx base. 2014-11-23 14:06:30 -08:00
Tony DiCola
e8b02e4111 Fix bug with incorrectly reading ACK from FT232H writes, and add I2C ping for device enumeration. 2014-11-21 14:01:21 -08:00
Tony DiCola
f04bedef05 Refactor I2C and SPI to support FT232H as I2C and SPI master. No changes to existing I2C and SPI interface. 2014-11-20 20:54:45 -08:00
Tony DiCola
be1d242f4b Fix bug with FT232H read polling, improve reliability, and refactor FT232H I2C to batch calls into a single transaction/command. 2014-11-17 13:49:12 -08:00
Tony DiCola
5482c7038d Fix bug with failing to close FT232H on exit. 2014-11-12 12:36:49 -08:00