This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(Serial.available() >= 4) | |
| { | |
| Header = Serial.read() | |
| // check header | |
| PacketInfo = Serial.read(); | |
| Payload = Serial.read(); | |
| Footer = Serial.read(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*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> |
NewerOlder