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
votes
1 answer

Microbit python variables issue

I'm trying to make a higher or lower game for my sisters microbit and am having problems with my variables random_int & r_number: from microbit import * import random random_int = random.randint(0, 9) r_number = 7 while True: …
-2
votes
1 answer

Python - syntax error with ADS101X ADC library

I'm using (new to me) Microbit python V2 with Adafruit_ADS1X15 library. After flashing to the microbit the serial output shows Traceback (most recent call last): File "__main__", line 4 SyntaxError: invalid syntax MicroPython v1.9.2-34-gd64154c73…
keble
  • 93
  • 1
  • 11
-2
votes
1 answer

I am having an error I cannot seem to fix on my microbit (line 55 type error 'none type' object is not subscriptable)

My code is for a game I am attempting to create, but the bottom of the code is continuously bringing up an error. I have left a copy of the code here, could you please help? The error is on line 55 [display.scroll ("You were slain...")] from…
-2
votes
2 answers

bbc micro bit radio string broadcast

I have some really simple code, which I want to build up to detect button presses and then send out the button status using the radio function. But I cannot get the code to work, I thought setting the string with a fix text and then broadcast using…
Brendon
  • 123
  • 9
-6
votes
1 answer

Why argument accept "text" but not string variable?

I am trying to combine integers x y z from an accelerometer on microbit into a string and then send it to serial port. I am using c++ in online mbed compiler here with the microbit DAL library. uBit.init(); uBit.serial.baud(115200); MicroBitI2C i2c…
1 2 3
11
12