Bug fix in python/VL53L0X_multi_example.py for changing i2c address#3
Open
Trifunik wants to merge 1 commit into
Open
Bug fix in python/VL53L0X_multi_example.py for changing i2c address#3Trifunik wants to merge 1 commit into
Trifunik wants to merge 1 commit into
Conversation
|
hi, why VL53l0x can't download on thonny raspberry pi4 ? |
|
Just commenting down here I have tried to use multiple buses with this library and it does not seem to work. It uses the last bus set. See my example usage. Where all three sensors use the last bus used to instantiate a third tof sensor For now I will try and just change the bus when measuring it sucks but don't want to dive into the c part. I saw a similar thread for another sensor. Not sure if the same fix has to be applied. |
| GPIO.output(sensor2_shutdown, GPIO.HIGH) | ||
| time.sleep(1) | ||
| # Set new address for the second VL53L0X | ||
| tof.change_address(0x2D) |
There was a problem hiding this comment.
this might need to be tof1.change...
There was a problem hiding this comment.
I am using three sensors in my case, working code here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
the example works now.
Regards,
Nikola