0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

M5stack StampS3を秋月でADCして遊ぶ。(ESP32-S3)(アナログデジタルコンバータ)

Last updated at Posted at 2024-04-03

目的
ADCのテスト
なぜか0から4096

結果(MCP9701を繋いだ時)

o_coq017.jpg

プログラム



//ADC_SERIAL_TEST1_M5S3


#define ADC 5

void setup() {

  Serial.begin(9600);

  pinMode(ADC,INPUT);

}

void loop() {

  int sensorValue = analogRead(ADC);

  Serial.printf("(ADC) = %d\r\n",sensorValue);

  delay(1000);

}


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?