bool ledstate = 1;
const int ledpin = 27;
void setup() {
Serial.begin(115200);
UBaseType_t uTaskPriority = uxTaskPriorityGet(NULL);
Serial.print("setup优先级:");
Serial.println(uTaskPriority);
pinMode(ledpin, OUTPUT);
digitalWrite(ledpin, HIGH);
}
void loop() {
// put your main code here, to run repeatedly:
// ledstate = !ledstate;
digitalWrite(ledpin, ledstate);
delay(500); // this speeds up the simulation
UBaseType_t uTaskPriority = uxTaskPriorityGet(NULL);
Serial.print("loop优先级:");
Serial.println(uTaskPriority);
}