Pin toggle function does not exist in ESP32.
Port, board and/or hardware
esp32
MicroPython version
MicroPython v1.24.1 on 2024-11-29; Generic ESP32 module with ESP32
Reproduction
from machine import Pin
p=Pin(2, Pin.OUT)
p.toggle()
Expected behaviour
Toggling the pin :D
Observed behaviour
the toggle function is not implemented.
So I do:
p.value(not p.value())
But from the docs I thought it was implemented.
It would be nice to have it, for code clarity but also for speed.
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
esp32S3 The USB function is occupied by USB jtag/serial (VID_303A&PID_1001)
Port, board and/or hardware
esp32S3
MicroPython version
MicroPython v1.24.1
Reproduction
No, I've provided everything above.
Expected behaviour
Like 1.19, there is no need to plug or unplug the USB cable, and USB related functions can be used normally
Observed behaviour
on win10
After connecting the USB cable and booting up, the pc system will generate a USB jtag port. After entering micropython, all USBs do not work (such as my microPython USB CDC repl), and the USB jtag port will continue to exist (not work,VID_303A&PID_1001). Only by plugging and unplugging the USB cable once can the relevant USB functions work properly
V1.19 does not have this issue (but on 1.19, IDF's bootloder performs some pin detection to enter different OTA apps. detection stays for >200ms, the same issue will also occur)
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree