Skip to content

Instantly share code, notes, and snippets.

drtrigon /
Created Jun 26, 2016
The Hitchhiker’s Guide to Packaged Code!
# -*- coding: utf-8 -*-
Externals modules automatic setup checker and installer for various OS.
# (C) DrTrigon, 2013
# (C) Pywikipedia team, 2013
drtrigon / log
Last active Jul 27, 2018
OWPJON - Local bus going through walls / outdoors -
View log
$ ./
4.578000068664551, HEX: 0xFA 0x7E 0x92 0x40
31.303279876708984, HEX: 0x1E 0x6D 0xFA 0x41
5.051000118255615, HEX: 0xCB 0xA1 0xA1 0x40
96095.921875, HEX: 0xF6 0xAF 0xBB 0x47
6120.0, HEX: 0x00 0x40 0xBF 0x45
38, 0, 0, 215, 1, 0, 0, 77 HEX: 0x26 0x00 0x00 0xD7 0x01 0x00 0x00 0x4D
View firmware.c
#include <stdint.h>
#define NULL 0
//#define LED (*(volatile uint32_t*)0x02000000)
#define LED (*(volatile uint32_t*)0x03000000)
#define reg_uart_clkdiv (*(volatile uint32_t*)0x02000004)
#define reg_uart_data (*(volatile uint32_t*)0x02000008)
View HIDJoy.cpp
//This Modifed version of VUSB was created in part by Rickey Ward, the USB HID descriptor
//was designed to be generic and useful, feel free to use this code to develop cool
//arduino based gamepads!
#include "HIDJoy.h"
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h> /* for sei() */
#include <util/delay.h> /* for _delay_ms() */