![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码技巧
北寒余工作室
这个作者很懒,什么都没留下…
展开
-
NodeMCU测量电压的简单算法
float ADC(char A) { float red = map(analogRead(A), 0, 1024, 0, 3300) - 60; if (red < 0) red = 0; else if (red >= 3240) red = 3300; return red / 1000; }原创 2021-04-01 00:51:27 · 494 阅读 · 0 评论 -
神图!一图搞定Arduino内存结构!!
原创 2021-01-21 17:01:44 · 651 阅读 · 0 评论 -
Python循环+else结构的应用
说起Python的循环,大家都不会陌生,但大家有试过 循环搭配else 的用法吗? 一.质数判断 """ 质数判断 """ inn = input("请输入要判断的数:") scan = int(inn) for x in range(2,scan): if scan%x == 0: print(scan,"不是质数") break else: print(scan,"是质数") ...原创 2020-04-23 00:43:35 · 143 阅读 · 0 评论