The setthetime funtion does not adjust the GPS time to local time. It sets the RTC to GPS time (UTC).
When doing arithmetic on time values, such as adjusting the timezone, I find it best to use the maketime and...
The return statements are preventing the code doing anything at all.
return (FlapsOBleft_pos, (0));
should presumably be:
FlapsOBleft_pos = 0;
and the other return statements also need to be changed.
Pete
Can you check the output voltage of the smartphone charger with no load and then when it is connected to the T4? It may be producing more than 5V. Chargers aren't power supplies.
Pete
In init_priv you need to change Wire.begin() to Wire2.begin().
Also, remove Wire2.begin(0x27) from the setup function - it will be done by init_priv.
Pete
This code (don't remember where I found it) will scan for I2C devices on Wire, Wire1 and Wire2 on a T4.1.
// i2c_scanner
// http://playground.arduino.cc/Main/I2cScanner
//
// Version 1
// This program (or code...
FastCRC and the website also agree when given the input as a character string.
/*
FastCRC-Example
(c) Frank Boesing 2014
*/
#include <FastCRC.h>
FastCRC8 CRC8;
You have to encode those 24 bits as 3 bytes - in hex they are 0x64,0x29,0x22. This website gives 0x93 as the CRC8 of those three bytes.
FastCRC agrees:
/*
FastCRC-Example
(c) Frank Boesing 2014
*/
#include...