摘要: //头文件 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define LED_NUM_ON _IOW('L',0x112... 阅读全文
posted @ 2019-06-09 13:11 panda_w 阅读(482) 评论(0) 推荐(0)
摘要: gt811的编程思路: 1, 为gt811需要一个i2c client提供从设备信息 arch/arm/mach-s5pv210/mach-smdkv210.c static struct i2c_board_info smdkv210_i2c_devs2[] __initdata = { /* T 阅读全文
posted @ 2019-06-09 13:10 panda_w 阅读(1082) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 #include 9 #include 10 11 12 static void *led_reg_base; 13 static struct miscdevice... 阅读全文
posted @ 2019-06-09 13:10 panda_w 阅读(292) 评论(0) 推荐(0)
摘要: I2c驱动框架 应用 (从设备驱动层) i2c_driver层 (自己编写) (核心层) i2c_core层 i2c_bus_type (i2c_core.c) (控制器层) i2c_adapter层 (i2c_xxx.c) 硬件 目录:linux/driver/i2c/ algo/ (i2c-al 阅读全文
posted @ 2019-06-09 01:09 panda_w 阅读(637) 评论(0) 推荐(0)
摘要: <结构体> struct input_handler { void *private; void (*event)(struct input_handle *handle, unsigned int type, unsigned int code, int value); struct input_ 阅读全文
posted @ 2019-06-08 23:54 panda_w 阅读(307) 评论(0) 推荐(0)
摘要: //头文件 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //定义一个按键的数据包 struct button_eve... 阅读全文
posted @ 2019-06-08 19:26 panda_w 阅读(512) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-06-05 16:10 panda_w 阅读(6) 评论(0) 推荐(0)
摘要: 红外传感器: 简述:红外线感应器是根据红外线反射的原理研制的,属于一种智能节水、节能设备。包括感应水龙头、自动干手器、医用洗手器、自动给皂器、感应小便斗冲水器、感应便器。 原理:这种是通过红外线反射原理,当人体的手或身体的某一部分在红外线区域内,红外线发射管发出的红外线由于人体手或身体摭挡反射到红外 阅读全文
posted @ 2019-06-05 11:04 panda_w 阅读(361) 评论(0) 推荐(0)
摘要: 霍尔感应器: 是一种检测磁场的感应器,广泛用于测量,自动控制,交通运输等日常生活领域。 应用: 1、开关型霍尔传感器的应用 开关型霍尔传感器具有磁感应强度达到一定强度时输出电压才会发生电平转换的特点, 主要用于测转数、 转速、 风速、 流速, 或用在接近开关、 关门告知器、 报警器和自动控制电路中。 阅读全文
posted @ 2019-06-05 10:54 panda_w 阅读(736) 评论(0) 推荐(0)
摘要: \lichee\tools\pack\chips\sun8iw5p1\configs\vstar\sys_config.fex ; ————————; port configuration:; port_name = port:GPIO<mux><pull up/down><driver level 阅读全文
posted @ 2019-06-03 10:26 panda_w 阅读(4668) 评论(0) 推荐(0)