摘要: oled屏幕模块似乎是厂家提供的 也许可以根据屏幕驱动芯片去写 根据现在了解的芯片一般有两个:SH1106和SSD1306 不过这次我们用的是SSD1306芯片驱动的屏幕 下面是从裸屏到模块的pcb: 有上面的图可以看出,虽然是双色,但是只是底子不同罢了,其实还是单色的. 下面是51单片机的程序: 阅读全文
posted @ 2018-07-04 21:22 GXTon 阅读(1935) 评论(0) 推荐(0)
摘要: 列表:数组,矩阵 元组 映射:字典 集合 阅读全文
posted @ 2018-07-04 10:51 GXTon 阅读(130) 评论(0) 推荐(0)
摘要: 把iteritems改为items 阅读全文
posted @ 2018-07-04 10:29 GXTon 阅读(2042) 评论(0) 推荐(0)
摘要: 摘自:http://www.runoob.com/python/python-func-sorted.html sortedClassCount=sorted(classCount.items(),key=operator.itemgetter(1),reverse=True) #把'iterite 阅读全文
posted @ 2018-07-04 10:27 GXTon 阅读(418) 评论(0) 推荐(0)
摘要: 摘自:https://www.cnblogs.com/yushuo1990/p/5880041.html argsort函数argsort函数返回的是数组值从小到大的索引值 Examples One dimensional array:一维数组 >>> x = np.array([3, 1, 2]) 阅读全文
posted @ 2018-07-04 09:55 GXTon 阅读(7434) 评论(0) 推荐(0)
摘要: 摘自https://blog.csdn.net/ikerpeng/article/details/17026011 其实python中sum有两种 一种是python自己的sum 另一种是python的numpy库里的sum 阅读全文
posted @ 2018-07-04 09:44 GXTon 阅读(1265) 评论(0) 推荐(0)
摘要: tile函数位于python模块 numpy.lib.shape_base中,他的功能是重复某个数组。比如tile(A,n),功能是将数组A重复n次,构成一个新的数组,我们还是使用具体的例子来说明问题:(至于为什么是在numpy.lib.shape_base中,我还是不太清楚.) 其实tile就是重 阅读全文
posted @ 2018-07-04 09:36 GXTon 阅读(6508) 评论(0) 推荐(0)