Search found 4 matches

by joshuachu3
Fri Aug 21, 2020 8:24 am
Forum: micro:bit boards
Topic: Two way serial communication
Replies: 2
Views: 4082

Two way serial communication

Hi, I am trying to input data from my laptop onto the microbit using pyserial, performing some analysis on the data on the microbit, then printing a result into REPL. Is this possible or will there be a clash between the two? Also would it be fast enough, as I need it done in real-time. Thanks
by joshuachu3
Fri Aug 07, 2020 11:35 am
Forum: micro:bit boards
Topic: Double for loop breaks program
Replies: 3
Views: 2899

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: 2899

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: 4812

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?