編集履歴一覧に戻る
maxのアイコン画像

max が 2024年01月30日15時17分01秒 に編集

コメント無し

本文の変更

-

まだ途中すが、次回頑張ります

+

#include <stdio.h> #include <nuttx/config.h> #include <nuttx/audio/audio.h> #include <fcntl.h> #include <sys/ioctl.h> #define DEV_AUDIO "/dev/audio" #define MODEL_FILE "path/to/your/model" static int audio_fd; static struct audio_msg_s msg; void setup() { // シリアル通信の初期化 Serial.begin(115200); } void loop() { // A0ピンのアナログ入力を読み取る int sensorValue = analogRead(0); // 読み取った値をシリアル通信送信 Serial.println(sensorValue); }