代码搜索结果
找到约 72,433 项符合
LED Matrix 的代码
led.c
#include "led.h"
static void delay(int x)
{
int i;
while (x--)
{
for (i = 65536 ; i > 0; i--);
}
}
void led (int bit, int val)
{
int led_mask[LED_NUM] = {0x00000040, 0x000000
matrix.hpp
// matrix.hpp
// declaration and implementation of template class Matrix
// email: wangsg@lzb.ac.cn
// August 14, 2003
// Ver 1.0
// Modification history
//
matrix.hpp
// matrix.hpp
// declaration and implementation of template class Matrix
// email: wangsg@lzb.ac.cn
// August 14, 2003
// Ver 1.0
// Modification history
// Han,xu
matrix.h
#ifndef HEADFILE_MATRIX
#define HEADFILE_MATRIX
class matrix{
short rows, cols;
int *elems;
public:
matrix(short rows, short cols); // 构造函数
~matrix(); // 析构函数
// 重载'[]'以支持下标操
matrix.cpp
#include "stdafx.h"
#include "matrix.h"
#include
#include
using namespace std;
// 构造函数,分配内存
matrix::matrix(short rows, short cols)
{
matrix::rows = rows;
matrix::c
led.c
/*****************************************************
* 文件名称:
* led.c
* 文件说明:显示的时候首先设置要显示的内容
* 然后使能相应的LED
*
*****************************************************/
#ifnd
led.c
/*****************************************************
* 文件名称:
* led.c
* 文件说明:显示的时候首先设置要显示的内容
* 然后使能相应的LED
*
*****************************************************/
#ifnd
led.c
/*****************************************************
* 文件名称:
* led.c
* 文件说明:显示的时候首先设置要显示的内容
* 然后使能相应的LED
*
*****************************************************/
#ifnd
led.c
/*****************************************************
* 文件名称:
* led.c
* 文件说明:显示的时候首先设置要显示的内容
* 然后使能相应的LED
*
*****************************************************/
#ifnd
led.c
/*****************************************************
* 文件名称:
* led.c
* 文件说明:显示的时候首先设置要显示的内容
* 然后使能相应的LED
*
*****************************************************/
#ifnd