2021-07-08 (Th) Wearable Macro Keyboard BackOfTheHand BotH Screen timeout

I eliminated the button to decrease the volume on the Media Control page since I controlled volume with a single key and replaced the mute button while I was at it. I added previous and next functions to control my audio playback.

My battery life was still awful, and I looked at how to disable the Bluetooth radio. The command to stop it was easy to find and use, but I couldn't restart it without resetting it. I tried a few different methods, but once it was off, it stayed off. I needed to turn the keyboard off because it interfered with my typing since it made the on-screen keyboard disappear. The compromise I found was to prevent the keyboard from connecting on startup, and now it waits for a keypress. I still used the settings to turn off the radio, but it requires a restart, so I guess it's more of a lock.

The other battery hog was the screen. I kept it from drawing power by adding a timer that counted how long it had been since a keypress, like a computer screensaver. When it timed out, the screen went blank. I still only get 90 minutes from a charge, and the display only reawakens from the encoder wheel, so I still have a few things to debug.
Screen timeout in seconds

The rest of the posts for this project have been arranged by date.
First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.