v1.2版本改为通过xbox系列手柄进行遥控,并增加智能模式和手动模式
This commit is contained in:
1 parent
76603d3c31
commit
1a97bc32c3
1839 files changed
+478852
-3
No files matched your search
@@ -0,0 +1,26 @@
|
||||
/// @file PinMode.ino
|
||||
/// @brief Checks that pinMode, digitalWrite and digitalRead work correctly.
|
||||
/// @example Pintest.ino
|
||||
|
||||
#include <FastLED.h>
|
||||
|
||||
#define PIN 1
|
||||
|
||||
void setup() {
|
||||
delay(1000);
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
pinMode(PIN, OUTPUT);
|
||||
digitalWrite(PIN, HIGH);
|
||||
delay(100);
|
||||
digitalWrite(PIN, LOW);
|
||||
pinMode(PIN, INPUT);
|
||||
bool on = digitalRead(PIN);
|
||||
Serial.print("Pin: ");
|
||||
Serial.print(PIN);
|
||||
Serial.print(" is ");
|
||||
Serial.println(on ? "HIGH" : "LOW");
|
||||
delay(1000);
|
||||
}
|
||||
Reference in new issue
Block a user