- 一、题目要求
- 二、代码操作
-
- 2.1 main.c
- 2.2 onewire.c
- 三、PWM示波器测试
-
- 3.1 PWM20%输出波形
- 3.2 PWM30%输出波形
- 3.3 PWM70%输出波形
- 附、一些感悟
#include#include "onewire.h" #define uchar unsigned char #define uint unsigned int uchar code SMG_duanma[19] = {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90, 0x88,0x80,0xc6,0xc0,0x86,0x8e, 0xbf,0x7f,0xFF};//分别是0-9(对应下标),A-F



