Skip to content

Instantly share code, notes, and snippets.

View ubidefeo's full-sized avatar

Ubi de Feo ubidefeo

View GitHub Profile
@orangkucing
orangkucing / GoPro-HerobusPinout.md
Last active January 15, 2023 05:01
Herobus pinout of GoPro Hero 3+ Black
pin I/O label description remark
1 - GND ground
2 I/O I2CSCL I²C clock (pulled up by camera)
3 I/O I2CSDA I²C data (pulled up by camera)
4 - GND ground
5 I BATTIN battery input
6 I BATTIN battery input
7 O 3V8OUT unregulated power out 3.8V 0V when camera is off.
8 O 3V8STBY unregulated power out 3.8V always keep 3.8V unless battery is out.
@DenisFromHR
DenisFromHR / RPi_I2C_driver.py
Last active December 1, 2023 21:05
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
@IntegersOfK
IntegersOfK / combos.py
Created July 21, 2016 14:03
A python sample snippet for reordering bip39 mnemonic seed words into a valid bip39 seed (corrects word order to fix checksum/compliance with bip39)
#This snippet takes words intended for a bip39 mnemonic seed as a list and reorders them into a seed where the checksum validates.
#Often people want to choose their own seed words but the resulting order doesn't adhere to the bip39 specification,
#This is a way to force your favourite words into a valid hd bip39 seed. Disclaimer: Use true random entropy to select your words!
#All possible combinations are written to a text file, but that's probably going to be a lot of choice so you should probably
#Limit the number of itterations or cancel it a ways into processing
import itertools
import os
import binascii
import mnemonic
anonymous
anonymous / miniTSos09.ino
Created April 21, 2017 08:03
mini-TS OS v0.9
#define SSD1306_SDA 4
#define SSD1306_SCL 5
#define SSD1306_SA 
0x78  // Slave address
 
-- Version 0.6
-- New In 0.5
-- Delay time is now in milliseconds
-- Unused vars deleted
-- New in 0.6
-- Saves artwork as comment
-- Original here: https://github.com/alexjohnj/spotijack/
set delay_time to 0.1