Skip to content

Instantly share code, notes, and snippets.

@davidatroberts
davidatroberts / ChumbyDockerFile
Last active June 30, 2021 02:20
Dockerfile for Chumby SDK
FROM amd64/ubuntu:20.04
RUN apt-get update && apt-get install -y \
wget \
tar \
sudo \
cmake \
libc6-i386
RUN cd /tmp
RUN wget http://files.chumby.com/toolchain/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
@davidatroberts
davidatroberts / distance.pde
Created April 27, 2019 13:38
Arduino distance sensor
int input = 8;
int redPin = 12;
int greenPin = 11;
int val = 0;
void setup() {
pinMode(input, INPUT);
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
@davidatroberts
davidatroberts / Temperature.pde
Created April 27, 2019 13:29
Display temperature with arduino
#include <OneWire.h>
#include <DallasTemperature.h>
// pin setups
int latchPin = 8;
int clockPin = 12;
int dataPin = 11;
int tempPin = 7;
// librraries for connecting to sensor
@davidatroberts
davidatroberts / MakefileRS97
Last active February 3, 2019 20:55
RS97 Makefile
TARGET := output.dge
TOOLCHAIN = /opt/rs97-toolchain
CPP := $(TOOLCHAIN)/bin/mipsel-linux-g++
STRIP = $(TOOLCHAIN)/bin/mipsel-linux-strip
SRC_DIR = src
OBJ_DIR = obj
BIN_DIR = bin
@davidatroberts
davidatroberts / PacmanGhostLampLIRC.conf
Created February 14, 2017 21:07
The Linux Infrared Remote Control (LIRC) config for the Pacman Ghost lamp
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Mon Feb 13 21:46:27 2017
#
# contributed by
#
# brand: ghost.conf