For general Flowcode discussion that does not belong in the other sections.
BenR
Matrix Staff
Posts: 1786 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times
Post
by BenR » Wed Jan 06, 2021 4:43 pm
Hi Stefan,
You were on the right track.
Give this a whirl, fingers crossed
BenR
Matrix Staff
Posts: 1786 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times
Post
by BenR » Wed Jan 06, 2021 4:46 pm
Here's another version with the write function.
stefan.erni
Valued Contributor
Posts: 798 Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 157 times
Been thanked: 185 times
Post
by stefan.erni » Wed Jan 06, 2021 5:40 pm
Hi Ben
I tried both versions but I always get 0. With the oscilloscope I have clock and data on the correct pin.
regards
Stefan
stefan.erni
Valued Contributor
Posts: 798 Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 157 times
Been thanked: 185 times
Post
by stefan.erni » Wed Jan 06, 2021 5:59 pm
Hi Ben
I think the register 32h is 0.
I tried some another register with your first code and there I get the correct value.
regards
Stefan
BenR
Matrix Staff
Posts: 1786 Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 455 times
Been thanked: 621 times
Post
by BenR » Wed Jan 06, 2021 6:19 pm
Hi Stefan
In the example code there is a far bit in the initialise function code. It might be it needs setting up to work as expected?