Search found 4 matches

by rivandemo
Sat Nov 02, 2019 5:53 pm
Forum: micro:bit boards
Topic: ISR code example gives an error on microbit
Replies: 7
Views: 520

Re: ISR code example gives an error on microbit

Thanks a lot Jimmo, I'll try the solution you recommend (sorry for this late answer, i have been busy these last days), and look at the two links you mention (actually i think i already followed the "Grok learning" course). I used the "sleep" function to write this little program "quick and dirty" b...
by rivandemo
Mon Oct 28, 2019 4:57 pm
Forum: micro:bit boards
Topic: ISR code example gives an error on microbit
Replies: 7
Views: 520

Re: ISR code example gives an error on microbit

A few weeks ago i block-coded a simple program for my grandson to show him how to display his name on a microbit when button A was pressed and stopping the display when B was pressed. The issue was that when pressing button A again the display restarted from the beginning and not from the last chara...
by rivandemo
Sun Oct 27, 2019 1:22 pm
Forum: micro:bit boards
Topic: ISR code example gives an error on microbit
Replies: 7
Views: 520

Re: ISR code example gives an error on microbit

Thank you!

Is there any way i can use interrupt (ISR) on a microbit? Iaw could you tell me where i can find documentation about this?

Thanks a lot,
Richard
by rivandemo
Sun Oct 27, 2019 10:09 am
Forum: micro:bit boards
Topic: ISR code example gives an error on microbit
Replies: 7
Views: 520

ISR code example gives an error on microbit

Hello, I found an example of using ISR on this page: https://docs.micropython.org/en/latest/reference/isr_rules.html but when i flash it on my microbit card it generates an error "no module named pyb". Here is the code: import pyb, micropython micropython.alloc_emergency_exception_buf(100) class Foo...