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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy