Skip to content

Low Clock time too short #8

@zeppo911

Description

@zeppo911

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.

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions