资源简介
一个计步器的实现的完整源代码.使用重力加速度传感器实现.
代码片段和文件信息
// File “display.c“
// performs all LCD display interface functions
#include
extern char stepbcd[6]; // found in file “ped.c“
extern char distbcd[6]; // this too
void Display_Init(void);
void display_data(void);
void display_data_clear(void);
void char_load(int RS int data);
void delay(unsigned int cycles);
int reverse_data(int data);
void Display_Init()
{
// used once to initialize display and write
// the “Steps“ and “Distance“ headers
int rs data;
// Display initialization
rs = 0; // no RAM access yet
data = 0x30; // function set: 2-line mode display off
char_load(rs data);
data = 0x38; // function set: 2-line mode display off
char_load(rs data);
data = 0x08; // display off cursor o
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8265 2007-01-04 14:18 ped.c
文件 4825 2007-01-04 14:11 display.c
文件 1773 2006-12-05 20:56 main.c
- 上一篇:EAS 扩展报表表头固定窗口冻结
- 下一篇:微信小程序商城完整源代码
相关资源
- arduino单片机编程
- GPRS模块GA6和STM32F103C8T6单片机上移植
- 单片机proteus仿真100例
- 郭天祥51单片机开发板原理图
- 用C编的80个单片机实验
- 单片机编程新手进步教程!
- PIC单片机程序全集
- 51单片机 LCD1602液晶 sht31 IIC接口
- Stm32芯片原理图库和封装库
- 51单片机 ADC0832 ADC 仿真 proteus LCD160
- PC 机与单片机通信(RS232 协议)
- 基于新一代8051单片机的旋转 LED灯
- SHT10 SHT20 SHT21温湿度单片机89C52 1602显
- Proteus 7 Professional仿真 单片机双积分式
- 电子秤仿真设计.rar
- ADC0804+DAC0832 51单片机
- 频率计数器基本版
- 亲手写的基于51单片机的24LC512读写程
- 单片机大作业
- 数字电压表 单片机 毕业设计 LCD
- 51单片机简单的中断法串口收发程序
- 单片机实验八 8255输入输出实验
- 基于单片机的数字移相器的课程设计
- 基于AT89S52单片机超声波测距仪的设计
- 圈圈教你玩USB.pdf第二版光盘资料
- 单片机简易电子密码锁系统的设计
- 基于89C52单片机的智能循迹测速避障小
- NRF24L01程序
- 8051系列单片机汇编语言指令速查表
- 单片机16路抢答器有仿真
评论
共有 条评论