demos.h
来自「freescale badge board 开发板测试 源程序」· C头文件 代码 · 共 40 行
H
40 行
/*!
* \file led_matrix.h
* \brief Defines and macros for LED Matrix
* \version $Revision: 1.1 $
* \author Anthony Huereca
*/
#ifndef _DEMOS_H_
#define _DEMOS_H_
#include <MCF51JM128.h>
/*******************************************************************/
/*! Number of columns in the LED matrix */
#define COLUMNS 16
#define LEFT 1
#define RIGHT 2
#define UP 3
#define DOWN 4
typedef struct {
byte x;
byte y;
byte dirx;
byte diry;
} Ball;
static Ball ball;
void SideBall();
void PaddleBall();
void Speaker();
void MagicBadge();
/*******************************************************************/
#endif /* _DEMOS_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?