Skip to content

Instantly share code, notes, and snippets.

@LFGAutomotive
LFGAutomotive / pwmtest.py
Created March 31, 2023 16:40
Pi Pico PWM Testing Code
import machine
import time
# Variables
pwm_frequency = 600 # PWM Frequency in Hz
pwm_duty_cycle = 0 # PWM Duty Cycle in percentage
output_pin = 4 # Output Pin number
adc_pin = 28 # Analog temperature sensor pin number
# Light timing variables
@LFGAutomotive
LFGAutomotive / VMware vSphere 6.x Licence Keys
Created November 30, 2022 03:10 — forked from CHSuworatrai/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@LFGAutomotive
LFGAutomotive / deduplicate_raw.py
Created October 24, 2022 15:54
Deduplicate RAW .CR3 Photos based on Canon EXIF data
from exiv2 import ImageFactory as img
from exiv2 import enableBMFF
import os
from tqdm import tqdm
import csv
# Enable support for Canon CR3 files
enableBMFF()
folder = "S:/RAW/"
@LFGAutomotive
LFGAutomotive / lcsc-search-api.py
Created October 18, 2022 20:26 — forked from Bouni/lcsc-search-api.py
LCSC search API
from pprint import PrettyPrinter
import requests
pp = PrettyPrinter()
def query(search)
url = f"https://wwwapi.lcsc.com/v1/search/global-search?keyword={search}"
r = requests.get(url)
pp.pprint(r.json())