Questions tagged [bbc-microbit]

The BBC micro:bit is a small but yet powerful learning computer for kids and grown ups.

The BBC micro:bit is a small but yet powerful learning computer for kids and grown ups.

https://microbit.org

170 questions
1
vote
1 answer

Adding a different value of the same variable to an array

Using my micro:bit I am trying to add the value of a variable called sendText to an array without overwriting its previous stored value for that variable. input.onGesture(Gesture.Shake, () => { list.push(sendText) binSend = 0 …
greg-bt
  • 71
  • 7
1
vote
1 answer

TypeError: unsupported types for : 'int', 'NoneType' in Python

I am writing a program for a client that receives a string of an average from a server through the built in radio of averages which the client records. I'm getting a TypeError saying: "unsupported types for : 'int', 'NoneType'". Here is my…
bk122474
  • 13
  • 1
  • 4
1
vote
1 answer

Can't import python script from main script for BBC Micro::bit in Mu editor

I'm coding some example in micropython for the BBC Micro::bit. I'm using the Mu editor, which checks the code and flashes it to the board. The thing is, I can't find a way to import my own scripts from the main one. Despite the code check ends…
dvilela
  • 1,200
  • 12
  • 29
1
vote
1 answer

How to make Motors run for 5 seconds in MicroBit

Im creating a car with the microbit. I have all the components running, and the car built. the rear wheels run of DC circuit motors. How would I code in microbit, to make the power supply or the motor only last 5 seconds. Thank you.
Mohamed Ismail
  • 27
  • 2
  • 12
0
votes
1 answer

Is it possible to communicate values to a microbit through a serial port using python?

Unlike the other questions that you may recommend, I am not trying to get the microbit to send me information, I am trying to send information to the microbit. My goal here is to send through three integers in a list to a microbit, specifically…
0
votes
0 answers

Eliminating space around embedded element to website

Here's the code I've had most success with thus far: