Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
mnfisher
Valued Contributor
Posts: 1474 http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 136 times
Been thanked: 708 times
Post
by mnfisher » Sat May 10, 2025 7:14 pm
Sorry , I just noticed that you got the wdt issue when writing to i2c in a loop (I hadn't read it as 'just' writing to i2c in a loop at the beginning)
That make it even stranger
Martin
stefan.erni
Valued Contributor
Posts: 1009 Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 192 times
Been thanked: 217 times
Post
by stefan.erni » Tue May 13, 2025 9:22 am
Hi Martin
That make it even stranger
Yes, that too: In an almost identical program this works perfectly. I can also write to both IMUs.
Attachments
2025-05-13_10-06-45.PNG (47.61 KiB) Viewed 866 times
mnfisher
Valued Contributor
Posts: 1474 Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 136 times
Been thanked: 708 times
Post
by mnfisher » Tue May 13, 2025 9:27 am
I didn't get an issue with the above example - just multiple writes to i2c as expected.
So what changed?
I notice a comment about the RGB LEDs initialisation not working in a macro too - more weirdness...
stefan.erni
Valued Contributor
Posts: 1009 Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 192 times
Been thanked: 217 times
Post
by stefan.erni » Fri May 16, 2025 4:17 pm
Hi Martin
My program works again!
I can set the LSM6 with I2C master and I can read LSM6 with I2C master
I had to set all I2C components to ch2!
With almost the same program on I2C ch1 it works fine...
Thank you very much for your support Martin.
for the RGB Led I wrote a new post:
https://flowcode.co.uk/forums/viewtopic.php?t=3153