Skip to content

Instantly share code, notes, and snippets.

View TomMinor's full-sized avatar

Tom Minor TomMinor

View GitHub Profile
if(Serial.available() >= 4)
{
Header = Serial.read()
// check header
PacketInfo = Serial.read();
Payload = Serial.read();
Footer = Serial.read();
@TomMinor
TomMinor / gist:855879407c5acca83225
Created October 25, 2014 16:44
C SDL2-ttf ( modified from LazyFoo )
/*This source code copyrighted by Lazy Foo' Productions (2004-2014)
and may not be redistributed without written permission.*/
//Using SDL, SDL_image, SDL_ttf, standard IO, math, and strings
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <stdio.h>
#include <math.h>