Timeline for How to write nonblocking code, for polling sensor at 100 Hz
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 17, 2021 at 21:00 | history | tweeted | twitter.com/StackArduino/status/1427737011578982401 | ||
Jun 23, 2021 at 17:59 | comment | added | Zhelyazko Grudov | it's the BMX160 from Bosch, and I think so. I will experiment with that, but wanted to understand logic of this also. | |
Jun 23, 2021 at 13:43 | comment | added | ScottishTapWater | Can you configure this particular device to use interrupts rather than polling? | |
Jun 23, 2021 at 7:16 | history | became hot network question | |||
Jun 22, 2021 at 19:11 | comment | added | dandavis | 1. static/global; meh, same thing really. 2. it should be 100Hz since you restart the clock before running the task, so it won't jitter unles the task takes longer than 10ms, but if that's the case there's no way it will ever work anyway. | |
S Jun 22, 2021 at 18:35 | vote | accept | Zhelyazko Grudov | ||
Jun 22, 2021 at 13:24 | answer | added | Edgar Bonet | timeline score: 6 | |
Jun 22, 2021 at 12:45 | vote | accept | Zhelyazko Grudov | ||
S Jun 22, 2021 at 18:35 | |||||
Jun 22, 2021 at 12:44 | comment | added | Zhelyazko Grudov | I will experiment with that thank you | |
Jun 22, 2021 at 12:33 | answer | added | chrisl | timeline score: 3 | |
Jun 22, 2021 at 12:19 | comment | added | Dave Newton | If you want to run something at 100Hz you probably want to use a timer interrupt rather than fiddling with delay values. | |
Jun 22, 2021 at 11:47 | comment | added | Juraj♦ | see the BlinkWithoutDelay example. I guess it is easy to modify it from 1 Hz to 100Hz | |
Jun 22, 2021 at 11:37 | history | asked | Zhelyazko Grudov | CC BY-SA 4.0 |