Skip to content

Instantly share code, notes, and snippets.

View Jerrylum's full-sized avatar
👀
Given enough eyeballs, all bugs are shallow.

Jerry Lum Jerrylum

👀
Given enough eyeballs, all bugs are shallow.
  • Hong Kong Joint School Technology Education Association
  • Hong Kong
  • 19:41 (UTC +08:00)
  • X @jerrylum10
View GitHub Profile
@Jerrylum
Jerrylum / main.cpp
Last active November 22, 2023 07:09
auton selector on VCS
#include "robot-config.h"
void make_button(int x, int y, int tx, int ty, char *title, vex::color c, int w = 80, int h = 40) {
Brain.Screen.drawRectangle(x,y,w,h,c);
Brain.Screen.setFillColor(c);
Brain.Screen.printAt(x+tx,y+ty,title);
}
bool is_clicked(int bx, int by, int w = 80, int h = 40) {
int x = Brain.Screen.xPosition();
@Jerrylum
Jerrylum / initialize.cpp
Last active June 12, 2019 19:52
PROS, auton selector with LLEMU
//
// Copyright (c) 2018 by CMASS Robotics team. All Rights Reserved.
//
#include "main.h"
#include <string>
#include <cstdarg>
#include <memory>
short _auto_selected_id = 1;