mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add Arduino fixture file for language recognition test
This commit is contained in:
parent
6bb43555dc
commit
393b45dd21
1 changed files with 21 additions and 0 deletions
21
tests/fixtures/languages/arduino/test.ino
vendored
Normal file
21
tests/fixtures/languages/arduino/test.ino
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
// Simple Arduino sketch
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
// Initialize serial communication
|
||||||
|
Serial.begin(9600);
|
||||||
|
pinMode(LED_BUILTIN, OUTPUT);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
// Main code that runs repeatedly
|
||||||
|
digitalWrite(LED_BUILTIN, HIGH);
|
||||||
|
delay(1000);
|
||||||
|
digitalWrite(LED_BUILTIN, LOW);
|
||||||
|
delay(1000);
|
||||||
|
Serial.println("Blinking LED");
|
||||||
|
}
|
||||||
|
|
||||||
|
// A custom function
|
||||||
|
int calculateDelay(int baseDelay, int multiplier) {
|
||||||
|
return baseDelay * multiplier;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue