Skip to content

Instantly share code, notes, and snippets.

@dentex
dentex / button_long-press_test.py
Last active March 5, 2023 12:50 — forked from jedie/button_test.py
microPython button irq long-press detection
import time
from micropython import const
from machine import Pin
BUTTON_A_PIN = const(17)
class Button:
@dentex
dentex / lirc-pi3.txt
Created September 25, 2018 16:44 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]).
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch.
Following are the changes that I made to make it work.
$ sudo apt-get update
$ sudo apt-get install lirc
# Add the following lines to /etc/modules file
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17