Skip to content

ST7302 Dump speed improvement #45

@kayae

Description

@kayae

Platform Nano33 BLE

in OBD.inl
static int ST7302DumpBuffer(OBDISP *pOBD, uint8_t *pBuffer)
changing

RawWrite(pOBD, ucPixels, 3 + (int)(d - ucPixels));
to

digitalWrite(pOBD->iDCPin, HIGH); // data mode
digitalWrite(pOBD->iCSPin, LOW);
mySPI->transfer((char*)ucPixels, 3 + (int)(d - ucPixels));
digitalWrite(pOBD->iCSPin, HIGH);

improves transmission time from 122ms to 41ms.

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