收不到激活邮件的说明
由
shaoziyang »
2024年 2月 3日 16:27
» 位于
社区公告
有网友反映注册账号后一直收不到激活邮件,无法激活账号和登陆。因为社区的邮件服务器在阿里云,可能对腾讯和网易邮箱不太友好。如果遇到这个问题,大家可以给管理员发邮件,附上用户名和邮箱,管理员会帮助激活账号。
shaoziyang@mail.micropython.org.cn
0 回复总数
627 阅读次数
最新文章 由 shaoziyang
2024年 2月 3日 16:27
社区资源
由
shaoziyang »
2019年 10月 25日 15:51
» 位于
参考资料
中文教程
pybCN
MicroPython固件
MicroPython例程
microbit驱动库
micropython驱动库
makecode扩展
MakeCode Arcade 游戏合辑
趣味程序
性能测试对比
社区网盘 ( 暂停使用 )
知识库
Joplin 真正便携版
个人随身网盘 KodStick
注
gitee上的更新可能晚于github
...
0 回复总数
33752 阅读次数
最新文章 由 shaoziyang
2019年 10月 25日 15:51
用Microbit制作的多节点动态胸章
由
shaoziyang »
2019年 11月 8日 09:21
原帖作者: imhori
来源: Independent Badge for DEFCON 25 developed on the BBC micro:bit platform
注意:以下内容未经测试, (DEFCON 25:第25届世界骇客大赛会议, 作者参加此会议提到从骇客观点看网路节点安全性问题)
MicroPython的在这里的用处:
启动后显示 '/r/defcon' 和 骷颅动画
按住 A+B 和其他胸章配对
使用 radio 和感应器形成呼叫网路
接收呼叫通知在屏幕(扬声器或是耳机发声)
程序代码和说明请参考上面的链接。
0 回复总数
1970 阅读次数
最新文章 由 shaoziyang
2019年 11月 8日 09:21
PXT 的蓝牙 midi 服务
由
shaoziyang »
2019年 11月 8日 09:17
整理自:
功能 :将microbit作为一个蓝牙 midi 外设,可以实现如电子琴、钢琴等功能。
使用方法 :在PXT中添加“bluetooth start midi service”积木块。microbit需要和手机配对。
限制 :仅支持iOS
完整源码:
0 回复总数
2118 阅读次数
最新文章 由 shaoziyang
2019年 11月 8日 09:17
0 回复总数
2019 阅读次数
最新文章 由 shaoziyang
2019年 11月 8日 09:16
用microbit遥控BitBot小车
由
shaoziyang »
2019年 11月 8日 09:14
前一段时间在微信订阅号中介绍了国外的BitBot小车,今天尝试了小车的控制,用另外一个microbit作为遥控器,通过无线方式进行控制,通过遥控器(microbit)上的加速度传感器,可以灵活的实现前进、后退、转弯等动作,十分有趣。
bitbot-1.jpg
参考程序:
遥控器 from microbit import *
import radio
radio.on()
cnt = 0
a=b=0
start=0
while 1:
if button_a.was_pressed():
start=1
print('start')
if button_b.was_pressed():
start=0
...
0 回复总数
2109 阅读次数
最新文章 由 shaoziyang
2019年 11月 8日 09:14
bit:bot 遥控器
由
shaoziyang »
2019年 11月 7日 23:03
转自:
DIY一个bit:bot小车的蓝牙遥控器
On Startup
It is always nice to have a message display on startup so you know you have the correct program loaded up. E.g.
On Bluetooth Connection
Set pins to a known state and display a message so you know the connection has been successful
On Bluetooth Disconnection
When we disconnect then make sure everything is off...
0 回复总数
2083 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 23:03
0 回复总数
1985 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 23:01
microbit摩尔斯码发报机
由
shaoziyang »
2019年 11月 7日 22:56
使用多个microbit,利用无线方式发送摩尔斯码。
用B键(或者用pin2做触摸键)发送信号。pin0控制蜂鸣器,pin1控制马达。A键显示或清除显示。 ##########################
# v 1.0 Initial Public Release
# This is a working CW Radio. 'B' is key. 'A' shows message received in text.
# Connect Speaker or Headphones to Pin 0 and Ground
# Or connect Piezo Buzzer or Haptic Motor for Silent operation to pin1 and ground
# ...
0 回复总数
2071 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 22:56
在microbit上使用自定义BLE服务
由
shaoziyang »
2019年 11月 7日 21:53
microbit带有了一系列自定义的BLE功能,它是通过 C++ in the Lancaster DAL 和微软的MakeCode(原PXT)实现的。
内置的服务包括了传感器、GPIO和microbit的其它功能。当然这还不够,我们将展示如何为microbit构建、打包和推出您自己的自定义服务。
完整内容请参考: ... th-micro-bit-6c9879
0 回复总数
2147 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 21:53
0 回复总数
2203 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 21:51
在MicroPython中用面向对象方法控制microbit显示
由
shaoziyang »
2019年 11月 7日 16:06
翻译自: ... edge-using-o-o.html
据拉里·沃尔(一位非常著名的程序员)说,懒惰是一种美德。懒惰的程序员提出节省劳力的解决方案。
如果你想节省自己和别人的时间,让micropython代码易于重复使用、阅读。
本文假设您已经熟悉对象、类和组合的概念,并且知道如何用Python编写类定义。如果您不熟悉Python的对象定位(O O),您可能会发现代码很难遵循。我在本文后面对O作了简短的介绍。
有几种学习Python的方法。这里有一个“ 官方 ”教程,但是我不确定初学者是否会觉得很容易理解。有 一本看起来不错的书 。它需要大量的时间和金钱投入,但是我认为如果你需要提高你的Python技能是值得的。...
0 回复总数
2200 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 16:06
Eddystone 信标器
由
shaoziyang »
2019年 11月 7日 14:20
翻译自: ... he-micro-bit-55db34
Eddystone 信标器是物理网络的基石。使用 编辑器,可以轻松的将你的microbit变为一个信标器。
发射信标的积木块位于蓝牙包中。一旦将该包添加到项目中,就可以将蓝牙块拖到start块上。此外我们还将LED作为一个指标灯。
您还可以切换到JavaScript模式并直接输入代码。 bluetooth.advertiseUrl( 7, false)
led.plot(2, 2)
调整连接设置
默认情况下,microbit配置为需要配对。在项目设置可以设置为不安全的连接方式。
0 回复总数
2215 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 14:20
用 Micro:bit 驱动 Adafruit 4x14 段码显示器
由
shaoziyang »
2019年 11月 7日 14:13
整理自: ... 14-segment-i2c.html
Adafruit 4x14段码显示器使用了 I2C 接口的 HT16K33 控制器,可以方便的用 microbit 的I2C驱动。
14-seg beer.JPG
HT16K33 控制器的主要命令有:
0x21 启动振荡器
0x80 清除显示
0x81 发送 RAM 数据到显示器
0x83 显示器以 2Hz 频率闪烁
0xE0 Dim the display
0xEF 设置最大亮度
显示字符时,我们需要写数据到HT16K33的 RAM,然后将数据发送到显示器。因为我们总是一次发送四个显示器的数据,在切换HT16K33...
0 回复总数
2012 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 14:13
用microbit进行乒乓球无线对战
由
shaoziyang »
2019年 11月 7日 12:46
翻译自 :
我喜欢microbit上Python的无线功能,并且我在 8年级班 上获得一定的成功。
我想可以尝试用Python编写一个无线乒乓球游戏,但是因为种种原因,我花了比预期更长的时间。我本来想用同样的代码在两个microbit上,但我很快就放弃了,因为这样实现起来太复杂。后来我用一个microbit控制游戏和决定谁得到一分,玩家B是“从机”,只把它的左右移动发给到游戏者A,然后镜显示在玩家A的屏幕上。
我非常希望每个屏幕都是一样的 —— 而不是像我看过的有线版那样扩展一个长屏幕。这是因为我希望每个玩家都能相距足够远,所以看其他玩家的屏幕就是不必要的。
怎样玩
使用 Mu 将玩家A的程序写到一个 microbit 中,而玩家B使用另外一个 microbit...
0 回复总数
2129 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 12:46
0 回复总数
2282 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:34
制作会说话的Dalek
由
shaoziyang »
2019年 11月 7日 10:25
来自 :
制作会说话的Dalek(神秘博士中的人物)。平时显示一个笑脸,按下A键显示哭脸,并随机说话。
网站包括了一个在线模拟器,可以直接运行查看效果。
# turn your microbit into a ticklish talking darlek
# connect a speaker to pins 0 and 1
from microbit import *
import speech
import random
# add your own messages to this list
messages =
# loop forever
while True:
# show a happy face until you press A to tickle...
0 回复总数
2161 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:25
0 回复总数
2050 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:18
16个最佳microbit项目
由
shaoziyang »
2019年 11月 7日 10:12
来自:
Motorbike simulator
Micro Traffic Lights
Micro Morse Phone(莫尔斯码电话)
Frustration
Metronome(节拍器)
Flashing heart(闪动的心)
Micro Bit countdown timer(倒计时器)
Micro badge adaptor(胸卡)
Combination Lock(组合锁)
Touch arpeggiator(触摸发声)
Micro Bit step counter(计步器)
Remote selfies(遥控自拍)
LED circuit game
Micro Bit racing game(赛车游戏)
Micro Bit...
0 回复总数
2125 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:12
1up:bit游戏控制器
由
shaoziyang »
2019年 11月 7日 10:09
來自: ... r-bbc-microbit.html Kit contains:
1 x 1up:bit PCB
1 x Thumb slide stick
2 x 12mm tactile switches
2 x 4.7K Ohm resistors
1 x 80 pin right angle edge connector
例程: from microbit import *
import neopixel
np = neopixel.NeoPixel(pin0, 10)
atrest = Image( 00000:
00000:
00900:
00000:
...
0 回复总数
2078 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:09
触摸按键扩展板 Touch pHAT
由
shaoziyang »
2019年 11月 7日 10:08
microbit的触摸按键扩展板 Touch pHAT
from microbit import *
class touchphat:
def __init__(self):
self.SENINPUTSTATUS = 0x03
self.LEDLINK = 0x72
self.LEDSTATUS = 0x74
self.STANDBYCFG = 0x41
self.ADDRESS = 0x2C
self.LEDTRACK = False
self.write_reg(self.LEDLINK,0x00)
sleep(1)
...
0 回复总数
2042 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:08
Kodu 互动编程
由
shaoziyang »
2019年 11月 7日 10:07
Kodu编程瓷砖允许和microbit互动,用户可以使用加速度计控制字符移动、跳转,用按钮控制显示屏幕上的动画和滚动文本,并通过IO引脚与其他设备连接。
Resource. BBC micro:bit and Kodu
Learn programming tiles that allows Kodu and the BBC micro:bit to interact.
Project 1: Capture Love
Create a Kodu World using the BBC micro:bit accelerometer and buttons, wired controller, or keyboard/mouse.
Project 2: Jump
Create a...
0 回复总数
2215 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 10:07
0 回复总数
2098 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 09:58
0 回复总数
2018 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 09:49
多人太空间生存冒险游戏
由
shaoziyang »
2019年 11月 7日 09:46
这是一个模拟8位复古的射击游戏。MicroSpace是一个多人的太空探险,必须保证每个成员生存和发挥重要作用。随着敌人不断的出现,难度越来越大,随着探险的进展,团队需要共同努力,协调他们的防御。
0 回复总数
2121 阅读次数
最新文章 由 shaoziyang
2019年 11月 7日 09:46
0 回复总数
1990 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 21:57
用树莓派控制 microbit 起重机
由
shaoziyang »
2019年 11月 6日 21:53
来自: 用树莓派控制 microbit 起重机1.jpg 用树莓派控制 microbit 起重机2.jpg 用树莓派控制 microbit 起重机3.jpg 用树莓派控制 microbit 起重机4.jpg
0 回复总数
1980 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 21:53
论坛权限
您 不能 在这个版面发表主题 您 不能 在这个版面回复主题 您 不能 在这个版面编辑帖子 您 不能 在这个版面删除帖子 您 不能 在这个版面提交附件