- 博客(19)
- 收藏
- 关注
原创 openmv
clock.tick() img = sensor.snapshot() blobs = img.find_blobs([green_threshold]) if blobs: max_blob = find_max(blobs) if max_blob.cx()>40 and max_blob.cx()<120: x_.
2022-05-09 17:05:57
360
1
原创 蓝桥杯--pcf8591
#include "reg52.h"#include "iic.h"unsigned char code SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e, 0xbf,0x7f};//01234567 89ABCDEF -. .
2022-03-08 19:37:10
100
原创 蓝桥杯--定时器与外部中断综合
数码管显示分-秒-毫秒S5清零 S4暂停/启动#include "reg52.h"void delay(int n) { while(n--) {} }unsigned char code SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,
2022-02-28 19:38:33
85
原创 蓝桥杯学习--外部中断与定时器中断应用
#include "reg52.h"sbit led1 = P0^0;sbit led2 = P0^7;void Init_Hc138(int n) //译码器选择{ switch (n) { case 4: P2=(P2 & 0x1f) | 0x80; break; //让Y4输出低电平 case 5: P2=(P2.
2022-02-28 16:46:14
229
原创 蓝桥杯学习--按键扫描
#include "reg52.h"sfr P4 = 0xc0;sbit R1 = P3^0;sbit R2 = P3^1;sbit R3 = P3^2;sbit R4 = P3^3;sbit C4 = P3^4;sbit C3 = P3^5;sbit C2 = P4^2;sbit C1 = P4^4;unsigned char code SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, .
2022-02-21 02:22:34
248
1
原创 数码管动态显示
从2018年1月开始加#include "reg52.h"int year,month; year=2018; month=0;unsigned char code SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e, 0xbf,0x7f};//012
2022-02-07 20:24:47
509
原创 数码管静态显示
八个数码管单独依次显示0-9,然后所有数码管同时显示0-f,如此循环#include "reg52.h"unsigned char code SMG_duanma[18]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x80,0xc6,0xc0,0x86,0x8e, 0xbf,0x7f};void delay(int n){ .
2022-02-07 18:46:45
1241
空空如也
求帮跑通一个深度学习的项目
2024-05-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人