Skip to content

Instantly share code, notes, and snippets.

@salami738
salami738 / Gamepad_and_ADC_UART.ino
Created February 16, 2018 21:07
Gamepad_and_ADC_UART.ino
#include <Joystick.h>
#include <EEPROM.h>
// Uses Serial = USB UART
//#define DEBUG
// Uses Serial1 = HW Serial 5V logic
#define USE_UART_CONTROL
@salami738
salami738 / control_osd_and_specialbuttons.py
Created February 16, 2018 21:05
control_osd_and_specialbuttons.py
#!/usr/bin/python
#
# Skript sollte mittels der folgenden Zeile in der crontab hinterlegt werden:
# @reboot /home/pi/display_overlay/control_osd_and_specialbuttons.py >/tmp/osd.py.log 2>&1
#
# TODO Shift button einlesen und Befehle ausfuehren
#
import RPi.GPIO as GPIO
import array
import os
@salami738
salami738 / gist:431c5313d0ab773e28c21d8adba513c7
Last active December 12, 2017 13:21
Guide to use a DPI display for your gameboy zero

Description TODO

What you need

Hardware

  • Raspberry
  • Display: 3,5" 320x240px (lq035nc111) or 640x480px (pd035vx2). Other displays are possible, but untested
  • FPC/FFC breaktout board (display has 54 pins, but only 60 pin breakouts can be bought)
  • LED backlight driver (20V, 20mA) for code1, TODO for code2