You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this code I expect the second analogWrite to generate a 50% value on pin 15.
However, the second pinMode instruction will set the value of the pin to 0 and every analogWrite after that will not work.
DigitalWrite will work.
Sketch
#include<Arduino.h>voidsetup() {
// put your setup code here, to run once:pinMode(15,OUTPUT);
analogWrite(15,255);
delay(5000);
pinMode(15,OUTPUT);
delay(5000);
analogWrite(15,255);
}
voidloop() {
// put your main code here, to run repeatedly:delay(100);
}
Debug Message
na
Other Steps to Reproduce
na
I have checked existing issues, online documentation and the Troubleshooting Guide
I confirm I have checked existing issues, online documentation and Troubleshooting guide.
The text was updated successfully, but these errors were encountered:
Board
esp32 dev module
Device Description
devkit
Hardware Configuration
no
Version
v2.0.6
IDE Name
platformio
Operating System
w10
Flash frequency
40
PSRAM enabled
yes
Upload speed
115200
Description
With this code I expect the second analogWrite to generate a 50% value on pin 15.
However, the second pinMode instruction will set the value of the pin to 0 and every analogWrite after that will not work.
DigitalWrite will work.
Sketch
Debug Message
Other Steps to Reproduce
na
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: