Browse Source

Adjust default screen brightness down, set on start

master
Adam Pippin 4 years ago
parent
commit
63bd12bffe
  1. 3
      PowerManagement.cpp

3
PowerManagement.cpp

@ -27,7 +27,7 @@ void idle()
void wake() void wake()
{ {
power_state = POWER_STATE_WAKE; power_state = POWER_STATE_WAKE;
M5.Axp.ScreenBreath(12); M5.Axp.ScreenBreath(10);
} }
int PowerManagement(int pid, unsigned int signal) int PowerManagement(int pid, unsigned int signal)
@ -36,6 +36,7 @@ int PowerManagement(int pid, unsigned int signal)
if (signal & SIGNAL_START) if (signal & SIGNAL_START)
{ {
Kernel_signal_mask(pid, SIGNAL_START | SIGNAL_STOP | SIGNAL_INPUT_A | SIGNAL_INPUT_B | SIGNAL_TICK); Kernel_signal_mask(pid, SIGNAL_START | SIGNAL_STOP | SIGNAL_INPUT_A | SIGNAL_INPUT_B | SIGNAL_TICK);
wake();
} }
// Accumulate time every time we run // Accumulate time every time we run

Loading…
Cancel
Save