Skip to content

Instantly share code, notes, and snippets.

@micki0271
micki0271 / patch.py
Created September 2, 2022 06:57 — forked from pepijndevos/patch.py
Gowin IDE patcher
#!/usr/bin/python3
import os
import re
import subprocess
import mmap
def patch(filename : str, bytes):
subprocess.run(["cp",filename, filename + '_patched'])
with open(filename + "_patched", "r+b") as f:
@micki0271
micki0271 / bluemarble.py
Created August 2, 2020 06:20 — forked from joeycastillo/bluemarble.py
Display real-time GOES-East imagery on a Waveshare 7-color EPD
# Based on Waveshare's epd5in65f.py demo. Copyright notice at end.
import sys
import os
picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic')
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
if os.path.exists(libdir):
sys.path.append(libdir)
@micki0271
micki0271 / ESP32_HID.ino
Created January 11, 2020 13:07 — forked from sabas1080/ESP32_HID.ino
Example of HID Keyboard BLE with ESP32
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#include "BLE2902.h"
#include "BLEHIDDevice.h"
#include "HIDTypes.h"
#include "HIDKeyboardTypes.h"
#include <driver/adc.h>
BLEHIDDevice* hid;