We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
Introduces with commit 3c3ffa0 . There are many wrong examples with this code in the internet.
Required is:
SPISettings(uint32_t clock, uint8_t bitOrder, uint8_t dataMode)
SPI_CLOCK_DIV4 does not represent the clock speed. Just a number (between ~0-100). So can not be used for clock.
SPI_CLOCK_DIV4
clock
Seems to be measured here: #269 (comment)
Initial #544
Reason arduino/ArduinoCore-mbed#113 (comment)
The text was updated successfully, but these errors were encountered:
fix wrong SPI clock speed miguelbalboa#545
34086ad
No branches or pull requests
Step 1: Describe your environment
Step 2: Describe the problem
Observed Results:
Expected Results:
Relevant Code:
Introduces with commit 3c3ffa0 . There are many wrong examples with this code in the internet.
Required is:
SPI_CLOCK_DIV4
does not represent the clock speed. Just a number (between ~0-100). So can not be used forclock
.References
Seems to be measured here: #269 (comment)
Initial #544
Reason arduino/ArduinoCore-mbed#113 (comment)
The text was updated successfully, but these errors were encountered: