Skip to content

analogSetPinAttenuation does not work with Board v1.0.5 and v1.0.6, but it works with board 1.0.4. How can i fix this problem? #5041

Closed
@cbkaefer

Description

@cbkaefer

Hardware:

Board ESP32 Dev Module
Version/Date 1.0.6
IDE name Arduino IDE
Flash Frequency 80Mhz
PSRAM enabled no
Upload Speed 115200
Computer OS Windows 10

Description:

analogSetPinAttenuation does not work with Board v1.0.5 and v1.0.6, but it works with board 1.0.4.
There is no fault message, the compiler works with this code, but it takes no effect.
How can i fix this problem?

Sketch: (leave the backquotes for code formatting)

//Change the code below by your sketch
#include <Arduino.h>

void setup() {
analogSetPinAttenuation(34, ADC_0db);
adcAttachPin(34);
}

void loop() {
Serial.println(analogRead(34);
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions