This file contains 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
from machine import I2C | |
from time import sleep, ticks_ms, ticks_diff | |
from servo import Servo, CONTINUOUS | |
from time import ticks_ms, ticks_diff | |
from breakout_vl53l5cx import VL53L5CX, RESOLUTION_8X8 | |
import random | |
# The VL53L5CX requires a firmware blob to start up. | |
# Make sure you upload "vl53l5cx_firmware.bin" via Thonny to the root of your filesystem |
This file contains 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
import os | |
import time | |
import shutil | |
import argparse | |
# Create the argument parser | |
parser = argparse.ArgumentParser(description='Pico Firmware Flasher') | |
parser.add_argument('uf2_file_path', metavar='UF2_FILE', type=str, help='Path to the UF2 file') | |
parser.add_argument('-d', '--drive_letter', type=str, default='D:', help='Drive letter of the Pico (default: D:)') |
This file contains 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
import os | |
import time | |
import shutil | |
import subprocess | |
import signal | |
import sys | |
import argparse | |
#If the applescript stops working or you don't want the function, set enableapplescript to False | |
enableapplescript = True |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |