The Keep Awake block resets the EV3 Brick sleep timer. Use this block if your program needs to wait for longer than the EV3 Brick Sleep Setting. The Sleep Setting is configured using the EV3 Brick Interface.
Time Until Sleep Output
Modes
Keep Awake
The Time Until Sleep output shows how many milliseconds remain before the EV3 Brick is due to go into sleep mode. Since the Keep Awake block resets the EV3 Brick sleep timer immediately after this block runs, the Time Until Sleep will be the same as the Sleep Setting.
The Keep Awake block only has one mode.
Example 1
You can use this program to see the EV3 Brick Sleep Setting because the EV3 Brick sleep timer will reset when the program starts. This program shows the Time Until Sleep on the EV3 Brick Display.
Example 2
This program uses the Touch Sensor as a doorbell. The Keep Awake block runs every 2 minutes to stop the EV3 Brick from going to sleep.
Warning: your EV3 Brick batteries will go flat if you don’t ring the doorbell or stop this program!
Outputs
To use an output, use a Data Wire to connect it to another Programming Block.