This file contains 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
import datetime | |
import json | |
import sys | |
import pynmea2 | |
def gps_deg_to_degmin(deg): | |
deg_only = int(deg) | |
return '%d%.5f' % (deg_only, (deg - deg_only) * 60) |
This file contains 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
/* | |
Copyright 2018 Jan Pomikalek <jan.pomikalek@gmail.com> | |
This file is part of the DAVEga firmware. | |
DAVEga firmware is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
This file contains 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
// ArduinoISP | |
// Copyright (c) 2008-2011 Randall Bohn | |
// If you require a license, see | |
// http://www.opensource.org/licenses/bsd-license.php | |
// | |
// This sketch turns the Arduino into a AVRISP using the following Arduino pins: | |
// | |
// Pin 10 is used to reset the target microcontroller. | |
// | |
// By default, the hardware SPI pins MISO, MOSI and SCK are used to communicate |
This file contains 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
//#define DEV_MODE 1 | |
#include <TFT_22_ILI9225.h> | |
#include <SoftwareSerial.h> | |
#include "tft_util.h" | |
#define TFT_RST 12 | |
#define TFT_RS 9 | |
#define TFT_CS 10 // SS | |
#define TFT_SDI 11 // MOSI |
This file contains 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
#include "datatypes.h" | |
#include "crc.h" | |
#define PACKET_LENGTH_IDENTIFICATION_BYTE_SHORT 2 | |
#define PACKET_LENGTH_IDENTIFICATION_BYTE_LONG 3 | |
#define PACKET_TERMINATION_BYTE 3 | |
#define PACKET_PAYLOAD_MAX_LENGTH 512 | |
// Start byte + packet length bytes + payload + 2 bytes (CRC) + termination byte |