ESP32: analogRead

From OnnoWiki
Revision as of 19:14, 24 February 2023 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
void setup() {
  Serial.begin(115200);
}

void loop() {
  int sensorReading = analogRead(4); // connect ke D4
  Serial.println(sensorReading); 
  delay(1000);
}
// nilai max 4096

Pranala Menarik