Skip to content

Instantly share code, notes, and snippets.

View eighthree's full-sized avatar

Timothy Garcia eighthree

View GitHub Profile
@eighthree
eighthree / square3dline.py
Last active October 22, 2019 17:26
cp square 3D
import time
import analogio
import digitalio
import board
import gamepadshift
import displayio
import math
import random
from adafruit_display_shapes.circle import Circle
@eighthree
eighthree / adafruit_ssd1306.py
Created December 22, 2018 05:57
OLED Display
# The MIT License (MIT)
#
# Copyright (c) 2017 Michael McWethy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
(gdb) break supervisor_flash_init_vfs
Breakpoint 6 at 0x2b512: file ../../supervisor/shared/flash.c, line 190.
(gdb) load
Loading section .text, size 0x35b84 lma 0x2000
Loading section .ARM.exidx, size 0x8 lma 0x37b84
Loading section .data, size 0x17c lma 0x37b8c
Start address 0x2000, load size 220424
Transfer rate: 35876 KB/sec, 13776 bytes/write.
(gdb) monitor reset
Resetting target
@eighthree
eighthree / 3-42-mpconfigboard.h
Last active November 21, 2018 19:15
espress0 board definition
#define MICROPY_HW_BOARD_NAME "Espress0"
#define MICROPY_HW_MCU_NAME "samd21e18"
// Rev B - Black
#define MICROPY_HW_APA102_MOSI (&pin_PA00)
#define MICROPY_HW_APA102_SCK (&pin_PA01)
// Salae reads 12mhz which is the limit even though we set it to the
// safer 8mhz.
#define SPI_FLASH_BAUDRATE (8000000)
Contributor Covenant Code of Conduct
Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to
making participation in our project and our community a harassment-free experience for everyone, regardless of age,
body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance,
race, religion, or sexual identity and orientation.
Our Standards
@eighthree
eighthree / hypem0.py
Created November 19, 2017 22:57
USB Keyboard + Power Management for Raspberry Pi
import time
import busio
from adafruit_ina219 import INA219
from digitalio import DigitalInOut, Direction, Pull
import board
from board import *
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
@eighthree
eighthree / hypem0
Last active November 19, 2017 22:58
Code that runs a bunch of things for diy retropie build
/* Hyperbox 1.0
* USB Serial interface using a Cortex M0 dev board + sensors for use with
* a Raspberry Pi.
*
* Current Consumption/Battery Level monitor + Keyboard HID
*
* Made specifically for use with a Hyperpixel display from Pimoroni
* https://github.com/pimoroni/hyperpixel
* as it uses up all the GPIO's on a Pi.
*