Proteus: Jhd-2x16-i2c

void lcd_print(char *str) (1 << TWEN); while (!(TWCR & (1 << TWINT))); for (char *p = str; *p; p++) TWDR = *p; TWCR = (1 << TWINT)

#define I2C_ADDRESS 0x27

#include <stdint.h> #include <stdbool.h> #include <avr/io.h> #include <avr/interrupt.h>