-
-
... Terminalbuses(i,1)=0; Intermediatebuses(i,1)=0; end co=0;in=0; for i=1:sizl(1,1) for j=1:sizl(1,1) if (i~=j)&&(ldata(i,2)==ldata(j,1)) &nb...
-
-
ds18b20#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
sbit DQ=P3^7;//ds18b20与单片机连接口
sbit RS=P3^0;
sbit RW=P3^1;
sbit EN=P3^2;
unsigned char code str1[]={"temperature: "};
unsigned char code str2[]={" &...
-
-
...显示拨码开关编码开关控制报警器按键发音播放一段音乐INT0中断计数INT0中断控制LEDINT0及INT1中断计数TIMER0控制单只LED闪烁TIMER0控制流水灯TIMER0控制四只LED滚动闪烁TIMER0控制LED二进制计数TIMER0与TIMER1控制条形LED10秒的秒表用计数器...
-
-
lcd-12864应用#include <reg51.h>
#include <intrins.h>
typedef unsigned int WORD;
const WORD code encoding_00[] = //神
{
0x0208, 0x0108, 0x0089, 0xffce, 0x00a8, 0x0318, 0x0000, 0x07f8,
0x0248, 0x0248, 0xffff, 0x0248, 0x0248, 0x07f8, 0x0000, 0x0000,
0x0000, 0x0040, 0x00...
-
-
自行车测速仿真 #include "d:\c51\reg51.h"
#include "d:\c51\intrins.h"
sbit LCM_RS=P3^0;
sbit LCM_RW=P3^1;
sbit LCM_EN=P3^7;
#define BUSY 0x80 //常量定义
#define DATAPORT P1
#define uchar unsigned char
#define uin...
-
-
...lo_close,
.unlocked_ioctl = hello_unlocked_ioctl,
};
static int hello_drv_init(void)
{
int ret;
ret = pci_register_driver(&hello_driver);
if (ret < 0) {
printk("failed: pci_register_driver\n");
return ret;
}
...
-
-
...widgets Code
#include <QApplication>
#include "dduiqrwidgets.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
DDuiQRWidgets w;
w.resize(400,100);
w.show();
w.setQrSaveFile("xxx.png");
return app.exec();
}用到得属性:qrData (QtQuick1...
-
-
... Terminalbuses(i,1)=0; Intermediatebuses(i,1)=0; end co=0;in=0; for i=1:sizl(1,1) for j=1:sizl(1,1) if (i~=j)&&(ldata(i,2)==ldata(j,1)) &nb...
-
-
AD0832设计的电压表32X16点阵显示#include <intrins.h>
#include <reg52.h>
#include <stdio.h>
#define ulong unsigned long
#define uint unsigned int
#define uchar unsigned char
uchar k,i,j;
float l;
sbit sw=P3^0; //159选通开关
sbit ADCS =P3^1...
-
-
...tor.
*/
private int binarySearch(int[] a, int x) {
//Uses binary search algorithm to search the accessory items
Arrays.sort(a);
...