wemosでsin波
概要
シリアルプロッターで表示した。
写真
サンプルコード
#include <math.h>
float a = 0;
void setup() {
Serial.begin(115200);
while (!Serial)
{
;
}
}
void loop() {
a = a + 0.1;
delay(100);
Serial.println(sin(a), 6);
}
#include <math.h>
float a = 0;
void setup() {
Serial.begin(115200);
while (!Serial)
{
;
}
}
void loop() {
a = a + 0.1;
delay(100);
Serial.println(sin(a), 6);
}
以上。
Author And Source
この問題について(wemosでsin波), 我々は、より多くの情報をここで見つけました https://qiita.com/ohisama@github/items/2a09f9f05efddd0ac1fe著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .