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

sleep method added #128

Merged
merged 1 commit into from Aug 18, 2020
Merged

sleep method added #128

merged 1 commit into from Aug 18, 2020

Conversation

lucadentella
Copy link
Contributor

Hi!

ST77xx chip supports a "sleep mode" (the datasheet describes it as "the minimum power consumption mode").
The required opcodes are already present in Adafruit_ST77xx.h:

#define ST77XX_SLPIN 0x10
#define ST77XX_SLPOUT 0x11

but the sendCommand() method is not public so the only way to use them is to create dedicated methods in the library.

I tried to use the same approach of already existing methods (enableDisplay, enableTearing).

This commit also Closes #74

@ladyada
Copy link
Member

ladyada commented Aug 18, 2020

nice thanks~

@ladyada ladyada merged commit 1027082 into adafruit:master Aug 18, 2020
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

Successfully merging this pull request may close these issues.

Lack of SLEEP and WAKE functions
2 participants