Skip to content

Instantly share code, notes, and snippets.

@hcs64
hcs64 / gs_arduino_direct.ino
Created July 10, 2014 06:28
gsuploader via arduino
#include <string.h>
#define DIRECT 1
#define VERIFY 0
const int out_pins[5] = {3,2,0,1,4};
const int in_pins[5] = {22,21,20,19,18};
void setup_pins() {
for (int i = 0; i < 5; i++) {
// first byte
if (_mod_packets)
{
// need to rebuild packet type and window info
if (!mode_blockflag)
{
throw Parse_error_str("didn't load mode_blockflag");
}