This commit is contained in:
2025-11-03 17:06:37 +00:00
parent b49517d6e8
commit 27ce30c0f4
2 changed files with 15 additions and 10 deletions

6
include/pins.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef PINS
#define PINS
#define LED 4
#endif

View File

@@ -1,18 +1,17 @@
#include <Arduino.h>
// put function declarations here:
int myFunction(int, int);
#include "pins.h"
#define BLINKRATE 500
long lastBlink = 0;
void setup() {
// put your setup code here, to run once:
int result = myFunction(2, 3);
pinMode(LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
}
// put function definitions here:
int myFunction(int x, int y) {
return x + y;
if ((millis() - lastBlink) > BLINKRATE) {
digitalWrite(LED, !digitalRead(LED));
}
}