Skip to content

Instantly share code, notes, and snippets.


Benjamin Jacobs ttocsneb

View GitHub Profile
ttocsneb / main.json
Last active Jun 13, 2019
A test config for a bot
View main.json
"lookups": {
"test": {
"desc": "a basic 5e stats test",
"uri": ""
ttocsneb / color.ino
Last active Feb 16, 2020
Moon Light software. This is for my father's birthday present: a light up moon, read more on my blog
View color.ino
#include <stdlib.h>
Color::Color(uint8_t r, uint8_t g, uint8_t b) {
this->r = r;
this->g = g;
this->b = b;
uint32_t Color::to32() {
return ((uint32_t)r << 16) | ((uint32_t)g << 8) | b;
ttocsneb / debug.h
Last active Jan 31, 2018
include debug.h to c++ projects using std::cout to enable macro debugging, enable debugging by defining DEBUG
View debug.h
#ifndef __DEBUG_H__
#define __DEBUG_H__
This Debug Header is used improve debugging.
#define DEBUG