2024-04-11 04:47 AM
Hi,
I want to implement I2C communication.
1 master and 3 slave, which transmit and recieve in both direction.
Is there any common example of it?
plz recommand website or documentation to study.
I ask GPT4 several times but I'm not sure :)
Thank you.
2024-04-11 04:53 AM
I suggest you to look at HAL library, if you want to use a C library to transmit/receive with I2c
HAL_I2C_Master_Transmit() and HAL_I2C_Master_Receive() documentation should help you
2024-04-11 05:03 AM
@eunni Just out of curiosity, the GPT produced anything reasonable? have you tried to build it?
2024-04-11 05:27 AM
From what I saw, If you give a concrete context and you don' ask for a lot of code, even GPT 3.5 (which is free) can produce some usable code.
You can try for free on their website, its quite fun
2024-04-11 06:45 AM - edited 2024-04-11 06:46 AM
Yes, tried to ask it already to write something for stm32. Quite fun, yeah. Especially when you ask it to explain and it explains ))
2024-04-22 05:09 AM
Yes It helped a lot especially debugging process.
It tells various possible cases I'v never expected before.
It's not perfect but helpful :)