搜索找到 3967 个匹配

shaoziyang
2021年 2月 17日 15:23
版面: 树莓派 PICO
主题: 【RPi PICO】触摸传感
回复总数: 0
阅读次数: 1273

【RPi PICO】触摸传感

来自:https://forum.micropython.org/viewtopic.php?t=9829&p=55021#p55021 从arduino库中移植,使用两个GPIO,一个作为触摸输入,另一个使用1兆欧电阻连接到输入,通过充电时间判断触摸状态。 # touchA.py by CWE from machine import * from utime import * led= Pin(25, Pin.OUT) led.value(0) send= Pin(16, Pin.OUT) # via 1meg resistor connected to touch pad send.val...
shaoziyang
2021年 2月 17日 15:19
版面: 树莓派 PICO
主题: 【RPi PICO】计算Mandelbrot改进版
回复总数: 2
阅读次数: 1463

Re: 【RPi PICO】计算Mandelbrot改进版

不过发现了一个奇怪的问题,在PICO上每次的计算时间会增加,而在其它开发板上不会。
 
shaoziyang
2021年 2月 17日 15:14
版面: 树莓派 PICO
主题: 【RPi PICO】计算Mandelbrot改进版
回复总数: 2
阅读次数: 1463

Re: 【RPi PICO】计算Mandelbrot改进版

效果 -------------------------==================~~~~~~~++}}{>.(|< ++~~~~==========---- ----------------------==================~~~~~~~~+++}}{)(o-<){}++~~~~~~=========-- -------------------==================~~~~~~~~++++}}{>oo: ,>>(}+++~~~~~~========- ----------------=================~~~~~~~~++++++}}}{)...
shaoziyang
2021年 2月 17日 15:14
版面: 树莓派 PICO
主题: 【RPi PICO】计算Mandelbrot改进版
回复总数: 2
阅读次数: 1463

【RPi PICO】计算Mandelbrot改进版

对前一版程序做了修改,使用不同字符代表不同颜色(发散速度),效果更好一些。 from time import ticks_ms, ticks_diff MAX_ITER = 60 MANDEL_CHAR = (     ' ', '.', '`', ',', ':', ';', '|', 'o', '<', '>',     '(', ')', '{', '}', '+', '~', '=', '-', '#', '@' ) def run(func, param = None):     t1 = ticks_ms()     if param == None:         func()...
shaoziyang
2021年 2月 17日 13:13
版面: 聊天室
主题: 农历新年动物精美插图系列
回复总数: 1
阅读次数: 1059

Re: 农历新年动物精美插图系列

https://www.thisiscolossal.com/wp-content/uploads/2021/02/chiao-4-scaled.jpg https://www.thisiscolossal.com/wp-content/uploads/2021/02/chiao-3-scaled.jpg https://www.thisiscolossal.com/wp-content/uploads/2021/02/chiao-5-scaled.jpg https://www.thisiscolossal.com/wp-content/uploads/2021/02/chiao-2-sc...
shaoziyang
2021年 2月 17日 13:12
版面: 聊天室
主题: 农历新年动物精美插图系列
回复总数: 1
阅读次数: 1059

农历新年动物精美插图系列

来自:https://www.thisiscolossal.com/2021/02/ ... -new-year/
费利西亚乔在正在进行的农历新年动物精美插图系列


图片
 
shaoziyang
2021年 2月 16日 22:27
版面: 新闻和动态
主题: micropython更新:2021.2
回复总数: 7
阅读次数: 3351

Re: micropython更新:2021.2

zephyr: Build MicroPython as a cmake target.   zephyr: Remove unused build files.   zephyr: Disable frozen source modules.   py: Expand lists in core cmake custom commands.   zephyr: Update to zephyr v2.5.0.   tools/makemanifest.py: Allow passing option args to include().   tests/extmod: Add test f...
shaoziyang
2021年 2月 16日 21:41
版面: 树莓派 PICO
主题: 【RPi PICO】计算Mandelbrot
回复总数: 1
阅读次数: 1085

Re: 【RPi PICO】计算Mandelbrot

circuitpython版本 from time import monotonic def run(func, param = None):     t1 = monotonic()     if param == None:         func()     else:         func(param)     t2 = monotonic()     print('calc time:', round((t2 - t1)*1000), 'ms') def mandelbrot():     # returns True if c, complex, is in the Mand...
shaoziyang
2021年 2月 16日 21:35
版面: 树莓派 PICO
主题: 【RPi PICO】计算Mandelbrot
回复总数: 1
阅读次数: 1085

【RPi PICO】计算Mandelbrot

将micropython源码中的examples/mandel.py例子修改了一下,用于测试计算性能 from time import ticks_ms, ticks_diff def run(func, param = None): t1 = ticks_ms() if param == None: func() else: func(param) t2 = ticks_ms() print('calc time:', ticks_diff(t2, t1), 'ms') def mandelbrot(): # returns True if c, complex, is in the Man...
shaoziyang
2021年 2月 16日 20:17
版面: 树莓派 PICO
主题: 【RPi PICO】dhylands的一些例程
回复总数: 1
阅读次数: 1281

【RPi PICO】dhylands的一些例程

图片
国外爱好者dhylands写的一些PICO例程。
隐藏内容
你必须登入/注册才可观看隐藏内容