debug


void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

int a1=0;
// the loop routine runs over and over again forever:
void loop() {
  
  Serial.println("hi");
  Serial.print("a1:");
  Serial.println(a1);
  a1=a1+1;

}

ometmer
可變電阻
analog.read



// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
 
  Serial.println(voltage);
}

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply