Skip to content

Instantly share code, notes, and snippets.

@SnoopTomm
SnoopTomm / pi_encoder_volume.py
Last active July 12, 2026 00:17 — forked from shivasiddharth/pi_encoder_volume.py
Code to control your Pi volume using a Rotary Encoder
#***************************************************************************************
# Code for Controlling Pi Volume Using Rotary Encoder
# Original Code: https://bit.ly/2OcaQGq
# Re-Written by Sid for Sid's E Classroom
# https://www.youtube.com/c/SidsEClassroom
# All text above must be included in any redistribution.
# If you find this useful and want to make a donation -> https://paypal.me/sidsclass
# ***************************************************************************************
from RPi import GPIO