ESP32_KEYPAD — Raspberry Pi 2 simulation

An interactive Raspberry Pi 2 circuit simulation you can run free in your browser on Velxio, by josephkinuthia541.

Components

Sketch code

import RPi.GPIO as GPIO
import time

LED_PIN = 17

GPIO.setmode(GPIO.BCM)
GPIO.setup(LED_PIN, GPIO.OUT)

try:
    while True:
        GPIO.output(LED_PIN, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(LED_PIN, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    GPIO.cleanup()

More projects by josephkinuthia541