Search found 3 matches

by joshuachu3
Fri Aug 07, 2020 11:35 am
Forum: micro:bit boards
Topic: Double for loop breaks program
Replies: 3
Views: 53

Re: Double for loop breaks program

Hmm yeah that's what I thought but wouldn't it display a memory error if that was the case? Nothing shows up on the display.
by joshuachu3
Fri Aug 07, 2020 9:33 am
Forum: micro:bit boards
Topic: Double for loop breaks program
Replies: 3
Views: 53

Double for loop breaks program

I am trying to create a list using a double for loop, when I run it by itself it works fine, but when I run it with the rest of my code, nothing happens and the REPL in mu editor stops working. When I take the double for loop out and paste the whole list in it also works fine, so the rest of my code...
by joshuachu3
Fri Jul 17, 2020 6:18 am
Forum: micro:bit boards
Topic: from machine import Pin
Replies: 3
Views: 309

from machine import Pin

Hi,
I'm trying to import Pin from machine but get the error cannot import name Pin. I am trying to write a event handler for when there is a rising edge, is there any other way to do this?