Skip to content

Instantly share code, notes, and snippets.

@18bai-Kaiohken
Created January 13, 2024 05:23
Show Gist options
  • Save 18bai-Kaiohken/c0887693ccf1fc19bca256b9020feca6 to your computer and use it in GitHub Desktop.
Save 18bai-Kaiohken/c0887693ccf1fc19bca256b9020feca6 to your computer and use it in GitHub Desktop.
void setup() {
pinMode(A0,INPUT);#A0ピンを入力に設定
Serial.begin(9600);#シリアル通信開始
}
void loop() {
Serial.println( analogRead( A0 ) ); #読み取った電圧をシリアルモニタに表示
delay(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment