исправлены ошибки
This commit is contained in:
1 parent
42e9becdb9
commit
6f84c00718
2 files changed
+5
-12
No files matched your search
@@ -18,9 +18,6 @@ SemaphoreHandle_t interruptSemaphore;
|
||||
|
||||
void setup() {
|
||||
|
||||
// Configure pin 2 as an input and enable the internal pull-up resistor
|
||||
pinMode(2, INPUT_PULLUP);
|
||||
|
||||
// Create task for Arduino led
|
||||
xTaskCreate(TaskLed, // Task function
|
||||
"Led", // Task name
|
||||
@@ -36,7 +33,7 @@ void setup() {
|
||||
interruptSemaphore = xSemaphoreCreateBinary();
|
||||
if (interruptSemaphore != NULL) {
|
||||
// Attach interrupt for Arduino digital pin
|
||||
attachInterrupt(digitalPinToInterrupt(2), interruptHandler, LOW);
|
||||
attachInterrupt(digitalPinToInterrupt(BTN_BUILTIN), interruptHandler, RISING);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user