esp32 i2c is not implemented yet

Any bugs you encounter with Flowcode should be discussed here.
User avatar
p.erasmus
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: esp32 i2c is not implemented yet

Post by p.erasmus »

Hi Leigh

Thank you for the clarification, :D

I ran into an issue I made a small project for the ESP32 Lolin board and I wanted to just write a simple configuration to the I2C device and in the main loop switch a led on and off, to start too learn how to use this transactions macro`s :oops:
In FC chart the call is now disabled and I could program and my led is flashing.
All is working until I call the Transaction_write then the build fail and obviously no programming.
I am not sure what I am doing wrong please help.

ESP_HW_I2C_Example.rar
(5.29 KiB) Downloaded 538 times

P4.jpg
P4.jpg (8.4 KiB) Viewed 6079 times
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 447
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 81 times
Been thanked: 243 times

Re: esp32 i2c is not implemented yet

Post by LeighM »

Ah, good spot
Please could you change your DataArray from a string to a byte array

Default ESP compiler settings are somewhat pedantic about signed/unsigned mismatches
Hmm, something else for the WiKi :roll:

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: esp32 i2c is not implemented yet

Post by p.erasmus »

AHH Leight
I will give it ago right now thanks a million :D

I am stupid again byte Arrays are new for me in flow code how do i do that ? :oops:
I thought always Strings are all so byte arrays in Flowcode :oops:
P5.jpg
P5.jpg (61.13 KiB) Viewed 6075 times
Regards Peter - QME Electronics

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: esp32 i2c is not implemented yet

Post by p.erasmus »

OK I saw how Ben did it in his example I will try first
Thanks Leigh
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 447
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 81 times
Been thanked: 243 times

Re: esp32 i2c is not implemented yet

Post by LeighM »

ByteArray1.jpg
ByteArray1.jpg (33.53 KiB) Viewed 6073 times
ByteArray2.jpg
ByteArray2.jpg (31.33 KiB) Viewed 6073 times

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: esp32 i2c is not implemented yet

Post by p.erasmus »

Hura Success :D
Thanks a million Leigh :D

Just for me to be absolutely certain,I can now only use these transactions in I2C and it will probably work on PIC/AVR and ESP32-STM right no more Txbate and Rxbyte macros right?


P5.jpg
P5.jpg (37.93 KiB) Viewed 6073 times
Regards Peter - QME Electronics

LeighM
Valued Contributor
Posts: 447
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 81 times
Been thanked: 243 times

Re: esp32 i2c is not implemented yet

Post by LeighM »

Correct, well done :D

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: esp32 i2c is not implemented yet

Post by p.erasmus »

Hi Leigh

Thanks a million for all your help it is working fine now Transaction_read and Write so now I know how to implement the I2C in Future

:D :D
P6.jpg
P6.jpg (13.43 KiB) Viewed 6065 times
Regards Peter - QME Electronics

Post Reply