11 2013 档案
摘要:1: Code#importimport RPi.GPIO as gpioimport timeimport sys# golbal defineled_port_list = [7,8,9,11,25]# define def -----Begindef led_init(): gpio.setmode(gpio.BCM) for port in led_port_list: gpio.setup(port,gpio.OUT,initial=gpio.LOW) def led_start(): while True: if raw_i...
阅读全文
摘要:Configure Git for Get or Update github project1: install Gitwajig install git2:Configure gitgit --version 查看git版本git config --global 本用户的配置全局git config --system 配置系统的参数git config --global user.name "rainysia"git config --global user.email rainysia@gmail.comgit config --system alias.st stat
阅读全文
摘要:back Data time10000 0.00 100000 0.03 1000000 0.34 10000000 5.50 20000000 >11.427G---2000 0000 line data
阅读全文
摘要:Why use Text to Speech?It’s very easy add to your program - just output a string to the speech function instead of the screen. You don’t need an expensive/complicated LCD or monitor for your project - just use any old mp3 player loudspeaker or PC loudspeaker which you have probably got lying around
阅读全文
摘要:There are Different Types of SQL Joins which are used to query data from more than one tables. In this article, I would like to share how joins work in LINQ. LINQ has a JOIN query operator that provide SQL JOIN like behavior and syntax. Let's see how JOIN query operator works for joins. This art
阅读全文
摘要://SeachDBCC CHECKIDENT ('AD_EmailType') --AD_EmailType : table name//ChangeDBCC CHECKIDENT('AD_EmailType', RESEED,4)
阅读全文
摘要:$sudo apt-get update$sudo apt-get install python-dev$sudo apt-get install python-rpi.gpio安装:rpio- 监控和操作 GPIO 的命令行工具rpio-curses- 终端窗口中拥有图形用户界面的 rpio$ sudo apt-get install python-setuptools$ sudo easy_install -U RPIO
阅读全文
摘要:为什么每个WebForm.aspx都必须包含在form之中 //html在asp.net WebForm中,点击一个提交按钮提交数据采用的post方式, 这种方式会将中所有包含name属性的元素提交到服务器,像下面这样__ASYNCPOST true__EVENTARGUMENT __EVENTTARGET __EVENTVALIDATION seQXpdzJBeVknL/6LJyrEizlfVItDEl9kO7LCAsWdy1u8m+A4Cn82OCHPpyXlGKaIn+EBXtSHuIbQV+fXzFmiPbl6kjhWEzYTtvccc+SHS98ZWPu...
阅读全文
摘要:解决方法: 选中供应商---属性---状态--》Use
阅读全文
摘要:This is a step-by-step guide to using the serial port from a program running under Linux; it was written for theRaspberry Pi serial portwith theRaspbianWheezydistribution. However, the same code should work on other systems.Step 1: Connect to a terminal emulator using a PCFollow the instructions atR
阅读全文
摘要:sudo apt-get install python-dev
阅读全文
摘要:Log in to your Pi and install the Tight VNC Package$ sudo apt-get install tightvncserverNext Run TightVNC Server which will prompt you to enter a Password and an optional View Only Password$ tightvncserverOnce that is done you can start a VNC server from the shell prompt. This example starts a sessi
阅读全文
摘要:如果引起Uncompressing Linux...done, booting the kernel 是因为修改 /boot/cmdline.txt我的是因为修改cmdline.txt引起的dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait修改为dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfs.
阅读全文
摘要:wajig是一个简单的软件包管理前端,和apt-get类似,但功能更多,它把apt-get、dpkg等Debian系统下的软件包管理工具都集成在一起,只用一个wajig命令就能完成各种复杂的管理工作。wajig是要额外安装的软件,同时需要python支持。base系统自带的软件包管理工具还是apt-get。用apt-get install wajig即可安装wajig。它还有一个Gnome GUI前端界面,能通过鼠标点击完成所有的软件包管理工作。有关wajig的详细介绍请参考http://wajig.togaware.com/。
阅读全文
摘要:环境:通过ssh连接RPI(debian)来显示操作RPI1:下载安装pySerial (需要连网)easy_install pyserial安装之后就可以检验是否可以导入serialsudo python import serialpi@raspberrypi:~$ sudo pythonPython 2.7.3 (default, Jan 13 2013, 11:20:46) [GCC 4.6.3] on linux2Type "help", "copyright", "credits" or "license"
阅读全文

浙公网安备 33010602011771号