Writing bit-bang I2C XC8 code

Thread Starter

AlbertHall

Joined Jun 4, 2014
12,624
I was really struggling to write a bit-bang I2C for a 16x02 LCD. I searched for any examples on www without finding anything suitable.
Putting that search in google, AI came up with some code which needed only minor changes to make it work. Then I wanted an 80 step bargraph on the LCD and once again the google AI produced.

So AI is better than me at writing such code. Colour me impressed!
 

nsaspook

Joined Aug 27, 2009
16,275
I was really struggling to write a bit-bang I2C for a 16x02 LCD. I searched for any examples on www without finding anything suitable.
Putting that search in google, AI came up with some code which needed only minor changes to make it work. Then I wanted an 80 step bargraph on the LCD and once again the google AI produced.

So AI is better than me at writing such code. Colour me impressed!
No, the AI is not better than you. A human, like you, is source of the learning data (there are a huge number of good bit-bang I2C examples on the web) for the machine. It played the match-game to your requests.

It should not be shocking that people have written the good code examples the LLM used. You need to upgrade your search-foo. :D
 
Top