We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ef486 commit b6afe1bCopy full SHA for b6afe1b
libraries/Nefry/examples/FullColorLED/FullColorLED.ino
@@ -0,0 +1,14 @@
1
+#include <Nefry.h>
2
+//フルカラーLED ランダムに色が変わります。
3
+void setup() {
4
+ Nefry.setProgramName("FullColorLED"); //プログラム名を管理することができます。
5
+ randomSeed(analogRead(A0));
6
+}
7
+int red,green,blue;
8
+void loop() {
9
+ red=random(255); //random関数は0-255の数値をランダムに返します。
10
+ green=random(255);
11
+ blue=random(255);
12
+ Nefry.setLed(red,green,blue); //LEDがランダムに点灯します。
13
+ delay(1000); //1秒待つ
14
0 commit comments