xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

BBC micro:bit All In One

BBC micro:bit All In One

image

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

microbit

https://microbit.org/

https://microbit.org/get-started/first-steps/set-up/

https://microbit.org/code/

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

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

https://microbit.org/get-started/home-learning/

zh-cn

https://microbit.org/zh-cn/

https://microbit.org/zh-cn/get-started/first-steps/introduction/

https://microbit.org/zh-cn/code/

https://microbit.org/zh-cn/get-started/user-guide/overview/

https://microbit.org/zh-cn/get-started/home-learning/

tutorials

https://microbit.org/get-started/home-learning/

  1. Connect your micro:bit to your computer or mobile device.

If you're using a computer, you need a micro USB cable to connect to your micro:bit to your computer's USB socket
If you're using a phone or tablet, use Bluetooth to connect your micro:bit wirelessly

https://microbit.org/get-started/first-steps/set-up/#connect

  1. There are two ways to transfer your program from a computer:

Drag and drop is like copying a downloaded file from your computer to a USB memory stick.
It works on any computer.

Direct flashing sends your program from the code editor direct to your micro:bit.
It works on any computer in two popular web browsers.

$ df -h
Filesystem               Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1s5s1          233Gi   11Gi  101Gi    10%  348574 1057355200    0%   /
devfs                   196Ki  196Ki    0Bi   100%     678          0  100%   /dev
/dev/disk1s2            233Gi  3.1Gi  101Gi     4%    1380 1057355200    0%   /System/Volumes/Preboot
/dev/disk1s4            233Gi  1.0Gi  101Gi     1%       1 1057355200    0%   /System/Volumes/VM
/dev/disk1s6            233Gi   57Mi  101Gi     1%     716 1057355200    0%   /System/Volumes/Update
/dev/disk1s1            233Gi  116Gi  101Gi    54% 3231364 1057355200    0%   /System/Volumes/Data
map auto_home             0Bi    0Bi    0Bi   100%       0          0  100%   /System/Volumes/Data/home
/dev/disk1s5            233Gi   11Gi  101Gi    10%  349477 1057355200    0%   /System/Volumes/Update/mnt1
msdos://disk2/MICROBIT   64Mi   20Ki   64Mi     1%       1          0  100%   /Volumes/MICROBIT

$ cd  /Volumes
➜  /Volumes ls
MICROBIT     Macintosh HD
➜  /Volumes 

test

microbit-Flashing-Heart.hex


// "use strict";

/**
 *
 * @author xgqfrms
 * @license MIT
 * @copyright xgqfrms
 * @created 2023-04-01
 * @modified
 *
 * @description
 * @description
 * @difficulty Easy
 * @time_complexity O(n)
 * @space_complexity O(n)
 * @augments
 * @example
 * @link https://www.cnblogs.com/xgqfrms/p/17263402.html
 * @solutions
 *
 * @best_solutions
 *
 */

// const log = console.log;

basic.forever(function () {
  basic.showLeds(`
    . # . # .
    # . # . #
    # . . . #
    . # . # .
    . . # . .
  `)
  basic.showLeds(`
      . . . . .
      . . # . .
      . # # # .
      . . # . .
      . . . . .
  `)
})


#!\usr\bin\env python3

# coding: utf8

def on_forever():
  basic.show_leds("""
    . # . # .
    # . # . #
    # . . . #
    . # . # .
    . . # . .
  """)
  basic.show_leds("""
    . . . . .
    . . # . .
    . # # # .
    . . # . .
    . . . . .
  """)
basic.forever(on_forever)


https://makecode.microbit.org/#editor

image

image

连接您的 micro:bit…
Pair your micro:bit to the computer by selecting 'BBC micro:bit CMSIS-DAP' or 'DAPLink CMSIS-DAP' from the popup that appears after you press the 'Next' button below.

image

连接失败
We couldn't find your micro:bit. Here's a few ways to fix that:
Image connecting micro:bit to a computer
检查您的 micro:bit 连接到计算机的 USB 数据线。
Image depicting the firmware of micro:bit
确保您的 micro:bit 固件是 0249 以上版本。
了解更多关于固件的信息。

https://makecode.microbit.org/device/usb/webusb/troubleshoot

已连接到 micro:bit
您的 micro:bit 已连接!点击 '下载' 将自动复制您的代码到您的 micro:bit。

如果您需要取消与 micro:bit 的配对,您可以点击‘下载’按钮旁边的…菜单

image

image

demos

Microsoft MakeCode for micro:bit

// "use strict";

/**
 *
 * @author xgqfrms
 * @license MIT
 * @copyright xgqfrms
 * @created 2023-04-01
 * @modified
 *
 * @description XYZ
 * @description
 * @difficulty Easy
 * @time_complexity O(n)
 * @space_complexity O(n)
 * @augments
 * @example
 * @link https://www.cnblogs.com/xgqfrms/p/17263402.html
 * @solutions
 *
 * @best_solutions
 *
 */

// const log = console.log;

basic.forever(function () {
    basic.showLeds(`
      # . . . #
      . # . # .
      . . # . .
      . # . # .
      # . . . #
  `)
    basic.showLeds(`
      # . . . #
      . # . # .
      . . # . .
      . . # . .
      . . # . .
  `)
    basic.showLeds(`
      # # # # #
      . . . # .
      . . # . .
      . # . . .
      # # # # #
  `)
})

https://microbit.org/projects/do-your-bit/

MakeCode

https://makecode.microbit.org/

https://www.youtube.com/@MicrosoftMakeCode

Microsoft MakeCode Arcade

https://arcade.makecode.com/

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

https://en.wikipedia.org/wiki/Micro_Bit

https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=micro%3Abit

https://www.cnblogs.com/xgqfrms/p/17261187.html



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-03-27 22:58  xgqfrms  阅读(65)  评论(4编辑  收藏  举报