Skip to content

Instantly share code, notes, and snippets.

@randomtestfive
randomtestfive / lightboy.ino
Created March 22, 2022 00:22
red alert 1741 light boys
#include "Keypad.h"
#include "EEPROM.h"
const byte col = 4;
const byte row = 4;
char keys[row][col] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
@randomtestfive
randomtestfive / blog-charts.R
Created March 13, 2020 16:49
create charts for blog post
library(tidyverse)
library(shadowtext)
library(ggplot2)
winrate = read.csv("winrates.csv", header=F)
everything = read.csv("big_scrape.csv")
hlteams = everything %>% filter(team == "frc254" | team == "frc1741" | team == "frc6372" | team == "frc558" | team == "frc3933")
ggplot(everything) +
package org.redalert1741.robotbase.input;
import edu.wpi.first.wpilibj.GenericHID;
public class Guitar extends GenericHID {
public Guitar(int port) {
super(port);
}
package csvconvert;
import java.util.Scanner;
public class Convert
{
public static void main(String[] args)
{
//change /frccsv.csv to filename (absolute)
Scanner s = new Scanner(Convert.class.getResourceAsStream("/frccsv.csv"));
placeBot.tiles = [
[0,171,3],
[1,171,3],
[2,171,2],
[3,171,5],
[4,171,5],
[5,171,5],
[6,171,5],
[7,171,3],
[8,171,3],