#include #include "p_usart.h" #include "p_i2c.h" static void project_init() { p_usart_init(); p_i2c_init(); } int main(void) { /* Initializes MCU, drivers and middleware */ atmel_start_init(); project_init(); PDEBUG("--- I2C Detect ----\r\n\r\n"); // clear line PDEBUG("%c[2K", 27); // reset cursor pos PDEBUG("%c[u", 27); // moves cursor one down PDEBUG("%c[1B", 27); p_i2c_scan(); /* Replace with your application code */ while (1) { } }