#include #include #include #include #include #include "USART.h" #include "I2C.h" int main(void) { initialize_USART(); I2CInit(); I2Cstart(); Write_I2C_Register(0x68, 0x6B, 0b00000011); I2Cstop(); while(1){ send_USART_string("register value: "); I2Cstart(); int u8data = Read_I2C_Register(0x68, 0x3B); send_USART_integer(u8data); I2Cstop(); send_USART_character('\n'); } return 0; }