Skip to content

Instantly share code, notes, and snippets.

@dentex
dentex / Timer.sh
Last active April 14, 2018 11:06
Get a popup window as a timer using zenity
#!/bin/bash
# (C) 2014 Roland Latour, gpl v2
# from http://user.cavenet.com/rolandl
# uses zenity to create/move popup window as a timer
###################################################################
# modified by Samuele Rini
#
# https://github.com/dentex/
# https://dentex.github.io/
@dentex
dentex / lcd_driver.py
Last active May 11, 2017 07:43
Phython driver and usage script to run a 20x4 LCD (with a PCF8574 I2C backpack) with Raspbian
#!/usr/bin/python -u
# -*- coding: utf-8 -*-
"""
Copyright 2017 Samuele Rini
Modified from:
https://bitbucket.org/ryanteckltd/16x2-python-i2c-lib/
https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=34261&p=378524
@dentex
dentex / buzzer.py
Last active March 7, 2017 14:53
Python script I'm using with Raspbian to operate a piezoelectric buzzer (connect the [+] end to a GPIO pin and the [-] to a GND pin)
#!/usr/bin/python -u
"""
MIT License
Copyright (c) 2016 Samuele Rini
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights