Skip to content

Commit 7d5945c

Browse files
author
board707
committed
Rewrite examples for Wire.h library
1 parent 93d592a commit 7d5945c

File tree

20 files changed

+99
-2471
lines changed

20 files changed

+99
-2471
lines changed

cores/w806/lib/drivers/wm_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ int HAL_I2C_Wait_Ack(I2C_HandleTypeDef *hi2c)
108108
while(READ_BIT(hi2c->Instance->CR_SR, I2C_SR_RXACK))
109109
{
110110
errtime ++;
111-
if(errtime > 512)
111+
if(errtime > 1024)
112112
{
113-
printf("i2c ack error");
113+
//printf("i2c ack error");
114114
HAL_I2C_Stop(hi2c);
115115
return HAL_ERROR;
116116
}

libraries/HardwareI2C/OLED_SSD1306_HardI2C/OLED_SSD1306_HardI2C.ino

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)