Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery and switch off (help with programming) #168

Open
BuddiesTV opened this issue Oct 23, 2020 · 1 comment
Open

Battery and switch off (help with programming) #168

BuddiesTV opened this issue Oct 23, 2020 · 1 comment

Comments

@BuddiesTV
Copy link

I have the idea that you have a Battery and can turn off yout phone, but i dont know how i can do this :/
Can you help me?
Please!

@manueljlz
Copy link
Owner

You can do it with a simple counter that validates you every time you open the phone.
Logically that counter must be as var counter = 100 and go down one at a time every X time.
when you get it to decrease you do an if that is checked when opening the gcphone such as if (counter == 0) {black screen for example}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants