Dear All,
Has anyone successfully uploaded code with FastLED functionality form the Arduino IDE to the Lotos Cortex M0+? I see errors related to SPI pin assignment (see error log below).
I am using: Arduino 1.8.10, FastLED 3.3.2, Lotus Cortex M0+ v1.0 11/14/2018.
Found a page on FastLED that sort of explains the situation, copying the MKRZERO definitions does not work.
https://github.com/FastLED/FastLED/issues/414
Any ideas?
Thanks and regards,
–Aadjan
Error log:
----------------------------------------------------------------------------------------------------
Arduino: 1.8.10 (Mac OS X), Board: “Seeeduino Lotus - Cortex-M0+”
In file included from /Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:10:0:
/Users/aadjan/Documents/Arduino/libraries/FastLED/FastLED.h:585:2: warning: #warning “No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info.” [-Wcpp]
#warning “No pin/port mappings found, pin access will be slightly slower. See fastpin.h for info.”
^
In file included from /Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:10:0:
/Users/aadjan/Documents/Arduino/libraries/FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.002
pragma message “FastLED version 3.003.002”
^<br/>
In file included from /Users/aadjan/Documents/Arduino/libraries/FastLED/FastLED.h:65:0,
from /Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:10:
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi.h:130:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
pragma message “No hardware SPI pins defined. All SPI access will default to bitbanged output”
^<br/>
In file included from /Users/aadjan/Documents/Arduino/libraries/FastLED/FastLED.h:48:0,
from /Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:10:
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h: In instantiation of ‘class FastPin<8u>’:
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi_bitbang.h:22:49: required from ‘class AVRSoftwareSPIOutput<8u, 7u, 4ul>’
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi.h:34:7: required from ‘class SPIOutput<8u, 7u, 4ul>’
/Users/aadjan/Documents/Arduino/libraries/FastLED/chipsets.h:157:6: required from ‘class LPD6803Controller<8u, 7u, (EOrder)10u, 4ul>’
/Users/aadjan/Documents/Arduino/libraries/FastLED/FastLED.h:253:77: required from ‘static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with ESPIChipsets CHIPSET = (ESPIChipsets)5u; unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; EOrder RGB_ORDER = (EOrder)10u]’
/Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:28:66: required from here
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified
static_assert(validpin(), “Invalid pin specified”);
^
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h: In instantiation of ‘class FastPin<7u>’:
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi_bitbang.h:23:50: required from ‘class AVRSoftwareSPIOutput<8u, 7u, 4ul>’
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi.h:34:7: required from ‘class SPIOutput<8u, 7u, 4ul>’
/Users/aadjan/Documents/Arduino/libraries/FastLED/chipsets.h:157:6: required from ‘class LPD6803Controller<8u, 7u, (EOrder)10u, 4ul>’
/Users/aadjan/Documents/Arduino/libraries/FastLED/FastLED.h:253:77: required from ‘static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with ESPIChipsets CHIPSET = (ESPIChipsets)5u; unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; EOrder RGB_ORDER = (EOrder)10u]’
/Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:28:66: required from here
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h: In instantiation of ‘static void FastPin::fastset(FastPin::port_ptr_t, port_t) [with unsigned char PIN = 8u; FastPin::port_ptr_t = volatile long unsigned int*; RwReg = volatile long unsigned int; FastPin::port_t = volatile long unsigned int]’:
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi_bitbang.h:175:45: required from ‘static void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writeBit(uint8_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_ptr_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_ptr_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_t) [with unsigned char BIT = 0u; unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; long unsigned int SPI_SPEED = 1ul; uint8_t = unsigned char; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_ptr_t = volatile long unsigned int*; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_ptr_t = volatile long unsigned int*; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_t = volatile long unsigned int; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_t = volatile long unsigned int]’
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi_bitbang.h:345:14: required from ‘void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writePixels(PixelController<RGB_ORDER>) [with unsigned char FLAGS = 0u; D = DATA_NOP; EOrder RGB_ORDER = (EOrder)10u; unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; long unsigned int SPI_SPEED = 1ul]’
/Users/aadjan/Documents/Arduino/libraries/FastLED/chipsets.h:138:3: required from ‘void WS2801Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&) [with unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; EOrder RGB_ORDER = (EOrder)10u; long unsigned int SPI_SPEED = 1ul]’
/Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:44:1: required from here
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h:229:21: warning: unused parameter ‘port’ [-Wunused-parameter]
Multiple libraries were found for “FastLED.h”
Used: /Users/aadjan/Documents/Arduino/libraries/FastLED
inline static void fastset(register port_ptr_t port, register port_t val) attribute ((always_inline)) { }
^
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h:229:21: warning: unused parameter ‘val’ [-Wunused-parameter]
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h: In instantiation of ‘static void FastPin::fastset(FastPin::port_ptr_t, port_t) [with unsigned char PIN = 7u; FastPin::port_ptr_t = volatile long unsigned int*; RwReg = volatile long unsigned int; FastPin::port_t = volatile long unsigned int]’:
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi_bitbang.h:176:49: required from ‘static void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writeBit(uint8_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_ptr_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_ptr_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_t, AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_t) [with unsigned char BIT = 0u; unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; long unsigned int SPI_SPEED = 1ul; uint8_t = unsigned char; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_ptr_t = volatile long unsigned int*; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_ptr_t = volatile long unsigned int*; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::data_t = volatile long unsigned int; AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::clock_t = volatile long unsigned int]’
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastspi_bitbang.h:345:14: required from ‘void AVRSoftwareSPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>::writePixels(PixelController<RGB_ORDER>) [with unsigned char FLAGS = 0u; D = DATA_NOP; EOrder RGB_ORDER = (EOrder)10u; unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; long unsigned int SPI_SPEED = 1ul]’
/Users/aadjan/Documents/Arduino/libraries/FastLED/chipsets.h:138:3: required from ‘void WS2801Controller<DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED>::showPixels(PixelController<RGB_ORDER>&) [with unsigned char DATA_PIN = 8u; unsigned char CLOCK_PIN = 7u; EOrder RGB_ORDER = (EOrder)10u; long unsigned int SPI_SPEED = 1ul]’
/Users/aadjan/Projects/Acting Machines/IDE Academy 191204/Solutions/button-blink/button-blink.ino:44:1: required from here
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h:229:21: warning: unused parameter ‘port’ [-Wunused-parameter]
/Users/aadjan/Documents/Arduino/libraries/FastLED/fastpin.h:229:21: warning: unused parameter ‘val’ [-Wunused-parameter]
exit status 1
Error compiling for board Seeeduino Lotus - Cortex-M0+.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.