Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf2b008

Browse files
committed
feat(spi): add SPISettings constructor with uint8_t
for backward compatibility.Example with Adafruit GFX Library library.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parentd05c68f commitaf2b008

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎libraries/SPI/src/SPI.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ extern "C" {
4848

4949
classSPISettings {
5050
public:
51+
constexprSPISettings(uint32_t clock, BitOrder bitOrder,uint8_t dataMode)
52+
: clockFreq(clock),
53+
bitOrder(bitOrder),
54+
dataMode((SPIMode)dataMode)
55+
{ }
5156
constexprSPISettings(uint32_t clock, BitOrder bitOrder, SPIMode dataMode)
5257
: clockFreq(clock),
5358
bitOrder(bitOrder),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp