Skip to content

Instantly share code, notes, and snippets.

Limor "Ladyada" Fried ladyada

Block or report user

Report or block ladyada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ladyada on github.
  • I am ladyada ( on keybase.
  • I have a public key ASBl1-cokjGT52e6QFsXIXbUGwEWIGJTpJZdV5cToeYMIQo

To claim this, I am signing this object:

View GPS Joystick
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
SoftwareSerial gpsSerial(12, 11);
Adafruit_GPS GPS(&gpsSerial);
#define JOY_X A4
#define JOY_Y A5
#define MOVE_INCR 0.001 // how much to move per tick
ladyada / de-dp14211.ino
Last active Aug 8, 2016
de-dp14211 Demo
View de-dp14211.ino
// Uses library
#include <HT1632.h>
#include <font_5x4.h>
#include <images.h>
int i = 0;
#define DISPLAY_CLK 13
#define DISPLAY_CS1 12 // first panel's CS pin
ladyada / config.txt
Created Feb 18, 2016
customized HDMI output
View config.txt
# uncomment if you get no picture on HDMI for a default &quot;safe&quot; mode
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
View adalogger.ino
#include <SPI.h>
#include <SD.h>
// Set the pins used
#define cardSelect 4
File logfile;
// blink out an error code
void error(uint8_t errno) {
ladyada /
Last active Mar 19, 2018 auto-calibrator
import sys
import usb.core
import usb.util
import time
import os
import pygame
from pygame.locals import*
def mapnum(x, in_min, in_max, out_min, out_max):
View gist:42e738bbc2d6014d127c
#include <Wire.h>
#include "Adafruit_Trellis.h"
#include <SoftwareSerial.h>
#include "Adafruit_Soundboard.h"
/************ sound board setup ***********/
// Choose any two pins that can be used with SoftwareSerial to RX & TX
#define SFX_TX 5
#define SFX_RX 6
// Connect to the RST pin on the Sound Board
ladyada /
Last active Dec 6, 2016
PiTFT updater scripty
# PiTFT Resistive 2.8" (PID 1601) or Capacitive 2.8" (PID 1983) setup script or Resistive 3.5" (PID 2097) or 2.2" No-Touchscreen setup script!
set -e
function cleanup() {
if [ "${mountpoint}" != "/" ]
sudo -n umount "${mountpoint}/boot" 2> /dev/null
ladyada /
Created Aug 10, 2012
Adafruit Light Painting with Pi
# Light painting / POV demo for Raspberry Pi using
# Adafruit Digital Addressable RGB LED flex strip.
# ---->
import RPi.GPIO as GPIO, Image, time
# Configurable values
filename = "hello.png"
You can’t perform that action at this time.