imported from "final" folder

This commit is contained in:
2025-11-28 12:12:50 +01:00
parent f9288986cf
commit ff8e725b35
1061 changed files with 225150 additions and 96 deletions

View File

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