Skip to content

Commit aa8e01a

Browse files
dotstar: initial port to AtlasEdge
Signed-off-by: Dan O'Donovan <dan@emutex.com>
1 parent 4fee1cc commit aa8e01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Adafruit_DotStar/Adafruit_DotStar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void Adafruit_DotStar::hw_spi_init(void) { // Initialize hardware SPI
105105
DDRB |= _BV(PORTB1) | _BV(PORTB2); // DO (NOT MOSI) + SCK
106106
#else
107107
SPI.begin();
108-
#if defined(__AVR__) || defined(CORE_TEENSY)
108+
#if defined(__AVR__) || defined(CORE_TEENSY) || defined(__ARDUINO_ARC__)
109109
SPI.setClockDivider(SPI_CLOCK_DIV2); // 8 MHz (6 MHz on Pro Trinket 3V)
110110
#else
111111
SPI.setClockDivider((F_CPU + 4000000L) / 8000000L); // 8-ish MHz on Due

0 commit comments

Comments
 (0)