Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI_SCK in daisy_patch_sm.h - oddity encountered? #57

Open
rackd0 opened this issue Apr 27, 2024 · 0 comments
Open

SPI_SCK in daisy_patch_sm.h - oddity encountered? #57

rackd0 opened this issue Apr 27, 2024 · 0 comments

Comments

@rackd0
Copy link

rackd0 commented Apr 27, 2024

Using DaisyDuino (1.7.0) and Adafruit GFX & SSD1351 libraries with Daisy PatchSM (on patch.Init() hardware) I couldn't get an SPI RGB OLED display to operate - it wasn't seeing any SPI clock signal when using the pin mappings below, taken from daisy_patch_sm.h:

//periphs
#define PIN_PATCH_SM_SPI_SCK PD10
#define PIN_PATCH_SM_SPI_CS PB4
#define PIN_PATCH_SM_SPI_MOSI PC2_C
#define PIN_PATCH_SM_SPI_MISO PC3_C

I had to change the pin specified for the SPI clock from PD10 to PD3 (or specify PIN_PATCH_SM_D10 instead) to get the SPI clock signal out of physical pin D10 on the PatchSM board; it's now all working.

Is this my lack of understanding/error or is something slightly odd going on with daisy_patch_sm.h & mapping of this pin? An expert opinion would be very welcome, please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant