You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
475 B
C

3 years ago
#include <atmel_start.h>
#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();
3 years ago
/* Replace with your application code */
while (1) {
}
}