Hello all!
I have ran into an issue while trying out the adafruit seesaw library. I think the problem is related to library dependency, although I am not certain since I am still a novice.
I think the issue is somewhere with the BusIO, within this library or it’s dependency.
I browsed the forum for similar issues and unfortunately adding #include <SPI.h> does not solve the problem.
I have pasted the message from the terminal below,
I appreciate any help or information regarding this topic,
Thank you in advance kind stranger.
-
The terminal process “C:\Users\Me.platformio\penv\Scripts\platformio.exe ‘run’” terminated with exit code: 1.
-
Terminal will be reused by tasks, press any key to close it.
-
Executing task in folder Light game: C:\Users\Me.platformio\penv\Scripts\platformio.exe run
Processing nano_33_iot (platform: atmelsam; board: nano_33_iot; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Atmel SAM (8.1.0) > NANO 33 IoT
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd @ 1.8.13
- framework-cmsis @ 1.40500.0 (4.5.0)
- framework-cmsis-atmel @ 1.2.2
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 17 compatible libraries
Scanning dependencies…
Dependency Graph
|-- Adafruit seesaw Library @ 1.7.0
|-- SPI @ 1.0
Building in release mode
Compiling .pio\build\nano_33_iot\src\main.cpp.o
Compiling .pio\build\nano_33_iot\lib046\Adafruit BusIO\Adafruit_BusIO_Register.cpp.o
Compiling .pio\build\nano_33_iot\lib046\Adafruit BusIO\Adafruit_SPIDevice.cpp.o
src\main.cpp: In function ‘void (* blink(keyEvent))(keyEvent)’:
src\main.cpp:24:47: error: ‘Wheel’ was not declared in this scope
trellis.pixels.setPixelColor(evt.bit.NUM, Wheel(map(evt.bit.NUM, 0, trellis.pixels.numPixels(), 0, 255))); //on rising
^~~~~
src\main.cpp:30:7: error: ‘flash’ was not declared in this scope
flash(GREEN);
^~~~~
src\main.cpp:30:7: note: suggested alternative: ‘fflush’
flash(GREEN);
^~~~~
fflush
src\main.cpp:37:9: error: ‘restart_game’ was not declared in this scope
restart_game();
^~~~~~~~~~~~
src\main.cpp:40:7: error: ‘flash’ was not declared in this scope
flash(RED);
^~~~~
src\main.cpp:40:7: note: suggested alternative: ‘fflush’
flash(RED);
^~~~~
fflush
src\main.cpp:42:7: error: ‘show_solution’ was not declared in this scope
show_solution(game_sequence, current_difficulty);
^~~~~~~~~~~~~
src\main.cpp: In function ‘void restart_game()’:
src\main.cpp:57:3: error: ‘start_game’ was not declared in this scope
start_game(current_difficulty);
^~~~~~~~~~
src\main.cpp:57:3: note: suggested alternative: ‘restart_game’
start_game(current_difficulty);
^~~~~~~~~~
restart_game
src\main.cpp: In function ‘void setup()’:
src\main.cpp:98:37: error: ‘Wheel’ was not declared in this scope
trellis.pixels.setPixelColor(i, Wheel(map(i, 0, trellis.pixels.numPixels(), 0, 255)));
^~~~~
src\main.cpp:112:3: error: ‘start_game’ was not declared in this scope
start_game(current_difficulty);
^~~~~~~~~~
src\main.cpp:112:3: note: suggested alternative: ‘restart_game’
start_game(current_difficulty);
^~~~~~~~~~
restart_game
src\main.cpp: In function ‘void start_game(int)’:
src\main.cpp:121:3: error: ‘show_solution’ was not declared in this scope
show_solution(game_sequence, level);
^~~~~~~~~~~~~
src\main.cpp: In function ‘void show_solution(int*, int)’:
src\main.cpp:127:39: error: ‘Wheel’ was not declared in this scope
trellis.pixels.setPixelColor(led, Wheel(map(led, 0, trellis.pixels.numPixels(), 0, 255)));
^~~~~
*** [.pio\build\nano_33_iot\src\main.cpp.o] Error 1