kizniche / ttgo-tbeam-ttn-tracker

TTGO T-Beam Tracker for TTN Mapper and TTN Tracker using US (915 MHz) and EU (868 MHz) frequencies
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
GNU General Public License v3.0
262 stars 139 forks source link

'axp' was not declared in this scope #19

Closed schroepfer closed 3 years ago

schroepfer commented 3 years ago

compiling your "main" in Arduino 1.8.13 gets the following error:

_C:\Users\schro\Documents\Arduino\main\screen.ino: In function 'void _screenheader()': screen:44:58: error: 'axp' was not declared in this scope snprintf(buffer, sizeof(buffer), "%.1fV %.0fmA", axp.getBattVoltage()/1000, axp.getBattChargeCurrent() - axp.getBattDischargeCurrent()); ^ exit status 1 'axp' was not declared in this scope

Please can you help? Regards Juergen

schroepfer commented 3 years ago

it is working now! I had to switch to t-beam Version 1.