搜索结果
找到约 908 项符合
Max-Int 的查询结果
单片机编程 红外解码程序
/*
 * _168ZHONGDUAN2.c
 *
 * Created: 2014/11/2 15:12:45
 *  Author: lenovo
 */ 
#include <avr/io.h>
#include <avr/iom168pa.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/eeprom.h>
//#include <util/delay_basic.h>
//unsigned char const SEGtabl ...
单片机编程 AVR单片机转速表
/****************************************************************&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 外部晶振8M&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PA0~3:四位数码管的位选&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PB0~7:数码管 ...
单片机编程 LED电压表源代码
#include "stm8s103f.h"
#include "LEDBL.h"
#include "UART1.h"
#include "LCD1621.h"
//#include "KEY.h"
#define uchar unsigned char
#define uint unsigned int
_Bool KEYC @PB_IDR:4;//COPY
_Bool KEYP @PC_IDR:6;//POW
uint ShowMode = 1;
Linux/uClinux/Unix编程 c语言程序源
#include <iostream>
using namespace std;
class Student
{
public:
Student(int, int);
int num;
int grade;
};
Student::Student(int n, int g)
{
num = n;
grade = g;
}
int maxGradeIndex(Student* s)
{
int maxGrade, index = 0, i = 0;
maxGrade = s[0].grade;
for (i = 0; i<5; i++)
{
if (s[i].grade > maxGrade)
...
单片机编程 舵机电机PID控制算法
#include <hidef.h>&nbsp; &nbsp;&nbsp; &nbsp;/*
common defines and macros */
#include "derivative.h"&nbsp; &nbsp;&nbsp; &nbsp;/*
derivative-specific definitions */
#include <mc9s12xs128.h>
//定义PID参数
#define VV_KPVALUE 3&nbsp; &nbsp;&nbsp; &nbsp; //比例
#define VV_KIVALUE 40&nbsp; &nbsp;&nbsp;&nbs ...
单片机编程 单片机C语言(for)延时计算
C程序中可使用不同类型的变量来进行延时设计。经实验测试,使用unsigned char类型具有比unsigned int更优化的代码,在使用时应该使用unsigned char作为延时变量。&nbsp; 以某晶振为12MHz的单片机为例,晶振为12MHz即一个机器周期为1us。&nbsp;
...
其他 2013遗传算法工具箱
% 生成训练样本集
clear all;
clc;
P=[110 0.807 240 0.2 15 1 18 2 1.5;
110 2.865 240 0.1 15 2 12 1 2;
110 2.59 240 0.1 12 4 24 1 1.5;
220 0.6 240 0.3 12 3 18 2 1;
220 3 240 0.3 25 3 21 1 1.5;
110 1.562 240 0.3 15 3 18 1 1.5;
110 0.547 240 0.3 15 1 9 2 1.5];
0 1.318 ...
教材/考试/认证 离散实验 一个包的传递 用warshall
&nbsp;实验源代码
//Warshall.cpp&nbsp;#include<stdio.h>&nbsp;void&nbsp;warshall(int&nbsp;k,int&nbsp;n)&nbsp;{&nbsp;int&nbsp;i&nbsp;,&nbsp;j,&nbsp;t;&nbsp;int&nbsp;temp[20][20];&nbsp;for(int&nbsp;a=0;a<k;a++)&nbsp;{&nbsp;printf("请输入矩阵第%d&nbsp;行元素:",a);&nbsp;for(int&nbsp;b=0;b<n;b++)&nbsp;{& ...
嵌入式综合 红外遥控RGB
#include "STC90.h"
#include < intrins.h >
#define uchar unsigned char
#define uint unsigned int
#define led_port P1
sbit IR_RE = P3^2;
sbit led_r = P1^3;
sbit led_g = P1^4;
sbit led_b = P1^5;
sbit led_wd = P1^7;
sbit K1 =P3^0 ; //增加键
sbit K2 =P3^1 ; ...
嵌入式综合 调光C程序
/*#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
#define uchar unsigned char
sbit K1=P3^4;
sbit K2=P3^5;
sbit ledr=P1^0;
sbit ledg=P1^1;
sbit ledb=P1^2;
bit LEDDirection=0;//LED控制方向0:渐亮1:渐灭
char &nbsp;pwm=0;
char &nbsp;pwmr=0;
char &nbsp;scw=0;//中断记数
char &nbsp ...