Comments (4)
I wish I'd found this earlier. I've just spent a long time finding this bug and came up with the exact same solution which works.
I wonder why the library hasn't been fixed yet ?
I'm going to give it a try.
from adafruit_python_gpio.
I had the same issue trying to use readList with a sensor. I can confirm that your edits solved my problem.
On a slightly related note, I noticed there is likely another issue related to bulk reads in the tests. Lines 70 & 71 of test_I2C.py read:
def read_i2c_block_data(self, address, length):
return [self._read_register(address+i) for i in range(length)]
It appears as though we're incrementing the address instead of the register, meaning line 71 should be the following instead:
return [self._read_register(address, register+i) for i in range(length)]
I noticed when I ran the tests that writeList is not being tested, which would explain how this bug got through.
from adafruit_python_gpio.
To add on to what lifetyper said the idle call is also not needed to correctly generate a repeated start condition.
from adafruit_python_gpio.
hiya thank you for the issue. we're going to be deprecating this library in favor of our python3 Blinka library which has support for almost 200 different drivers, and a wide variety of linux computers as well as ft232h
If this issue is still occuring when you use Blinka, please re-open it there!
from adafruit_python_gpio.
Related Issues (20)
- Could not determine platform on Jetson Nano HOT 1
- Does not work with Raspberry Pi 4 HOT 1
- Incorrect detection of Raspberry Pi version HOT 4
- Local variable 'gpio' shadows self.gpio HOT 1
- Platform.pi_version() regex fails HOT 1
- error accessing p8_7 and p8_8 on BBB HOT 3
- Expose polarity argument on BBIO_PWM_Adapter.start() HOT 1
- Adafruit_Python_GPIO not compatible with Python 3.6.1, only Python 2.7.9 HOT 2
- no module named 'Adafruit_GPIO' (even though I checked everything) HOT 1
- RE: Using Your Software and Changing It/Seth HOT 1
- self._mosi should be self._miso
- Support arm64 for platform version HOT 1
- error on windows10 X64 (ver1803)
- FTH232H.py has import ftdi1 as ftdi HOT 11
- Support for Jetson TX2 HOT 4
- Library needs support for Odroid-C2 (ubuntu) HOT 1
- Unable to read user registry using readRaw8 with Adafruit_GPIO.FT232H i2c connection HOT 3
- Single-byte data corruption from FT232H Hardware Limits HOT 7
- ez_setup.py has deprecated methods for installing setuptools
- NameError: name 'ensurepip' is not defined HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_python_gpio.