Skip to content

Instantly share code, notes, and snippets.

View linuxgnuru's full-sized avatar

Jackie Wiggins linuxgnuru

View GitHub Profile
@linuxgnuru
linuxgnuru / no-default.py
Created April 2, 2018 11:49
7 segment led raspberry pi buzzer
import shiftpi.shiftpi as SP
import time
import RPi.GPIO as GPIO
import pygame
import sys
import os.path
seg = [
[ -1, 1, 2, 3, 4, -1, 6, 7 ], # 0
[ -1, -1, -1, 3, -1, -1, 6, -1 ], # 1
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/input.h>
#include <linux/uinput.h>
/*
Makefile:
DEBUG = -O2 -ggdb
CFLAGS = $(DEBUG) -Wall -std=c++11
LIBS = -lwiringPi
CC = g++
SRC = $(PROGNAME).cpp
OBJ = $(SRC:.cpp=.o)
import time
import sys
import subprocess
import re
import termios
import tty
import time
import os
import Adafruit_SSD1306
import time
import sys
import eyed3
import os.path
import Adafruit_SSD1306
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
# deb cdrom:[Pop_OS 18.10 _Cosmic_ - Release amd64 (20190207)]/ cosmic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ cosmic main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ cosmic main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted universe multiverse