电路图:升级:sudo apt-get updatesudo apt-get
upgrade加载驱动:sudo modprobe w1-gpio sudo modprobe w1-therm查看:lsmod 查看w1模块是否载入cat
/sys/bus/w1/devices/28-*/w1_slav...
分类:
其他好文 时间:
2014-06-29 12:06:30
阅读次数:
217
题目
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n =
4,
return 1->4->3->2->5->NULL.
Note:
Given m,...
分类:
其他好文 时间:
2014-06-11 06:07:11
阅读次数:
392
水题#include #include #include using namespace
std;int main(){ int n,m; cin >> n >> m; int cnt = 0, sum = 0;
for(int i = 0 ; i > a; i...
分类:
其他好文 时间:
2014-06-10 16:38:18
阅读次数:
226
Types of Device
DriversWindows可能会有User-mode的驱动,但是我们只关注Kernel-Mode的驱动。WDM
DriversWDM是一种驱动模型,是比较常用的驱动模型。WDM可以分为以下几类:Bus Drivers负责检测到连接到该总线的设备的与PnP/Power...
分类:
其他好文 时间:
2014-06-10 14:19:00
阅读次数:
310
题目:Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL...
分类:
其他好文 时间:
2014-06-09 23:03:18
阅读次数:
254
本文源自在学习《程序员的自我修养》中的心得体会。
对于底层系统程序开发者来说,硬件平台可以抽象为三个主要部件,CPU、内存、I/O控制器。
早期的计算机没有复杂的图形功能,CPU和内存之间的频率差异不大,它们都是连接在同一个bus上面的。其他I/O设备,诸如显示设备、键盘、磁盘等速度比内存、CPU慢...
分类:
其他好文 时间:
2014-06-09 17:38:03
阅读次数:
260
1 host=$host;15 $this->name=$name;16
$this->pass=$pass;17 $this->table=$table;18 $this->ut=$ut;19 $this-...
分类:
Web程序 时间:
2014-06-08 18:52:24
阅读次数:
431
蓝牙的各个协议栈的简介21.1、蓝牙技术21.1、蓝牙协议栈21.2、蓝牙技术的特点41.2.1、蓝牙协议栈体系结构41.2.2、蓝牙协议栈低层模块51.2.3、软件模块51.3、蓝牙的一些Profile
62、Bluez和D-Bus 82.1、Bluez和D-Bus体系结构82.2、D-Bus介绍...
分类:
其他好文 时间:
2014-06-08 07:30:22
阅读次数:
1983
record的定义-record(useinfo,{id,name,pass}).%动态的传值和取值,这里的Record是{useinfo,1,lvn,123456}。put_record(Record)
-> Name = Record#userinfo.name, Name. %% #u...
分类:
其他好文 时间:
2014-06-06 09:21:11
阅读次数:
253
parse_url()函数是将输入的URL结构分解成几个部分来将其转变为一个关联数组组成URL的几个基本部分为:scheme(协议名),host(主机名),port(端口号),path(文件路径),query(查询参数),user(用户名),pass(密码)如:http://www.example....
分类:
Web程序 时间:
2014-06-02 12:47:09
阅读次数:
300