This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Successful test on 0.3mm with 4.5mm balls: | |
// ball_r = 4.5/2, | |
// center_ext_p = 0.25, | |
// vert_ext_p = 0.2, | |
// ball_slop_r = 0.15 | |
// | |
// The two halfs were super close, could stand to increase | |
// clearance a lil. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Installs BOSSA 1.9.1 from source on debian based systems. | |
# Author: twitchyliquid64 | |
# | |
# Copyright (c) 2019 twitchyliquid64. All rights reserved. | |
# | |
# This work is licensed under the terms of the MIT license. | |
# For a copy, see <https://opensource.org/licenses/MIT>. | |
URL='https://github.com/shumatech/BOSSA/archive/1.9.1.tar.gz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m := crapmod.o | |
module_name-objs := crapmod.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean | |
load: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import serial | |
import time | |
# Use can use the bus pirates' scan mode to find these. | |
deviceAddress = [0x4e] | |
# Corresponds to pins | |
LCD_BACKLIGHT = 0x08 | |
LCD_ENABLE = 0b00000100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// NOTE: You need to install 'unicorn' library from https://github.com/unicorn-engine/unicorn first. | |
import ( | |
"encoding/binary" | |
"fmt" | |
"io/ioutil" | |
uc "github.com/unicorn-engine/unicorn/bindings/go/unicorn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"errors" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you install pyusb and libusb on your system yo | |
import usb.core | |
import usb.util | |
import usb.control | |
HID_INTERFACE = 0x02 | |
INPUT_ENDPOINT = 0x83 | |
OUTPUT_ENDPOINT = 0x3 | |
HID_PKT_SIZE = 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setuppi.py | |
# Author: twitchyliquid64 | |
# Automatically modifies a raspbian .img file to: | |
# - Set a static IP address, gateway, and DNS server | |
# - Enable SSH | |
# - Set a hostname. | |
# | |
# Tested and working with a default install of Ubuntu 16.04 | |
# USAGE: python setuppi.py <imagefile> | |
# EG: sudo python setuppi.py 2017-04-10-raspbian-jessie-lite.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
//Exposes a MJPEG stream of the connected camera in pure-Go. | |
//Linux/Raspberry pi only. | |
//Author: twitchyliquid64 | |
// | |
//This script shows how to: | |
//1. Use blackjack's awesome V4L2 library to open a connected camera, | |
//2. Setup the format / frame size of the connected camera | |
//3. Optionally transcode YUYV format to JPEG |