Difference between revisions of "ESP32: analogRead"

From OnnoWiki
Jump to: navigation, search
(Created page with " void setup() { Serial.begin(11500); } void loop() { int sensorReading = analogRead(15); Serial.println(sensorReading); delay(1000); }")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 
  void setup() {
 
  void setup() {
   Serial.begin(11500);
+
   Serial.begin(115200);
 
  }
 
  }
 
+
 
  void loop() {
 
  void loop() {
   int sensorReading = analogRead(15);
+
   int sensorReading = analogRead(4); //cek pin di layout
 
   Serial.println(sensorReading);  
 
   Serial.println(sensorReading);  
 
   delay(1000);
 
   delay(1000);
 
  }
 
  }
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[ESP32]]

Latest revision as of 09:31, 7 November 2019

void setup() {
  Serial.begin(115200);
}

void loop() {
  int sensorReading = analogRead(4); //cek pin di layout
  Serial.println(sensorReading); 
  delay(1000);
}


Pranala Menarik