SPI Plugin for Xojo

Connection.WriteBlockRepeat Method

Sends data block many times (defined by the repeat parameter) and ignores the result bytes.
This method is for example used to speed up things like writing LCD SPI screen areas a fixed colour.

WriteBlockRepeat(
   bytes() as UInt8,
   repeats as UInt32,
   leaveCsLow as Boolean)

Parameters

bytes()
The bytes to send.
repeats
Number of times to send the bytes.
leaveCsLow
Set to true if wanting to leave CS at low.

Remarks

See Also

Connection Class