High Level: Energy
Backlighting is the biggest consumer on the screen.
The Energy library switches it off after a period and resumes it when the screen is touched. |
Energy is an object and thus needs to be declared:
#include "Energy.h" Energy myEnergy; It is then initiated myEnergy.begin(&myLCD, ms); with two parameters
The main loop includes check with an getTouchActivity() as argument c = myLCD.getTouchActivity(); myEnergy.check( c ); if ( c ) { ... } |
This is the first library entirely developed on Xcode with embedXcode.