「リンク集」のコンセプトから外れるがこれだけは要コピー。
2013年8月10日土曜日
Raspberry PiでSPI
Getting SPI working on the Raspberry Pi
http://www.brianhensley.net/2012/07/getting-spi-working-on-raspberry-pi.html
SPIだけでなくI2CやUART, PCMなどのついてのピン配の記載もあって有用
Cコードの例
Light Painting with Raspberry Pi
http://learn.adafruit.com/light-painting-with-raspberry-pi/software
『LightPaint』を例にこちらはPythonで動かす例。わかり易い
Pythonを使ってRaspberry PiのI2Cを動かす
Raspberry Pi and Arduino Connected Using I2C
http://blog.oscarliang.net/raspberry-pi-arduino-connected-i2c/
I2CでRPiとArduinoをつなぐ、って話だが十分参考になる
Raspberry Pi I2C (Python)
http://www.instructables.com/id/Raspberry-Pi-I2C-Python/話は同じだけど外付けデバイスのコントロール例がいくつか付いているのでそれはそれで参考に。
I2C and the Raspberry Pi
http://www.bootc.net/archives/2012/05/19/i2c-and-the-raspberry-pi/
これはCのコードを使った例だけど、ちょっと取っ付きにくかったので未検証
PythonでRaspberryPiのGPIOを叩く
Python GPIO Basics(Will's Blog)
Raspberry Piのピン配
http://willsrpi.blogspot.com/p/python-gpio-basics.html
http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/turing-machine/two.html
Internal Pull-Up/Pull-Downについて
http://raspi.tv/2013/rpi-gpio-basics-6-using-inputs-and-outputs-together-with-rpi-gpio-pull-ups-and-pull-downs
下の方に記載有り
GPIOが上手く使えなかった時に助けられたサンプル
https://github.com/mi0iou/RPi_Thermometer/blob/master/rpi_thermometer.py
GPIO.setmodeのとこ
よく見たらこっちも合ってる(BCM)
http://raspi.tv/2013/rpi-gpio-basics-6-using-inputs-and-outputs-together-with-rpi-gpio-pull-ups-and-pull-downs
GPIO.setmode(BOARDとBCM)の違いについて
http://mamerium.com/raspberry-pi-rpi-gpio-basic/
Raspberry Pi 2でGPIOが暫定的に使えない
開発中のコードはこちら
http://sourceforge.net/p/raspberry-gpio-python/wiki/install/
2013年8月9日金曜日
CentOSとかDebianとかではたまにifconfigが動かない
というのも/sbinにパスが通ってないらしい。
↓
http://news.mali77.com/index.php/2010/03/ifconfig-not-working-centos/
↓
http://news.mali77.com/index.php/2010/03/ifconfig-not-working-centos/
登録:
投稿 (Atom)
