Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

touchRead T2 conflict with GPIO 27 but works fine in December release #6443

Copy link
Copy link
Closed
@htmltiger

Description

@htmltiger
Issue body actions

Board

ESP32 Dev Module

Device Description

Standard 38pin

Hardware Configuration

Jumper between 27 and 39 to read

Version

latest master

IDE Name

Arduino IDE

Operating System

Windows 11

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

When pin 27 is set output and high it works normal but when T2 is read it floats

The same sketch works fine with December release

Output from old version 22/12/2021 ESP32 Arduino 2.0.2 based on ESP-IDF 4.4-beta1 works fine

22:12:14.849 -> pin 27 is high
22:12:15.833 -> Jumper pin 27 to 39 = 4095
22:12:16.864 -> Jumper pin 27 to 39 = 4095
22:12:17.837 -> Jumper pin 27 to 39 = 4095
22:12:18.868 -> Jumper pin 27 to 39 = 4095
22:12:19.846 -> Jumper pin 27 to 39 = 4095
22:12:19.846 -> T2 = 47
22:12:20.830 -> Jumper pin 27 to 39 = 4095
22:12:21.861 -> Jumper pin 27 to 39 = 4095
22:12:22.837 -> Jumper pin 27 to 39 = 4095
22:12:23.868 -> Jumper pin 27 to 39 = 4095
22:12:24.852 -> Jumper pin 27 to 39 = 4095
22:12:24.852 -> T2 = 79
22:12:25.838 -> Jumper pin 27 to 39 = 4095
22:12:26.869 -> Jumper pin 27 to 39 = 4095
22:12:27.853 -> Jumper pin 27 to 39 = 4095
22:12:28.837 -> Jumper pin 27 to 39 = 4095
22:12:29.868 -> Jumper pin 27 to 39 = 4095

Sketch

void setup() {
	Serial.begin(115200);
	delay(1000);
	pinMode(27, OUTPUT);
	digitalWrite(27, HIGH);
	Serial.println("pin 27 is high");
}

void loop() {

	static unsigned long every1second = millis();
	if (millis() - every1second >= 1000) { every1second = millis();
		Serial.print("Jumper pin 27 to 39 = ");
		Serial.println(analogRead(39));
	}

	static unsigned long every5seconds = millis();
	if (millis() - every5seconds >= 5000) { every5seconds = millis();
		Serial.print("T2 = ");
		Serial.println(touchRead(T2));
	}
}

Debug Message

22:18:26.952 -> pin 27 is high
22:18:27.981 -> Jumper pin 27 to 39 = 4095
22:18:28.977 -> Jumper pin 27 to 39 = 4095
22:18:29.962 -> Jumper pin 27 to 39 = 4095
22:18:30.982 -> Jumper pin 27 to 39 = 4095
22:18:31.966 -> T2 = 77
22:18:32.235 -> Jumper pin 27 to 39 = 0
22:18:33.219 -> Jumper pin 27 to 39 = 0
22:18:34.256 -> Jumper pin 27 to 39 = 0
22:18:35.230 -> Jumper pin 27 to 39 = 0
22:18:36.251 -> Jumper pin 27 to 39 = 0
22:18:36.954 -> T2 = 77
22:18:37.235 -> Jumper pin 27 to 39 = 0
22:18:38.258 -> Jumper pin 27 to 39 = 0
22:18:39.242 -> Jumper pin 27 to 39 = 0
22:18:40.235 -> Jumper pin 27 to 39 = 0
22:18:41.219 -> Jumper pin 27 to 39 = 0

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done
Show more project fields

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.