Skip to content

Commit 0fce0fe

Browse files
committed
Merge pull request #6 from kevin306/master
dotstar: initial port to Arduino101
2 parents 73b75d6 + ec80739 commit 0fce0fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy