Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 2 months ago.
Why 3 write statements in SPI example?
I understand the SPI master example code is writing a series of 1, 2, 3..., but what is the purpose of the device.write statements above and below the counting output?
1 Answer
8 years, 2 months ago.
It is just a random program. No idea why the 0xE0, maybe it was intended as 0xF0 (four ones, four zeros). 0x55 (and 0xAA) are popular ones since they create a '10101010' pattern.