v1.4实现机器人一起踢乒乓球功能,使用maixcam,离线运行。

This commit is contained in:
myperworld committed 2026-01-02 08:24:04 +08:00
1 parent 9d3aa2684b
commit ce8dc19088
1854 files changed
+14918 -23

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);
}