I prefer platformio over the arduino IDE because
it automatically does library dependencies and
has lots of other goodness.
To build and install to a connected device just do:
pio run
Fixed frame counter (was unsigned char, should have been uint_32) which caused TTN to ignore device after 255 frames and rollover when frame count checks enabled
Turned off link checking when ADR not in use as it was forcing confirmed links
Added display of battery charging status