Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

"error: 'VSPI' was not declared in this scope" #1

Description

@cohen-sydney

I am a new in this programming. any one know why I am getting the error(s) below
main issue seems to be "error: 'VSPI' was not declared in this scope"
Also the header issues.
I am in Arduino and trying to complete for a M5Stack CoreS3.
any help appreciated

In file included from /Users/andrew/Documents/Arduino/libraries/M5Stack/src/M5Display.h:8,
from /Users/andrew/Documents/Arduino/libraries/M5Stack/src/M5Stack.h:111,
from /Users/andrew/Downloads/IKEA_Clock_MQTT/IKEA_Clock_MQTT.ino:1:
/Users/andrew/Documents/Arduino/libraries/M5Stack/src/utility/In_eSPI.h:633:20: error: 'VSPI' was not declared in this scope
uint8_t port = VSPI;
^~~~
/Users/andrew/Documents/Arduino/libraries/M5Stack/src/utility/In_eSPI.h:633:20: note: suggested alternative: 'SPI'
uint8_t port = VSPI;
^~~~
SPI
Multiple libraries were found for "SD.h"
Used: /Users/andrew/Library/Arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/SD
Not used: /Users/andrew/Library/Arduino15/libraries/SD
Not used: /Users/andrew/Documents/Arduino/libraries/SD
exit status 1

Compilation error: exit status 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions