收不到激活邮件的说明
由
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 回复总数
33538 阅读次数
最新文章 由 shaoziyang
2019年 10月 25日 15:51
用 Go 语言 (GOBOT) 控制 microbit
由
shaoziyang »
2019年 11月 6日 21:50
来自:
首先要安装
go get -d -u gobot.io/x/gobot/...
然后可以通过程序控制 package main
import (
os
time
gobot.io/x/gobot
gobot.io/x/gobot/platforms/ble
gobot.io/x/gobot/platforms/microbit
)
func main() {
bleAdaptor := ble.NewClientAdaptor(os.Args )
ubit := microbit.NewLEDDriver(bleAdaptor)
...
0 回复总数
2096 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 21:50
microbit 植物自动灌溉机
由
shaoziyang »
2019年 11月 6日 21:47
来自:
makecode例程,根据土壤的干湿度,给植物自动灌溉。
radio.setTransmitSerialNumber(true)
radio.setGroup(4)
led.setBrightness(64)
let reading = 0
basic.forever(() => {
pins.analogWritePin(AnalogPin.P1, 1023)
reading = pins.analogReadPin(AnalogPin.P0)
radio.sendNumber(reading / 4);
pins.analogWritePin(AnalogPin.P1, 0)
led.plotBarGraph(
reading,
1023
)
if...
0 回复总数
2122 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 21:47
BBC micro:bit RobotCar™ 小车
由
shaoziyang »
2019年 11月 6日 21:23
BBC micro:bit RobotCar™是一个用micrbit控制的4轮小车。
还可以用另外一个选配的microbit做遥控器。
套件清单:
A BBC micro:bit with connecting USB
L298N Motor Shield
A CBiS Education breakout board to connect micro:bit to motorshield
Lithium Powerbank for powering the BBC micro:bit
Strong aluminium chassis
4 x DC geared Motors
4 x Rubber Wheels
Acrylic platform
8 x AA...
0 回复总数
2071 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 21:23
DIY一个虚拟小猫
由
shaoziyang »
2019年 11月 6日 15:46
转自:
Step 1:
Step 2:
Step 3:
Step 4: Attachments
microbit-Virtual-Cat.hex
Download
Step 5:
Step 6:
Step 7:
Step 8:
Step 9:
Step 10:
Step 11:
Step 12:
Step 13:
Step 14:
Step 15:
Step 16:
Step 17:
Step 18:
Step 19:
0 回复总数
2055 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 15:46
0 回复总数
2173 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 15:40
microbit数据记录仪
由
shaoziyang »
2019年 11月 6日 09:57
这个项目演示了用microbit记录数据。这里演示记录了加速度传感器X轴的参数。
microbit数据记录仪.jpg
3 到 8 行 :
初始化变量
10 到 18 行 :
这一部分设置了代码中需要用到的函数。在代码中使用函数是很有用的,因为它可以让你不断重复同样的事情,它使你的代码更加简洁。
一个好的习惯是在函数前添加使用说明;但是离线版的micropython编辑器 Mu 崩溃了 -- 丢失了全部代码 -- 包含了一些代码的说明。我不知道再次发生这个问题前可以保留多少说明,所以我的代码中没有任何注释。
函数目的:
readData 打开文件
writeData 写入文件; 它不是替换方式,而是追加方式写入。完成后会自动关闭文件。
20 到 27 行 :
启动...
0 回复总数
2038 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:57
数十个 microbit 项目和想法的集合
由
shaoziyang »
2019年 11月 6日 09:55
来自:
数十个项目和想法的集合,用以激发学生的创意。可以随意使用和分享这些想法,但请注明出处网站。
使用温度传感器
使用磁场传感器寻找北方
使用加速度传感器检测方向
使用LED检测光线强度
简易数据记录仪
铁环游戏
LCD 1602 驱动
驱动外部 LED
用C++写 Hello World
用C++驱动按键
用C++驱动LED
射击游戏
用Mbed开发microbit
开发石头剪刀布游戏
通过蓝牙传数据(C++)
通过串口发数据(JS)
串口输出CVS格式数据(JS)
使用串口(mpy)
控制NeoPixel彩灯
射击游戏(PXT)
NeoPixel彩灯(PXT)
无线控制小车(PXT)...
0 回复总数
2014 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:55
黄手套(骇客马拉松项目)
由
shaoziyang »
2019年 11月 6日 09:46
这是Agnieszka Wasikowska和Cameron MacLeod在stirhack 2017上的黑客马拉松项目。该项目由一个橡胶手套,手指上附有按钮。按键是microbit控制。
黄手套(骇客马拉松项目).jpg
0 回复总数
2290 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:46
吉他调音器
由
shaoziyang »
2019年 11月 6日 09:43
来自:
虽然已经有不少类似的东西,但是用microbit更容易。
程序
0 回复总数
1936 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:43
0 回复总数
1946 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:41
0 回复总数
2003 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:39
0 回复总数
1988 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:37
microbit 电子音乐
由
shaoziyang »
2019年 11月 6日 09:35
来自 : The FaderPhone microbit musical instrument
from microbit import *
import music
while True:
fader_reading = pin1.read_analog()
display.scroll(str(fader_reading),wait=False)
music.pitch(fader_reading, 100)
music.pitch(fader_reading+100, 100)
music.pitch(fader_reading+200, 100)
from microbit import *
import music
c = 131
e =...
0 回复总数
2056 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:35
0 回复总数
2013 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:23
0 回复总数
2039 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:20
0 回复总数
2065 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:18
控制复古的LED显示屏
由
shaoziyang »
2019年 11月 6日 09:17
来自:
LED屏
控制复古的LED显示屏1.jpg
原理图
控制复古的LED显示屏2.jpg
效果
控制复古的LED显示屏3.jpg
程序 from microbit import *
pins =
while True:
0#
pin0.write_digital(0)
pin1.write_digital(0)
pin2.write_digital(0)
pin8.write_digital(0)
1#
pin0.write_digital(1)
pin1.write_digital(0)
pin2.write_digital(0)
pin8.write_digital(0)
...
0 回复总数
2014 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:17
0 回复总数
1966 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:15
用 microbit 测速
由
shaoziyang »
2019年 11月 6日 09:13
来自:
作为我们最近的代码俱乐部课程的一部分,我们一直在研究 如何使用microbit来测量加速度 。
microbit有许多不同的方法来测量加速度,似乎我们应该进入自己的梦幻般的超音速追赶线路比赛,涉及从一个工具包,包含一个泡沫块构建两轴四轮车,然后参加一个比赛日,军队参加和消防车使用真正的火箭轨道!
你可以在这里找到更多关于 在路竞赛 的信息,或者看下面的短片,如果你只是想看到最令人兴奋的地方!
在我们参加比赛之前,我希望能够测试赛车,并让学生们了解他们行驶的速度。实际的比赛日为参赛队的提供正式设计的高速门(见下文) – 但我不想买一个,所以我开始使用microbit 来 DIY!
用 microbit 测速1.jpg ...
0 回复总数
2162 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:13
microbit在SSD1306上模拟7段数码管显示
由
shaoziyang »
2019年 11月 6日 09:06
在SSD1306 OLED上,模拟显示数码管。支持4个数字和中间的冒号(可选)。
microbit_timer.jpg
7-segment.png
from ssd1306_7seg import initialize, disp_num
initialize(1,1)
disp_num(1306)
0 回复总数
2124 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:06
0 回复总数
2045 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 09:00
0 回复总数
2018 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 08:58
0 回复总数
2029 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 08:56
将 microbit 作为滑动控制器( slide clicker)
由
shaoziyang »
2019年 11月 6日 08:54
installation 1. follow instructions to install bbc-microbit
Make sure to follow the instructions for noble too.
2. install microclicker globally with npm npm install microclicker --global
development installation
follow instructions to install bbc-microbit
install dependancies npm install or yarn
usage
turn microbit off
run sudo node...
0 回复总数
1975 阅读次数
最新文章 由 shaoziyang
2019年 11月 6日 08:54
0 回复总数
2706 阅读次数
最新文章 由 shaoziyang
2019年 11月 5日 23:02
论坛权限
您 不能 在这个版面发表主题 您 不能 在这个版面回复主题 您 不能 在这个版面编辑帖子 您 不能 在这个版面删除帖子 您 不能 在这个版面提交附件