heimi
heimi

Reputation: 539

Problem with esp8266 and SPI on platformio

I am working with ESP8266 using platformio with arduino-framework using ESP-NOW to drive stepper motors. That works well until I try to use GPIO8 as output for stepper impulses. That is one of the Pins noted for SPI. I do not use SPI. But this setting blocks the loop. Is there a conflict with ESP-NOW or one with arduino? Is it possible to release the arduino settings for the SPI-pins?

macos 12.5 plaformIO: Core 6.1.c Home 3.4.3

Board: NodeMCU ESP8266 from Joy-it

Includes:

#include <ESP8266WiFi.h>
#include <espnow.h>
#include "elapsedMillis.h"

platformio.ini:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
monitor_speed = 115200
upload protocol = esptool

Found the solution by reading the right docs: [https://unsinnsbasis.de/esp8266-pin-belegung/]

The pins I wanted to use are occupied from the system to communicate with the internal flash. They are not usable, but connected to pins on the board(?)

Upvotes: 0

Views: 347

Answers (0)

Related Questions