E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
0xc0
基于Proteus学习单片机系列(八)——AD转换及其应用--TLC549
主函数#include#defineuintunsignedint#defineucharunsignedchar#includecodeucharseven_seg[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8
点灯师
·
2020-07-05 07:55
单片机
51单片机DS1302时钟芯片简单程序
#include#include#defineucharunsignedchar#defineuintunsignedintdata_7seg[10]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90
天灬缘
·
2020-07-05 06:35
C语言基础
蓝桥杯单片机DS18B20代码注释及部分时序图
代码注释及部分时序图#include#include#defineucharunsignedchar#defineuintunsignedintsbitDQ=P1^4;ucharcodetab[]={
0XC0
,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90,0XBF
喵小橙
·
2020-07-05 00:22
stm32控制共阳数码管以及共阴数码管
共阳数码管#include"stm32f10x.h"u8table[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80};//共阳数码管012345678的编码
lky_ee
·
2020-07-04 22:49
stm32
[51]简单按键计数程序
#includeunsignedintled[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e
echosun1996
·
2020-07-04 15:46
硬件开发
【PROTEUS仿真】使用AT89C51控制AD0809进行采样并显示
include//头文件#defineucharunsignedchar//宏定义无符号字符型#defineuintunsignedint//宏定义无符号整型codeucharseg7code[10]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90
黄豆爸
·
2020-07-04 14:39
Proteus
MCS51
【PROTEUS】AT89C51实现矩阵键盘按键数码管显示
0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40};//CAunsignedcharcodeseg[]={
0xc0
,0xf9,0xa
黄豆爸
·
2020-07-04 14:39
Proteus
MCS51
51单片机之时钟(C语言和汇编两种方式实现)
includetypedefunsignedcharuint8;typedefunsignedintuint16;typedefunsignedlonguint32;//共阳数码管0-9uint8number[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90
chenqiai0
·
2020-07-04 13:23
51单片机
CH579实现HID兼容通信设备类
0x65,0x01,0x00,0x01,0x02,0x01,0x03,0x01};//配置描述符constUINT8MyCfgDescr[]={0x09,0x02,0x29,0x00,0x01,0x01,0x00,
0xC0
,0x01,0x09,0x04
445672671
·
2020-07-04 12:12
wch
wch
usb
单片机4*4按键数码管显示0-9
9#include#defineKEYP1//键盘#defineSEGP0//数码管sbitCOM=P2^0;//数码管comsbitOC=P2^1;//573锁存器charcodeTAB[]={//
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xa7,0xa1,0x84,0x84,0xbf
b305723
·
2020-07-04 11:18
用定时器1控制四位数码管从6432减到6393保持住这个数值,同时用定时器0控制流水灯从上至下以500ms移动同时停止!!!然后流水灯全部闪烁2.4秒后熄灭!继而数码管上显示6666
include#include#defineucharunsignedchar#defineuintunsignedintsbitdula=P2^6;sbitwela=P2^7;ucharcodetab[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e
QIAOSHUXIANG
·
2020-07-04 07:42
用三个独立按键实现按下第一个时计时停止,按下第二个时计时开始,按下第三个时计数值清零从头开始,秒表设计!!!!
defineuintunsignedintsbitdula=P2^6;sbitwela=P2^7;sbitkey1=P3^5;sbitkey2=P3^4;sbitkey3=P3^3;sbitkey4=P3^2;ucharcodetab[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf
QIAOSHUXIANG
·
2020-07-04 07:42
用定时器1设计秒表
#include#defineucharunsignedchar#defineuintunsignedintsbitdula=P2^6;sbitwela=P2^7;ucharcodetab1[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e
QIAOSHUXIANG
·
2020-07-04 07:42
独立按键控制单个数码管显示按键值
#include#defineucharunsignedcharucharkeyvalue;sbitP2_0=P2^0;//数码管位选ucharcodetable[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e
MN番茄W
·
2020-07-04 06:46
51单片机模拟秒表(软件延时)
代码:#include#defineuint8unsignedchar#defineuint16unsignedshortint//数码管段码显示:0~f,不亮uint8codeLED_Disp[]={
0xC0
,0xF9,0xA4,0xB0
Doer Cyrus
·
2020-07-04 05:05
430/51单片机
基于ATmega16单片机 波形发生器 程序源代码
include#include#defineuintunsignedint#defineucharunsignedchar#definecon1000#defineflag=0;uchartable[10]={
0xc0
,0xf9,0xa4,0xb0
GD_Linux
·
2020-07-04 05:05
单片机系统案例程序源代码
利用静态数码管实现从9到0 再从0到9
#includeunsignedcharcodeledchar[]={
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90};#defineledP0voidzs
刘根生
·
2020-07-02 16:10
#太原理工大学机器人团队#51单片机20天学习打卡——Day6
includesbitADDR0=P1^0;sbitADDR1=P1^1;sbitADDR2=P1^2;sbitADDR3=P1^3;sbitENLED=P1^4;unsignedcharcodeLedChar[]={
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0x88,0x83,0xC6,0xA1,0x86,0x8E
BYZ-study
·
2020-07-01 19:35
基于51单片机的DS18B20测温程序与仿真图
段选端口#defineweixuanP2//位选端口unsignedcharcodewxcode[4]={0x01,0x02,0x04,0x08};unsignedcharcodedxcode[10]={
0xc0
,0xf9,0xa
Wan_shibugong
·
2020-07-01 14:30
单片机
python写的具有CRC16生成、校验功能的简单类
crccreatearray是直接返回生成crc的数组,calcrc是校验数组是否符合crc16,返回0表示符合,1表示不符合classcrc16:auchCRCHi=[0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x41,0x01,
0xC0
小索
·
2020-07-01 02:09
KEIL arm C51中常量变量函数的绝对地址设定
keilforarm中:staticconstuint8_ts_acBmpLogo030[len]__attribute__((at(0X800F000)))={0x80,
0xC0
,
0xC0
,
0xC0
,
0xC0
,0x80
wzk456
·
2020-06-29 22:59
编程
51单片机测电压,QT串口接收,并用数码管显示,十六进制转十进制
defineuintunsignedintsbitADC0832_CS=P1^5;sbitADC0832_CLK=P1^6;sbitADC0832_DO=P1^7;unsignedcharSeg_CA_Data[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0
weixin_44961692
·
2020-06-29 15:00
【Kafka】【未解决】kafka反序列化数据报错jackson2 JsonParseException: Invalid UTF-8 middle byte
0xc0
1.背景因为需要windows下进行flink测试,于是在windows下开启kafka,然后拷贝一段数据,使用comsole去发送数据,此时发现数据在解析的时候报错org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParseException:InvalidUTF-8middle
九师兄
·
2020-06-27 18:55
临时栏目
七:SLIP:串行线路IP,压缩的SLIP
下面的规则描述了SLIP协议定义的帧格式:1)IP数据报以一个称作END(
0xc0
)的特殊字符结束。
张芳涛
·
2020-06-27 03:37
理解解释器中的JIT机制
原始代码longadd4(longnum){returnnum+4;}JIT代码0x48,0x89,0xf8,//mov%rdi,%rax0x48,0x83,
0xc0
,0x04,//add$4,%rax0xc3
Dark-Rich
·
2020-06-26 19:59
Operating
System
51单片机抢答器实现
unsignedinti,j;for(i=255;i>0;i--){for(j=n;j>0;j--){}}}voidmain(void){unsignedchari,flag;unsignedchararr[16]={
0xC0
,0xF9,0xA4,0xB0,0x99
我是日蚀之影
·
2020-06-25 04:10
单片机
单片机案例开发——八路抢答器(改动)
#include#defineucharunsignedchar//宏定义#defineuintunsignedintucharcodetable[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0
matsukawahikari
·
2020-06-24 13:31
ATMEGA8(数码管时钟)
#include#defineucharunsignedchar#defineuintunsignedintucharTable[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90
伊斯电子编程
·
2020-06-24 12:20
LED数码管-十六进制码值
unsignedcharNumber[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};//共阴极码值//{
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e
爆板流
·
2020-06-24 00:30
硬件开发与编程设计
关于QByteArray类型数据内容判断警告的问题
以下这种写法程序可以正常运行if((data[7]==0x03)&&(data[8]==
0xc0
))但会提示警告:warning:I
孤飞云逝
·
2020-06-23 11:25
Qt
java基础知识
标识符由数字(0~9)和字母(A~Z和a~z)、美元符号($)、下划线(_)以及Unicode字符集中符号大于
0xC0
的所有符号组合构成(各符号之间
echso。。
·
2020-05-19 11:00
静态数码管(2016-04-04)
简单程序#include#defineGPIO_DIGP0voiddelay(unsignedintc);unsignedcharcodechar_table[11]={
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0x88
aiyolo
·
2020-02-08 03:48
Modbus CRC16 校验计算函数
//CRC高位字节值表staticconstuint8_tauchCRCHi[]={0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x41,0x01,
0xC0
,0x80,0x41,0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x4
阿坦
·
2019-12-31 09:00
数码管动态显示——锁存器
2、程序设计:#includesbitP3_0=P3^0;codeunsignedcharseven_seg[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xbf
怀梦想,致远方
·
2019-10-04 23:00
数码管动态显示——74HC04
2、程序设计:#includecodeunsignedcharseven_seg[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xbf,0xff
怀梦想,致远方
·
2019-10-04 22:00
Lua中获取utf8字符串长度的方法和自定义函数
编码字符串正确长度的方法--@paramstr--@returnnumberfunctionutfstrlen(str)locallen=#str;localleft=len;localcnt=0;localarr={0,
0xc0
,0xe0,0xf0,0xf8,0xfc
·
2019-09-23 21:48
Lua获取utf8字符串长度和字符串截取并用...代替
编码字符串正确长度的方法--@paramstr--@returnnumberfunctionutfstrlen(str)locallen=#str;localleft=len;localcnt=0;localarr={0,
0xc0
,0xe0,0xf0,0xf8,0xfc
·
2019-09-23 21:10
[转] UTF-8 字符数字统计的原理 0x80和
0xC0
from:http://blog.sina.com.cn/s/blog_7c4f3b160101dv4p.html最近在公司看代码,看到一个字符串长度统计的代码,如下intcalcLen(constchar*_str){intn=0;charch=0;while((ch=*_str)){CC_BREAK_IF(!ch);if(0x80!=(0xC0&ch)){++n;}++_str;}return
凌波微步_Arborday
·
2019-07-18 09:00
查表法的CRC8和CRC16程序
//CRC高位字节值表constuint8_tauchCRCHi[]={0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x41,0x01,
0xC0
,0x80,0x41,0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x41,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,
0xC0
,0x80,0x41,0x01
qlexcel
·
2019-07-11 23:05
MCU
算法
蓝桥杯之临时抱佛脚(3)
省赛考过所以再次考的概率不高下面的代码是我从实验室一位大佬那么学习的超声波模块#include"config.h"sbitSonic_Txd=P1^0;sbitSonic_Rxd=P1^1;u8LedChar[]={
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90
奔跑吧_自己
·
2019-05-22 23:01
蓝桥杯抱佛脚
go语言-数组指针
首先交代一下基本概念:数组指针:指的是一个指针,只不过这个指针指向了一个数组eg:vararr[5]int=[5]int{1,2,3,4,5};varp*[5]int=&arr;fmt.Println(p);//
0xc0
hahachenchen789
·
2019-04-21 10:07
Go语言学习
USB设备插拔消息响应,获取VIDPID
DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00,
0xC0
ADA_Ivan
·
2019-04-16 14:20
C++
苹果iPhone语音备忘录M4A录音文件损坏显示时长无法播放修复案例
0xc0
qq2842910583
·
2019-03-29 11:20
底层练习~~~~~
一些注意事项啊~~代码参考:底层练习1.数码管:{
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0x88,0x83,0xC6,0xA1,0x86,0x8E
ReRrain
·
2019-03-16 18:39
蓝桥备赛
基于单片机的电子钟程序设计与调试
include“reg52.h”#include“ds1302.h”#include“ds18b20.h”#defineu8unsignedchar#defineu16unsignedcharu8duan[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xbf
电子小白菜
·
2019-03-13 15:05
蓝桥杯赛题答案
CT107D蓝桥杯单片机数码管代码
1、静态/*#includeunsignedcharcodetab[]={
0xc0
,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xbf,0xff};voiddelayms
nuist_yyx
·
2019-03-09 22:04
单片机
重温按键之长按键(完整代码加注释)~
includetypedefunsignedcharu8;//0-255typedefunsignedintu16;//0-65535typedefunsignedlongu32;u8LedChar[]={
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0x88,0x83,0xC6,0xA1,0x86,0x8E
ReRrain
·
2019-03-07 12:38
蓝桥备赛
SEG
//SEG.h//u8SEG_code[]={
0xC0
,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90,0xBF};//共阳管码表(10=-)u8SEG_buff
JRK_csdn
·
2019-02-18 16:45
蓝桥杯单片机
蓝桥单片机
java实现crc16校验算法(查表法)
java代码://CRC高位字节值表staticbyte[]auchCRCHi={(byte)0x00,(byte)0xC1,(byte)0x81,(byte)0x40,(byte)0x01,(byte)
0xC0
꧁焚忆☞肆寒꧂
·
2019-01-30 14:05
笔记
JAVA中byte为负数处理
java中一定有人遇见过byte取值为负数情况,比如
0xc0
对应的值-64,其实应该是192,这里就需要我们转化处理/***Description:负数byte转正int**@authordsn*@date2018
dsn727455218
·
2018-12-29 15:28
java
攻城狮的日常
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他