Skip to content

Instantly share code, notes, and snippets.

View cltnschlosser's full-sized avatar

Colton Schlosser cltnschlosser

View GitHub Profile
from itertools import product
from typing import Dict, Tuple
import sys
melee_as = 3.9
ranged_as = 2.9
ranged_haste = 1.15 * 1.2
auto_damage, steady_damage, raptor_damage, attack_damage = 1463, 1457, 1432, 1207
@cltnschlosser
cltnschlosser / ctc_timer_interrupts.py
Last active August 29, 2015 14:16
Provide a frequency and this will provide the arduino code needed to create a timer interrupt
def OCR(freq, prescaler):
return (16000000 / (prescaler * freq)) - 1
def HZ(ocr, prescaler):
return (16000000 / (prescaler * (ocr+1)))
def checkBit(data, bit):
return bool(data & (1<<bit))
def checkTimerValid(li):