i connected 2 mcc 134 with a raspberry pi3b. At first, I worked with just one and it worked fine, when I added the second board i connected a jumper on A0 of the first board.
I modify the code for reading the date, adding more channels ( from 0 to 7)
-first code i tried, i add 2 different address for board 1 and 2 with the command i show you in the picture.
but it gives me this error " address1 = select_hat_device(HatIDs.MCC_134, 0) # Address 0 for the first MCC134 board " takes 1 positional argument but 2 were given. " i look on internet and it seems that i don't need to define 2 address since it found the right address himself.
So I deleted this strings of code.
Now it says ""Addr 0: incorrect response" what does it means? what i have to do? What is wrong in what I have done?
Sorry but it's my first time coding and using the raspy and MCC, so meaby it is stupid but i don't know how to solve it.
Question
olli
Hello to everyone,
i connected 2 mcc 134 with a raspberry pi3b. At first, I worked with just one and it worked fine, when I added the second board i connected a jumper on A0 of the first board.
I modify the code for reading the date, adding more channels ( from 0 to 7)
-first code i tried, i add 2 different address for board 1 and 2 with the command i show you in the picture.
but it gives me this error " address1 = select_hat_device(HatIDs.MCC_134, 0) # Address 0 for the first MCC134 board " takes 1 positional argument but 2 were given. " i look on internet and it seems that i don't need to define 2 address since it found the right address himself.
So I deleted this strings of code.
Now it says ""Addr 0: incorrect response" what does it means? what i have to do? What is wrong in what I have done?
Sorry but it's my first time coding and using the raspy and MCC, so meaby it is stupid but i don't know how to solve it.
Thankyou
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now