Skip to main content
Arduino

Timeline for Can I Interrupt on any keypress on this keypad?

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Sep 26, 2021 at 20:04 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 29, 2021 at 19:06 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 29, 2021 at 19:05 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 1, 2020 at 19:38 comment added Delta_G Interrupts are for things that happen too fast to sample with normal code. That doesn’t include a human pressing a button. Interrupts are NOT a cure for the fact that you’ve coded some other part of the code with blocking functions like delay. It seems at first like a good idea, but you’ll find out quickly that it would have been much easier to just write non blocking code for things.
Oct 1, 2020 at 19:00 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 3, 2020 at 17:08 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 4, 2020 at 18:27 comment added jsotola see the schematic here ...arduino.stackexchange.com/questions/34054/… .... since you are using Uno WiFi, you do not need a separate interrupt pin .... just bring all rows low ... pressing any key will interrupt on column pins
May 4, 2020 at 16:32 comment added Delta_G Interrupt are great for counting things, but taking human input via interrupt can lead to some really confusing code. You have to start protecting against things getting corrupted because the input comes in the middle of some other part that’s acting on input. The classic example is a button press. This line if(buttonState != oldButtonState && buttonState == LOW) is just fine in most code. But if you use an interrupt to read the button and set buttonState then that line is a huge bug.
May 4, 2020 at 16:24 comment added Juraj Uno WiFi Rev 2 supports external interrupt on every pin, but that is not useful here
May 4, 2020 at 16:21 comment added jsotola you could use diodes to connect all the columns to an interrupt pin ... keep all the rows low .... when any button is pressed, an interrupt is generated ... the interrupt would activate a keyboard scan to determine which key caused the interrupt
May 4, 2020 at 16:19 answer added Majenko timeline score: 1
May 4, 2020 at 16:08 history asked Saqib Ali CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /