Search found 2 matches
- Wed May 30, 2018 11:14 am
- Forum: ESP8266 boards
- Topic: disable_irq for inline assembler has time limits.
- Replies: 2
- Views: 1905
Re: disable_irq for inline assembler has time limits.
The code is diagnostic. Inline assembler is probably not the best way to blink an led. Without disabling the interrupts I was struggling to get a long enough blink to see the intervals. With disable_irq() (suggested by your viper example) I was able to get a sequence of visible blinks but the code s...
- Tue May 29, 2018 9:27 pm
- Forum: ESP8266 boards
- Topic: disable_irq for inline assembler has time limits.
- Replies: 2
- Views: 1905
disable_irq for inline assembler has time limits.
I have been playing with Roberthh's inline assembler code sample https://forum.micropython.org/viewtopic.php?f=18&t=4238&start=10 to blink the onboard blue led on GPIO2. I can have more blinks or longer flashes, but not both: disable_irq() helped increase the duration but too many loops and the boar...