- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 raspberry pi 的 C 程序编写
linux 都带了 gcc, 简单程序可以在树莓派中,直接编译 复杂的程序,可以用 bcm (因为芯片是 broadcom 的) 的 toolchain 来编译 http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/ http://raspberrypi.sta
2015-04-30 10:47:57 2923
原创 Linux 下 USB-serial 端口的使用
把USB-serial 插上 会看到下面的消息 dmesg | grep tty ... [167848.524563] usb 1-1.3: ch341-uart converter now attached to ttyUSB0 用下面命令设置好 波特率, 就可以通信了 stty -F /dev/ttyUSB0 -raw ispeed 9600 ospeed
2015-04-29 18:17:26 3322
原创 编程练习:Biorhythms
http://poj.org/problem?id=1006 Description Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emoti
2015-04-29 15:19:01 546
原创 编程练习:Spell checker
http://poj.org/problem?id=1035 Description You, as a member of a development team for a new spell checking program, are to write a module that will check the correctness of given words using
2015-04-28 11:10:09 660
原创 ubuntu 运行 usb camera
用软件Cheese 1) 插上 usb camera 2) 软件中心 找 cheese 运行 ref: http://www.ehow.com/how_5610857_mount-usb-camera-ubuntu.html 通过 ffmpeg 捕获 原来插了 usb camera 后,多了一个设备 /dev/video0 v4l2-ctl --list-devi
2015-04-27 15:24:45 6908
原创 整理源文件技巧:批量替换
批量改旧文件就是麻烦呀,我写了脚本来帮忙 1)找到所有非 binary 的源文件 find -type f -exec grep -Il . {} \; 〉tochange.list 2) 把含有 $Id 的一行去掉 cat tochange.list | while read line; do cat "$line" | grep -v '$Id' > txt
2015-04-24 17:32:03 656
原创 使用 icsp 烧程序
使用ICSP 异味着不依靠 bootloader才烧程序 http://www.arduino.cc/en/Tutorial/ArduinoISP 6pin 的 isp 应该如下: 下面的文章谈到了如何upload http://tutorial.cytron.com.my/2011/09/30/how-to-program-arduino-by-using
2015-04-21 14:28:30 8012
原创 试用 Arduino Due
以前都玩328P, 现在玩玩arm的板子 关于板子参见:http://www.arduino.cc/en/Main/ArduinoBoardDue 1)下载 arduino-1.6.2-windows, 2)安装driver 其driver 目录下有 dpinst-x86.exe 安装后,连接 Due 的programming port ( 靠近圆电源孔孔那个)
2015-04-21 14:05:59 8023 1
原创 编程练习:False coin
http://poj.org/problem?id=1029 The "Gold Bar"bank received information from reliable sources that in their last group of N coins exactly one coin is false and differs in weight from other coins (
2015-04-16 17:44:28 1100
原创 Hello 试用 breakpad (linux)
试用了一下 breakpad breakpad 是一个收集程序crash 信息的系统,与gdb不同的是:gdb适合自己调试crash程序用; 而 breakpad 适合release 后的程序 (收集实际程序运行crash的信息) 安装breakpad 别在 github上乱找了(我找了两个都不能编译成功,貌似别人随便放在那里的,没有维护),用svn下载(TMD访问googl
2015-04-01 13:34:13 3451 1
gnu-linker
2013-06-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人