Post by hotz on Mar 29, 2017 18:30:33 GMT
While in the process of trying to resolve the above problem I downloaded and installed the "ShieldBuddy add-in v1.35" after doing this install, my DotStar code which compiled before now has a compile error, which I will show below. I also tried to compile your DotStar test code "strandtest30.ino (17.15 KB)" from above and it has the exact same error.
However, my code with all of my current installs compiles and runs fine on an Arduino Due.
I even un-installed and re-installed all of the following:
The Aurix free toolchain with Eclipse, C/C++ compiler and UDE debugger from PLS: free-entry-toolchain.hightec-rt.com/
The standard 1.8.0 Arduino IDE installed from: arduino.cc/download.php?f=/arduino-1.8.0-windows.exe
The Arduino development environment add-in for Eclipse and the standard Arduino IDE: www.hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/ShieldBuddyMulticoreIDE.zip
And still have the exact same error.
Can you please test your "strandtest30.ino (17.15 KB)" with the latest "ShieldBuddy add-in v1.35" and see if you have any errors.
Thank You!
// ******* Here is the Error ******************
Compiling library "Adafruit_DotStar"
"C:\Users\Jimmy\AppData\Local\Temp\arduino_build_116997\libraries\Adafruit_DotStar\Adafruit_DotStar.cpp.o"
E:\Users\Jimmy\Documents\Arduino\libraries\Adafruit_DotStar\Adafruit_DotStar.cpp: In member function 'void Adafruit_DotStar::sw_spi_out(uint8_t)':
E:\Users\Jimmy\Documents\Arduino\libraries\Adafruit_DotStar\Adafruit_DotStar.cpp:188:5: error: 'else' without a previous 'if'
else digitalWrite(dataPin, LOW);
^
// ****** Here is the Code from that section of the Adafruit_DotStar.cpp
void Adafruit_DotStar::sw_spi_out(uint8_t n) { // Bitbang SPI write
for(uint8_t i=8; i--; n <<= 1) {
#ifdef __AVR__
if(n & 0x80) *dataPort |= dataPinMask;
else *dataPort &= ~dataPinMask;
*clockPort |= clockPinMask;
*clockPort &= ~clockPinMask;
#else
if(n & 0x80) digitalWrite(dataPin, HIGH);
else digitalWrite(dataPin, LOW);
digitalWrite(clockPin, HIGH);
digitalWrite(clockPin, LOW);
#endif
}
}
However, my code with all of my current installs compiles and runs fine on an Arduino Due.
I even un-installed and re-installed all of the following:
The Aurix free toolchain with Eclipse, C/C++ compiler and UDE debugger from PLS: free-entry-toolchain.hightec-rt.com/
The standard 1.8.0 Arduino IDE installed from: arduino.cc/download.php?f=/arduino-1.8.0-windows.exe
The Arduino development environment add-in for Eclipse and the standard Arduino IDE: www.hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/ShieldBuddyMulticoreIDE.zip
And still have the exact same error.
Can you please test your "strandtest30.ino (17.15 KB)" with the latest "ShieldBuddy add-in v1.35" and see if you have any errors.
Thank You!
// ******* Here is the Error ******************
Compiling library "Adafruit_DotStar"
"C:\Users\Jimmy\AppData\Local\Temp\arduino_build_116997\libraries\Adafruit_DotStar\Adafruit_DotStar.cpp.o"
E:\Users\Jimmy\Documents\Arduino\libraries\Adafruit_DotStar\Adafruit_DotStar.cpp: In member function 'void Adafruit_DotStar::sw_spi_out(uint8_t)':
E:\Users\Jimmy\Documents\Arduino\libraries\Adafruit_DotStar\Adafruit_DotStar.cpp:188:5: error: 'else' without a previous 'if'
else digitalWrite(dataPin, LOW);
^
// ****** Here is the Code from that section of the Adafruit_DotStar.cpp
void Adafruit_DotStar::sw_spi_out(uint8_t n) { // Bitbang SPI write
for(uint8_t i=8; i--; n <<= 1) {
#ifdef __AVR__
if(n & 0x80) *dataPort |= dataPinMask;
else *dataPort &= ~dataPinMask;
*clockPort |= clockPinMask;
*clockPort &= ~clockPinMask;
#else
if(n & 0x80) digitalWrite(dataPin, HIGH);
else digitalWrite(dataPin, LOW);
digitalWrite(clockPin, HIGH);
digitalWrite(clockPin, LOW);
#endif
}
}