Skip to content

Instantly share code, notes, and snippets.

View unforgiven512's full-sized avatar

Gerad Munsch unforgiven512

View GitHub Profile
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
import pigpio
pi = pigpio.pi()
if not pi.connected:
exit
else:
print("pigpio is connected")
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# pygtk_experiments.py
#
# Copyright 2019 Gerad Munsch <gmunsch@unforgivendevelopment.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
#!/usr/bin/env python2
from twilio.rest import Client
# Account SID and auth token
account_sid = "mysid"
auth_token = "token"
client = Client(account_sid, auth_token)
#!/usr/bin/env python
'''
Testing out pygtk on the Raspberry Pi.
We'll make a typical application window, with a menubar, toolbar, statusbar, etc.
'''
import pygtk
pygtk.require('2.0')
import gobject
import gtk
import argparse
import locale
import logging
import time
import threading
import json
import requests
import datetime
#from aiy.board import Board
@unforgiven512
unforgiven512 / avrdude.conf
Last active May 5, 2018 00:48
AVRDUDE config file
# $Id: avrdude.conf.in 1371 2016-02-15 20:15:07Z joerg_wunsch $ -*- text -*-
#
# AVRDUDE Configuration File
#
# This file contains configuration data used by AVRDUDE which describes
# the programming hardware pinouts and also provides part definitions.
# AVRDUDE's "-C" command line option specifies the location of the
# configuration file. The "-c" option names the programmer configuration
# which must match one of the entry's "id" parameter. The "-p" option
# identifies which part AVRDUDE is going to be programming and must match
ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBLIIF5ZpH+5Ky1fqGa7Lw6aTMwZb9FZJyo0UO5G2IYk+S0jpkfJb7u55Gou/nQuXX1sQxMu88ucE5mFFOBACl6Q4d6VtlF2qIvFeR7jqu/vq9wxyoiCsSZwGI4l7zL8s/A== T540P-ArchLinux--userkey
debian-web-services I2CXV6X-YYH2L2I-VYJUMEU-SWIQBYL-BUROHAS-33UOVGW-S3G2OZ7-GNX6XAH
button_name ir_bits ir_data button_notes
power 32 0x00FF11EE Red power button - top left
add 32 0x00FFE916 Add button - top right
fast 32 0x00FF39C6 FastPlay button (Zoom+) top row/left
nextframe 32 0x00FFC13E Frame Forward (Focus+) top row/middle
playpause 32 0x00FF41BE Play/Pause (Iris+) top row/right
slow 32 0x00FF31CE SlowPlay button (Zoom-) second row/left
backframe 32 0x00FF09F6 Frame Backward (Focus-) second row/middle
pauseback 32 0x00FF19E6 Backwards Pause (Iris-) second row/right
esc 32 0x00FF6996 Esc button