From fcf5d6f554e8d458a373e1fc63a7dbd97f9d65a8 Mon Sep 17 00:00:00 2001
From: Eric Brombaugh <ebrombaugh1@cox.net>
Date: Sun, 7 May 2023 16:12:18 -0700
Subject: [PATCH] turn off i2c probing

---
 examples/i2c_oled/ssd1306_i2c.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/i2c_oled/ssd1306_i2c.h b/examples/i2c_oled/ssd1306_i2c.h
index 45a5197..c72e2e3 100644
--- a/examples/i2c_oled/ssd1306_i2c.h
+++ b/examples/i2c_oled/ssd1306_i2c.h
@@ -345,9 +345,13 @@ uint8_t ssd1306_i2c_init(void)
 	// load I2C regs
 	ssd1306_i2c_setup();
 	
+#if 0
 	// test if SSD1306 is on the bus by sending display off command
 	uint8_t command = 0xAF;
 	return ssd1306_pkt_send(&command, 1, 1);
+#else
+	return 0;
+#endif
 }
 
 /*
-- 
GitLab