[PYTHON] Try L Chika with raspberry pi

Things necessary

Wire

See here for GPIO pin numbers.

Lチカ.jpg

Program in Python

pip install wiringpi

led_test.py


import wiringpi
import time

out_pin = 23

wiringpi.wiringPiSetupGpio()
wiringpi.pinMode(out_pin, wiringpi.OUTPUT)

for i in range(0, 5):
    wiringpi.digitalWrite(out_pin, 1)
    time.sleep(1)
    wiringpi.digitalWrite(out_pin, 0)
    time.sleep(1)

reference

GPIO HEADER of raspberrypi3 WiringPi function memo

Recommended Posts

Try L Chika with raspberry pi
Try moving 3 servos with Raspberry Pi
L Chika on Raspberry Pi C #
Try fishing for smelt with Raspberry Pi
Try Object detection with Raspberry Pi 4 + Coral
GPGPU with Raspberry Pi
DigitalSignage with Raspberry Pi
Mutter plants with Raspberry Pi
Try to visualize the room with Raspberry Pi, part 1
Try debugging Python on Raspberry Pi with Visual Studio.
Installation of Docker on Raspberry Pi and L Chika
[Raspberry Pi] Stepping motor control with Raspberry Pi
Use vl53l0x with Raspberry Pi (python)
Serial communication with Raspberry Pi + PySerial
OS setup with Raspberry Pi Imager
Try using ArUco on Raspberry Pi
VPN server construction with Raspberry Pi
Using a webcam with Raspberry Pi
Measure SIM signal strength with Raspberry Pi
Pet monitoring with Rekognition and Raspberry pi
Hello World with Raspberry Pi + Minecraft Pi Edition
Build a Tensorflow environment with Raspberry Pi [2020]
Get BITCOIN LTP information with Raspberry PI
Programming normally with Node-RED programming on Raspberry Pi 3
Improved motion sensor made with Raspberry Pi
Power SG-90 servo motor with raspberry pi
Working with sensors on Mathematica on Raspberry Pi
Use PIR motion sensor with raspberry Pi
Make a wash-drying timer with a Raspberry Pi
Infer Custom Vision model with Raspberry Pi
Operate an oscilloscope with a Raspberry Pi
Create a car meter with raspberry pi
RaspberryPi L Chika with Python and C #
[C, C ++, Python, JavaScript] L Chika with Edison
Inkbird IBS-TH1 value logged with Raspberry Pi
Working with GPS on Raspberry Pi 3 Python
Try tweeting arXiv's RSS feed on twitter from Raspberry Pi with python
Raspberry Pi backup
Discord bot with python raspberry pi zero with [Notes]
Media programming with Raspberry Pi (preparation for audio)
Try using a QR code on a Raspberry Pi
I tried L-Chika with Raspberry Pi 4 (Python edition)
MQTT RC car with Arduino and Raspberry Pi
Power on / off your PC with raspberry pi
Use Majoca Iris elongated LCD with Raspberry Pi
CSV output of pulse data with Raspberry Pi (CSV output)
Observe the Geminids meteor shower with Raspberry Pi 4
Get CPU information of Raspberry Pi with Python
L Chika with Sipeed Lichee Zero (GPIO operation)
Play with your Ubuntu desktop on your Raspberry Pi 4
Get temperature and humidity with DHT11 and Raspberry Pi
Stock investment analysis app made with Raspberry Pi
Logging Inkbird IBS-TH1 mini values with Raspberry Pi
Connect to MySQL with Python on Raspberry Pi
GPS tracking with Raspberry Pi 4B + BU-353S4 (Python)
Measure CPU temperature of Raspberry Pi with Python
Try to detect an object with Raspberry Pi ~ Part 1: Comparison of detection speed ~
Try to use up the Raspberry Pi 2's 4-core CPU with Parallel Python
Record temperature and humidity with systemd on Raspberry Pi
Try scraping with Python.
Machine learning with Raspberry Pi 4 and Coral USB Accelerator