Udemy에서 Raspberry Pi: Full Stack강의를 듣고 정리한 것이다.

Python install

virtualenv 독립적인 파이썬 환경을 제공한다.

$apt-get install python-dev
$apt-get install python-virtualenv

$cd /var
$mkdir working
$cd working/
$virtualenv venv

$. venv/bin/activate

$deactivate

GPIO Basic

GPIO Layout

  1. Physical numbering (like 1, 2, 3, … )
    • GPIO.BOARD : set pins to physical numbering system
  2. BCM : Broadcom SOC channel (like GPIO2, GPI3 , …)
    • GPIO.BCM : set pins to BCM numbering system

Detail Guid GPIO Header and Pins