前回Raspberry PiのGPIOピンを操作するためのライブラリ「RPi.GPIO」を紹介しましたが、こちらはRaspberry Pi5では使用できませんでした。 今回はRaspberry Pi5でも使用できる「gpiod」を紹介します。 GPIO (general-purpose input/output) ピンとは様々な用途に使用できるピンで ...
Raspberry PiのGPIOピンを操作するためのライブラリである「RPi.GPIO」を紹介します。 1-1.GPIOとは GPIO (general-purpose input/output) ピンとは様々な用途に使用できるピンであり、ピンに下記のような機能を割り当てることが出来ます。 GPIOとは?機能や使用例は?
Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries. The library is currently in an early stage, but you can see ...
「RASPBIAN」には“RPi.GPIO”と呼ばれるPythonのパッケージも用意されている。 先にあげた“WiringPi”はC言語用でコンパイルが必要になるが、こちらはPHP同様、スクリプト言語なので即実行でき手軽だ。
コマンドやPythonなどのプログラミング言語を通してGPIOにアクセスする場合には、ピン番号ではなくGPIO番号を使う必要がある。 ピン番号とGPIO番号の数値は一致しないので注意が必要だ。 コマンドラインでGPIOを制御する ...
in order for the library not to access /proc/device-tree/compatible, and therefore to be used in a non-privileged Docker container, this fork patches lib/python ...
In our previous tutorial Getting Started with the RASPBERRY PI ZERO, we had an overview Raspberry Pi zero W and setup the Pi Zero. In this tutorial we are going to design a simple LED circuit and ...
Microcontroller dev boards are wonderfully useful items, in testament to which most of us maintain an ample collection of the things. But dragging one out to do a simple job can be a pain, what with ...
前回はラズパイと鉄道模型の線路をつなげるところまで進めました。今回はラズパイから指令を出して、鉄道模型を動かすための準備をします。 前回書いた通り、鉄道模型のモーターはPWMによって動かすことになります。今回はGPIO12番にPWMを設定し、パルス ...
翔泳社では、「独習」「徹底入門」「スラスラわかる」「絵で見てわかる」「一年生」などの人気シリーズをはじめ、言語や開発手法、最新技術を解説した書籍を多数手がけています。プロジェクトマネジメントやチームビルティングといった管理職向けの ...