From 34618d640da7c936d4a16af0cf4f80df51e94670 Mon Sep 17 00:00:00 2001 From: RedHawk Date: Tue, 13 Jun 2023 16:50:10 +0300 Subject: [PATCH] rotary: [#62] Change pin for rotary press. * Connected button to ground. * It seems that initially chosen pin has no interrupts! * That's a way to spend several hours... --- source/shoh/src/threads/rotary/Rotary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shoh/src/threads/rotary/Rotary.h b/source/shoh/src/threads/rotary/Rotary.h index 79a4201..e21077b 100644 --- a/source/shoh/src/threads/rotary/Rotary.h +++ b/source/shoh/src/threads/rotary/Rotary.h @@ -22,7 +22,7 @@ private: ThreadCommon::QueueManager* _qm; DigitalIoPin signal[3] = { { 1, 18, true, true, false, true, PIN_INT0_IRQn}, //sigA { 2, 12, true, true, false}, //sigB - { 0, 1, true, true, false, true, PIN_INT1_IRQn} }; //Press, sw //2 11 + { 0, 2, true, true, false, true, PIN_INT1_IRQn} }; //Press, sw //2 11 (pin without interrupt) //0 1 (board button) }; void thread_rotary(void* pvParams);