Skip to content

Instantly share code, notes, and snippets.

View RM220507's full-sized avatar
🏠
Working from home

Ryan RM220507

🏠
Working from home
View GitHub Profile
void scan_i2c(i2c_inst_t* i2c, const char* name) {
printf("Scanning %s...\n", name);
for (int addr = 0; addr < 128; addr++) {
uint8_t dummy;
int result = i2c_read_blocking(
i2c,