Skip to content

Instantly share code, notes, and snippets.

View soimy's full-sized avatar
🎯
Focusing

Shen Yiming soimy

🎯
Focusing
View GitHub Profile
@soimy
soimy / fanctrl.py
Created September 20, 2022 17:05
Orange Pi Zero cooling fan control script
# Do the imports
import os
import sys
# OPi Library and instructions: https://pypi.org/project/OrangePi.GPIO/
import OPi.GPIO as GPIO
import time
from datetime import datetime
# from time import sleep
# Orange Pi Setup
# GPIO.setboard(GPIO.ZERO)
@soimy
soimy / generic-ramps-fd-v2.2.cfg
Last active September 25, 2022 05:31
Klipper settings for board RAMPS-FD v2, with Ultimaker Controller Frontpanel and OLED screen attached.
# Klipper `make menuconfig`, choose
# Micro-controller Arch (SAM3/SAM4/SAM E70 (Due and Duet))
# Processor model (SAM3x8e (Arduino Due))
# Communication interface (USB)
# Better connect to Programing port to flash firmware
# If encounter error during flash, try to run:
# stty -f /dev/ttyACM0 1200 && ../lib/bossac/bin/bossac --port=/dev/ttyACM0 --force_usb_port=true -e -w -v -b /path/to/my/firmware.bin -R
# manually to flash
#