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
mixin: | |
- tune-pi4.mixin |
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
import atexit | |
import argparse | |
from datetime import datetime, timedelta | |
from dynamixel_sdk import PortHandler | |
from dynamixel_sdk.robotis_def import COMM_SUCCESS | |
from dynamixel_sdk.packet_handler import PacketHandler | |
import logging | |
from logging.handlers import TimedRotatingFileHandler | |
import os | |
import sys |
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
uint8 module # module to control | |
uint8 command # value to set | |
--- | |
bool success # indicate successful run of triggered service |
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
import cv2 | |
import numpy as np | |
from datetime import datetime | |
import array | |
import fcntl | |
import os | |
import argparse | |
from utils import ArducamUtils | |
import Jetson.GPIO as GPIO | |
from time import sleep |
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
[Unit] | |
Description=COVID-19 Tracker Service | |
After=multi-user.target | |
[Service] | |
User=pi | |
Type=simple | |
WorkingDirectory=/home/pi/CovidTracker | |
ExecStart=/usr/bin/python3 /home/pi/CovidTracker/main.py --update 3600 | |
Restart=on-failure |
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
[Unit] | |
Description=Jupyter Notebook Service | |
[Service] | |
Type=simple | |
User=user | |
ExecStart=/bin/sh -c "jupyter lab --ip=0.0.0.0 --no-browser" | |
WorkingDirectory=/home/user | |
Restart=always |
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
#!/usr/bin/env python3 | |
"""Take screen captures from DS1000Z-series oscilloscopes | |
This program captures either the waveform or the whole screen of a Rigol | |
DS1000Z series oscilloscope, then saves it on the computer as a CSV, PNG | |
or BMP file. | |
The program uses the LXI protocol, so the computer must have a LAN | |
connection with the oscilloscope. | |
""" |
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
#!/bin/sh | |
if [ -z "$SCOPE_IP" ]; then | |
echo "Need to set SCOPE_IP" | |
exit 1 | |
fi | |
if [ -z "$1" ]; then | |
echo "Need to pass filename (without extension) as argument" | |
exit 1 |
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
#!/usr/bin/env bash | |
# 2019 Michael de Gans | |
set -e | |
# change default constants here: | |
readonly PREFIX=/usr/local # install prefix, (can be ~/.local for a user install) | |
readonly DEFAULT_VERSION=4.1.0 # controls the default version (gets reset by the first argument) | |
readonly JOBS=1 # controls the number of jobs | |
# (recommend leaving JOBS to 1 since each `cc1plus` process towards the end of |
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
""" | |
A CircuitPython 'multimedia' dial demo | |
Uses a ItsyBitsy M0 + Rotary Encoder -> HID keyboard out with neopixel ring | |
""" | |
import time | |
import board | |
from digitalio import DigitalInOut, Direction, Pull | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keycode import Keycode |
NewerOlder