上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 偶然的机会,发现STM8真是又便宜又好用啊,哈哈! 买了一个STM8S103F3的小板子,再加一个ST-Link调试器,总共才35块钱!对于我们这种玩习惯了动辄上千上万的FPGA开发板的人来说,就是白菜中战斗机啊! 说一下STM8S103F3的特点吧: 1、电平:支持3.3V~5V 2、内部自带16MHz振荡器 3、中断、定时器、看门狗、IIC、SPI、UART、AD 该有的基本全有了... 阅读全文
posted @ 2014-06-27 12:21 Craftor 阅读(4389) 评论(0) 推荐(0) 编辑
摘要: x=0:0.1:6*pi; for step=1:2:100 s=0; for i=1:2:step s = s+1/i*sin(i*x); end plot(s);set(figure(1),'visible','off'); filename=[num2str(step, '%04d'),'.png']; print(1, '-dpng',filename); end 阅读全文
posted @ 2014-06-27 12:20 Craftor 阅读(8920) 评论(0) 推荐(0) 编辑
摘要: 之前有一些项目是托管在github上的,无奈github速度太慢,而且空间有限,还不能有私有项目。后来发现开源中国的git托管(git.oschina.net)还不错,可以托管1000个项目,而且可以选择公开和私有,试用了一段时间,觉得还不错,就决定把github上的项目慢慢转过来。转移的步骤很简单: 1. 在git.oschina.net新建你的项目。如果你在github的项目有... 阅读全文
posted @ 2014-06-27 12:18 Craftor 阅读(3550) 评论(0) 推荐(0) 编辑
摘要: Step 1: Convert any text into uint8 type in matlab : Step 2: Add models in matlab : copy the uint8 numbers and put them in Repeating Sequence Stair model: Step 3: Connect your Headphone or... 阅读全文
posted @ 2014-06-27 12:17 Craftor 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1. Only version not older than R2013 supports Raspberry Pi. First, download support package in Matlab: http://www.mathworks.cn/matlabcentral/fx_files/40313/5/raspberrypi.zip 2. Open raspberrypi.mlpk... 阅读全文
posted @ 2014-06-27 12:16 Craftor 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 1. install lrzsz $ sudo apt-get install lrzsz 2. If you want to send file from your pc to pi, just drag it to the Xshell window. Or, input $ sudo rz then select the f... 阅读全文
posted @ 2014-06-27 11:48 Craftor 阅读(425) 评论(0) 推荐(0) 编辑
摘要: git archive可以将加了tag的某个版本打包提取出来,例如: git archive -v --format=zip v0.1 > v0.1.zip --format表示打包的格式,如zip,-v表示对应的tag名,后面跟的是tag名,如v0.1。 阅读全文
posted @ 2014-06-27 11:45 Craftor 阅读(7944) 评论(0) 推荐(0) 编辑
摘要: test命令格式: test condition 通常,在if-then-else语句中,用[]代替,即[ condition ]。注意:方括号两边都要用空格。1、数值比较 =========================================================== 比 较 描 述 -----------------... 阅读全文
posted @ 2014-06-27 11:44 Craftor 阅读(5403) 评论(0) 推荐(1) 编辑
摘要: expr命令 ======= 最开始,Bourne shell提供了一个特别的命令用来处理数学表达式。expr命令允许在命令行上处理数学表达式,但是特别笨拙: $ expr 1 + 5 6 expr命令能识别一些不同的数字和字符串操作符,如下表: =======================================... 阅读全文
posted @ 2014-06-27 11:40 Craftor 阅读(29092) 评论(1) 推荐(0) 编辑
摘要: ## 查看文件、目录和设备的权限 例如,本人某目录下有如下文件: $ ls -l total 68 -rw-rw-r-- 1 craftor craftor 50 2013-06-02 09:31 file1 -rw-rw-r-- 1 craftor craftor 28 2013-06-03 15:40 file2 -rwxrwxr-x 1 craftor c... 阅读全文
posted @ 2014-06-27 11:39 Craftor 阅读(770) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页