rpi.lol - rpi.lol – Raspberry Pi Fun

Example domain paragraphs

Raspberry Pi Fun

Cobbled some code together from a few places. This be it.

#! /usr/bin/python # set lights based on ultrasonic sensor # merge the adeept ultrasonic code w/ jamhat code #JAM hat pin usage # Component GPIO.BCM GPIO.BOARD GPIO Zero object Notes # LED1 GPIO 5 Pin 29 lights_1.red # LED2 GPIO 6 Pin 31 lights_2.red # LED3 GPIO 12 Pin 32 lights_1.yellow # LED4 GPIO 13 Pin 33 lights_2.yellow # LED5 GPIO 16 Pin 36 lights_1.green # LED6 GPIO 17 Pin 11 lights_2.green # Button 1 GPIO 19 Pin 35 button_1 Connected to R8/R10 # Button 2 GPIO 18 Pin 12 button_2 Connected to R7/R9 #