ESP32 - Cannot find reference 'SoftSPI' in 'machine.pyi' #10107
Unanswered
CobyC
asked this question in
Libraries & Drivers
Replies: 2 comments 2 replies
-
I can't reproduce the error on a ESP32-DevKitC-v4 when I connect directly to the ESP32 board with mpremote:
I'm not familiar with PyCharm, but given that you are using PyCharm, are you sure that you are actually running the code on the ESP32 board and not on your PC? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think I found the issue. PyCharm stubs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm trying out MicorPython on ESP32:
flashed with command
esptool --chip esp32 --port COM3 write_flash -z 0x1000 H:\downloads\esp32-20220618-v1.19.1.bin
terminal output:
esptool.py v3.0
Serial port COM3
Connecting........_
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
I'm using PyCharm 2022.2.4 and python 3.6 as interpreter.
But when I try the example as shown in quick references
on the line
from machine import Pin, SoftSPI
I get a red line with a reference error Cannot find reference 'SoftSPI' in 'machine.pyi'
Do I need to add another library?
Beta Was this translation helpful? Give feedback.
All reactions