Search found 24 matches

by lujo
Sat Apr 30, 2022 5:43 pm
Forum: micro:bit boards
Topic: firmware for micro:bit clone
Replies: 2
Views: 18993

Re: firmware for micro:bit clone

Hi,

https://microbit.org/get-started/user-guide/firmware/

Download the appropriate hex file and copy that to the micro:bit.
by lujo
Tue Feb 22, 2022 8:25 am
Forum: micro:bit boards
Topic: Maqueenplus
Replies: 6
Views: 25984

Re: Maqueenplus

Hi, This was for the "old" Maqueen, I don't have a Maqueen PLUS. At the time DFRobot did not support MicroPython for the Maqueen. Had to figure this out myself sending i2c commands en observing what happened. From an earlier version of the code: def move(motor = 0, direction = 0, speed = 10): buf = ...
by lujo
Fri Feb 11, 2022 5:38 pm
Forum: micro:bit boards
Topic: radio receive
Replies: 4
Views: 20223

Re: radio receive

Hi,

Code: Select all

run = False

while True:
    if button_a.was_pressed():
        run = not run
        
    if run:
        data = radio.receive()
        if data:
            ...
hth,
lujo
by lujo
Mon Jan 03, 2022 5:36 pm
Forum: micro:bit boards
Topic: Connect Microbit to Computer with Bluetooth or Wifi
Replies: 2
Views: 47856

Re: Connect Microbit to Computer with Bluetooth or Wifi

Hi, Microsoft MakeCode supports Bluetooth BLE on the micro:bit. MicroPython does not. See: https://microbit-micropython.readthedocs.io/en/v2-docs/ble.htm If I want to control a micro:bit from my laptop, I use a second micro:bit connected to the laptop. What follows works with both V1 and V2 micro:bi...
by lujo
Sun Jan 02, 2022 7:12 pm
Forum: micro:bit boards
Topic: Wukong board - Turn motor on for 2 seconds
Replies: 2
Views: 25148

Re: Wukong board - Turn motor on for 2 seconds

Hi, If you set the motor speed, the motor starts running. To stop the motor(s) use the Stop motor or Stop all motor blocks. Maybe you should do this in MicroPython. The typescript source is at https://github.com/elecfreaks/pxt-wukong/blob/master/main.ts. Should be very easy to translate to MicroPyth...
by lujo
Mon Dec 14, 2020 12:27 pm
Forum: micro:bit boards
Topic: Maqueenplus
Replies: 6
Views: 25984

Re: Maqueenplus

Hi,

Try this: go to https://www.dfrobot.com/forum/viewforum.php?f=7 (the Products
forum) and click Robotics. Search for micropython, read the post by nana.wang.

lujo
by lujo
Sun Dec 13, 2020 11:39 pm
Forum: micro:bit boards
Topic: Maqueenplus
Replies: 6
Views: 25984

Re: Maqueenplus

Hi, Check out: https://www.dfrobot.com/forum/viewtopic.php?p=42615&sid=636ac201cf429df75c830eb104e17176#p42615 That did not help me: downloads mu-editor with maqueen library distributed as MS-Windows installer file. No MS-Windows here. So, figured it out by sending bytes to i2c addr, see what happen...
by lujo
Fri Jul 17, 2020 7:08 am
Forum: micro:bit boards
Topic: from machine import Pin
Replies: 3
Views: 4577

Re: from machine import Pin

Hi, MicroPython v1.9.2-34-gd64154c73 on 2017-09-01; micro:bit v1.0.1 with nRF51822 Type "help()" for more information. >>> >>> import microbit >>> [p for p in dir(microbit) if p.startswith('pin')] ['pin0', 'pin1', 'pin2', 'pin3', 'pin4', 'pin5', 'pin6', 'pin7', 'pin8', 'pin9', 'pin10', 'pin11', 'pin...
by lujo
Thu Jun 11, 2020 8:45 am
Forum: micro:bit boards
Topic: GPIO pin dafault settings
Replies: 3
Views: 3319

Re: GPIO pin dafault settings

Hi,

9 pins for GPIO input/output, NO_PULL, PULL_UP, PULL_DOWN,
8 pins control display and buttons (display.on(), display.off()),
2 pins for I2C (accelerometer and compass).

If 9 pins won't do, get a second micro:bit and use the radio
to control the first, get its data and show its messages.