Created
January 13, 2024 05:23
-
-
Save 18bai-Kaiohken/c0887693ccf1fc19bca256b9020feca6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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