Skip to content

Commit

Permalink
Add simple test for idleOtherCore
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower committed Sep 20, 2024
1 parent d731dab commit 2336cf9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions libraries/FreeRTOS/tests/corefreeze/corefreeze.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include <Arduino.h>
#include <FreeRTOS.h>
#include "LittleFS.h"

void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
LittleFS.format();
}

void setup1() {
}

void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(200);
}

int x = 0;
void loop1() {
delay(100);
digitalWrite(LED_BUILTIN, LOW);
delay(100);
Serial.printf("%d\n", x++);
}

0 comments on commit 2336cf9

Please sign in to comment.