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

libraries/SPI: Add support for peripheral mode.#200

New issue

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
facchinm merged 1 commit intoarduino:mainfromiabdalkader:spi_controller_mode
Oct 2, 2025

Conversation

@iabdalkader
Copy link

@iabdalkaderiabdalkader commentedSep 17, 2025
edited
Loading

Requires:

Example:

#include<SPI.h>SPISettingsmySettings(1000000, MSBFIRST, SPI_MODE0, SPI_PERIPHERAL);voidsetup() {  Serial.begin(115200);while (!Serial);  SPI.begin();}voidloop() {uint8_t buf[] = {0x01,0x02,0x03,0x04};  SPI.beginTransaction(mySettings);  SPI.transfer(buf,sizeof(buf));  SPI.endTransaction();    Serial.println("Received:");for (int i=0; i<sizeof(buf); i++) {    Serial.print("0x"); Serial.println(buf[0], HEX);  }delay(100);}

@iabdalkaderiabdalkaderforce-pushed thespi_controller_mode branch 3 times, most recently from80c2002 to1e6e8bdCompareSeptember 18, 2025 10:34
@iabdalkaderiabdalkader changed the titlelibraries/SPI: Add support for controller mode.libraries/SPI: Add support for peripheral mode.Sep 18, 2025
@iabdalkaderiabdalkaderforce-pushed thespi_controller_mode branch 2 times, most recently from27e7766 tod403c4cCompareSeptember 19, 2025 07:54
Copy link
Member

@facchinmfacchinm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's just addSPI_HAS_PERIPHERAL_MODE define and we are good to go 🚀

@iabdalkader
Copy link
Author

Let's just addSPI_HAS_PERIPHERAL_MODE define and we are good to go 🚀

Added.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
@facchinmfacchinm merged commit560c4a5 intoarduino:mainOct 2, 2025
18 checks passed
@iabdalkaderiabdalkader deleted the spi_controller_mode branchOctober 2, 2025 08:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@facchinmfacchinmfacchinm approved these changes

@pennampennamAwaiting requested review from pennam

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@iabdalkader@facchinm

[8]ページ先頭

©2009-2025 Movatter.jp