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

Refactor for better SW SPI only support #108

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

caternuson
Copy link
Contributor

For #81, but also motivated by:
adafruit/Adafruit_DotStar#50

Essentially just some preproc foo.

This simple DotStar example runs as expected on a Trinket 3V (PID 1500).

#include <Adafruit_DotStar.h>

#define NUMPIXELS  10
#define DATAPIN    2
#define CLOCKPIN   1
Adafruit_DotStar strip(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);

void setup() {
  strip.begin();
  strip.fill(0xADAF00);
  strip.show();
}

void loop() {
}

And testing a BME280 wired to hardware SPI on a QT PY M0 still works (didn't break HW SPI check):

BME280 test
-- Default Test --

Temperature = 24.99 °C
Pressure = 1006.83 hPa
Approx. Altitude = 53.57 m
Humidity = 57.60 %

Temperature = 25.24 °C
Pressure = 1006.87 hPa
Approx. Altitude = 53.28 m
Humidity = 57.52 %

Temperature = 25.28 °C
Pressure = 1006.85 hPa
Approx. Altitude = 53.40 m
Humidity = 57.43 %

@caternuson caternuson requested a review from a team August 22, 2022 22:40
@caternuson
Copy link
Contributor Author

@ladyada for review

@caternuson caternuson merged commit 8f3a45e into adafruit:master Oct 24, 2022
@caternuson caternuson mentioned this pull request Nov 1, 2022
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

Successfully merging this pull request may close these issues.

2 participants