Skip to content

Instantly share code, notes, and snippets.

View tylerl's full-sized avatar

Tyler Larson tylerl

  • Seattle-ish, WA
View GitHub Profile
@tylerl
tylerl / attiny7seg.cc
Last active February 9, 2018 08:40
7-segment-4-digit i2c display driver (designed for attiny2313)
#include <Arduino.h>
#include <avr/io.h>
#include <Wire.h>
// Wire plan
// B7(SCL) B5(SDA) for I2C
//
// seg: A B C D E F G DP
// prt: D6 D5 D4 D3 D2 D1 D0 B4
// pin: 11 9 8 7 6 3 2 16

Keybase proof

I hereby claim:

  • I am tylerl on github.
  • I am tylerl (https://keybase.io/tylerl) on keybase.
  • I have a public key whose fingerprint is 34C4 FE98 605C 8540 F00E 6A00 6A19 1C22 8E13 CAC9

To claim this, I am signing this object:

@tylerl
tylerl / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@tylerl
tylerl / rsa.py
Created September 24, 2011 08:27
RSA Explained in Python
#!/usr/bin/env python
# This example demonstrates RSA public-key cryptography in an
# easy-to-follow manner. It works on integers alone, and uses much smaller numbers
# for the sake of clarity.
#####################################################################
# First we pick our primes. These will determine our keys.
#####################################################################