This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |