I hereby claim:
- I am aallan on github.
- I am aallan (https://keybase.io/aallan) on keybase.
- I have a public key whose fingerprint is A2E0 84E9 5E95 B4CB 0562 7672 5CA0 5526 5413 2159
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import smbus | |
from time import * | |
# Older version of library that uses smbus, no longer updated | |
# For new projects use i2c_lcd | |
class i2c_lcd: | |
# Commands | |
CMD_Clear_Display = 0x01 |
#!/usr/bin/python | |
import socket | |
import fcntl | |
import struct | |
from i2clibraries import i2c_lcd_smbus | |
def get_ip_address(ifname): | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
return socket.inet_ntoa(fcntl.ioctl( |
#include <Wire.h> | |
// i2c_scanner | |
// Version 1 | |
// This program (or code that looks like it) can be found in many places. For example on the Arduino.cc forum. | |
// The original author is not know. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal | |
// Version 3, Feb 26 2013 | |
// V3 by louarnold |
#!/usr/bin/perl | |
print "Reading schat.csv\n"; | |
open ( my $schat, "<schat.csv") || die "Can't open schat.csv: $!"; | |
my @snaps = <$schat>; | |
close($schat); | |
chomp( @snaps ); | |
print "Reading contacts.tel\n"; | |
open ( my $contacts, "<contacts.tel") || die "Can't open contacts.tel: $!"; |
#!/usr/bin/perl | |
use strict; | |
print "Reading schat.csv\n"; | |
unless ( open ( FILE, "<schat.csv") ) { | |
print "Cannot open file for read\n"; | |
exit; | |
} |
curl -H 'Authorization: Token token=a00723c600c97d3aa96ad13475252be945cb1f0539b54ed4f66f9a0dcd18ae0b' https://proximitykit.radiusnetworks.com/api/kits/4276 > file.json |
/* | |
Controlling large 7-segment displays via serial | |
By: Nathan Seidle, SparkFun Electronics | |
Modified: Alasdair Allan, Babilim Light Industries | |
Original: February 25th, 2015 | |
Modifications: February 3rd, 2017 | |
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license). |
#!/usr/bin/env perl | |
#+ | |
# Name: | |
# counter.pl | |
# Language: | |
# Perl |
#!/usr/bin/env python3 | |
import threading | |
import requests | |
import time | |
import aiy.audio | |
import aiy.cloudspeech | |
import aiy.voicehat |