Skip to content

Instantly share code, notes, and snippets.

// WORKING VERSION WITH RENARD PROTOCOL USING SERIAL3 (PINS 14 TO FTDI RX AND 15 TO FTDI TX)
// This code was written by Victor Perez for doityourselfchristmas.com based on the code from Zparticle, Si_champion and Neil Tapp.
// To adapt the code to your case, just change this top section, with the #define lines.
// Includes the watchdog timer library
#include <avr/wdt.h>
// KG add for renard. Include the Arduino Renard library by Bill Porter
#include <Arduino-Renard.h>
Aug 25 10:27:05 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:27:06 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:27:06 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:40:45 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:42:51 Tower root: Fix Common Problems Version 2022.08.24
Aug 25 10:42:54 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:42:55 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:42:55 Tower root: Plex-Meta-Manager: Could not download icon https://metamanager.wiki/en/latest/_static/pmm.png
Aug 25 10:43:51 Tower root: Fix Common Problems Version 2022.08.24
Aug 25 10:43:53 Tower root: Plex-Met
@jakabo27
jakabo27 / ArchRob_Project1.ino
Created September 16, 2020 02:19
Architectural Robotics Project 1 for ECE 8680 at Clemson Fall 2020
/*
Name: ArchRob_Project1.ino
Created: 9/5/2020 12:10:28 PM
Author: JACOBT-DESKTOP\Jacob
*/
#include <Servo.h>
#include <Stepper.h>
const int STEPS = 32;
const int StepsPerRotation = 2048; // 2048 steps to 360° of total rotation of motor
@jakabo27
jakabo27 / mp4_to_jpgs_frames.sh
Last active March 25, 2020 17:08
Extract frames between X and Y from an MP4 using FFMPEG
#!/bin/bash -e
# To run: mp4_to_jpgs_frames.sh 00000123 "generated/SpaghettiJPEGS" 5 25
if [ -z "$2" ]; then
output_dir=generated/unlabelled_jpgs
else
output_dir=$2
fi
@jakabo27
jakabo27 / Rename File.gs
Created March 22, 2020 02:44
Renames a file submitted through a Google Form. Mine is set up to rename it to the email (before the @) and then the name the person typed in. So if jat5@g.clemson.edu submitted it with the name IronMan, the file would be "jat5 - IronMan.mp4"
function RenameFile() {
var form=FormApp.getActiveForm();
var length=form.getResponses().length; // returns the total number of form submissions
//replace QUESTION NUMBER through the index of the question prompting the file upload - keep in mind that the first question has the index
var FILESUB = 0; //Where this is the question number starting at 0 that is the file submission. In my file it's the first question. Text description boxes don't count
var id=form.getResponses()[length-1].getItemResponses()[FILESUB].getResponse();
// Logger.log('id = '+ id);
@jakabo27
jakabo27 / LightStopGameJT.ino
Created October 3, 2019 18:53
Light Stop Game for Clemson Makerspace Hackerday 2019
// FastLED Setup
#include <FastLED.h>
#define NUM_LEDS 40
#define DATA_PIN 5
#define BUTTON_PIN 8
#define MOVINGSPOT CRGB(0,0,255);
CRGB leds[NUM_LEDS];
volatile boolean waitingForButton = true;
byte globalBright = 60; //The max brightness for the strip
void __ISR(3) JacobIsCool_Int1(void){
//Read in values
//A rising edge
//CW 1 to 2
//CCW 4 to 3
//A falling edge
//CCW 2 to 1
//CW 3 to 4
//Keep count between 0 and 15
//Write to LEDs
void ISR THINGY JacobIsCool(void) {
//Turn on all 4 lights
// wait a second
//Clear flag
}
main(){
//Set LED Pins to OUTPUT
//Set the interrupt pin to input
/* Tell controller Interrupts can happen */
#include <plib.h>
//This is here to make timing calculations easier!
#pragma config FPBDIV = DIV_2
//r is a Rest. The value doesn't matter, it just has to be unique (not another note)
#define r 3000
//I added another octave of notes that they didn't give us
//Cs = C sharp. Eb = E flat. Everything else is normal.
//lowest notes
/*
* 0 = 0
* 1 = 25% forward
* 2 = 50% forward
* 3 = 75% forward
* 4 = 100% forward
* 5 = 0 back
* 6 = 25% back
* 7 = 50% back
* 8 = 75% back