-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
bool SoftI2C::i2cWrite(uint8_t value) {
for (uint8_t curr = 0X80; curr != 0; curr >>= 1) {
if (curr & value) setPinHigh(sda); else setPinLow(sda);
setPinHigh(scl);
delayMicroseconds(DELAY);
setPinLow(scl);
=> also set delayMicroseconds(DELAY); here. Otherwise the low clock time will be very, very short, because in the for-loop the clock is set immediately again.
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels