Skip to content

Instantly share code, notes, and snippets.

View steffex's full-sized avatar

Stefan Jansen steffex

View GitHub Profile
//
// CJCAnonymousFacesFilter.h
// CJC.FaceMaskingDemo
//
// Created by Chris Cavanagh on 11/9/13.
// Copyright (c) 2013 Chris Cavanagh. All rights reserved.
//
#import <CoreImage/CoreImage.h>
@steffex
steffex / teensy-nes-gamepad.c
Last active January 3, 2016 04:49 — forked from cleure/teensy-nes-gamepad.c
Optimised code for nes controller
#include <stdint.h>
// GPIO pins used for connected gamepad
#define CLOCK 21
#define LATCH 20
#define DATA 19
#define DEVICE_METHOD_JOYSTICK 0
#define DEVICE_METHOD_KEYBOARD 1
@steffex
steffex / teensy-nes-gamepad.c
Last active January 3, 2016 04:19 — forked from cleure/teensy-nes-gamepad.c
optimised code for teensy nes controller
#include <stdint.h>
// GPIO pins used for connected gamepad
#define CLOCK 21
#define LATCH 20
#define DATA 19
enum {
NES_BUTTON_A,
NES_BUTTON_B,
#include <stdint.h>
// GPIO pins used for connected gamepad
#define CLOCK 21
#define LATCH 20
#define DATA 19
#define DEVICE_TYPE_NES 0
#define DEVICE_TYPE_SNES 1