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

Add method to switch to shutdown mode #7

Open
jose1711 opened this issue Aug 4, 2022 · 0 comments
Open

Add method to switch to shutdown mode #7

jose1711 opened this issue Aug 4, 2022 · 0 comments

Comments

@jose1711
Copy link

jose1711 commented Aug 4, 2022

From datasheet:

The devices include a 150μA low-power shutdown mode..
..
Shutdown Mode
When the MAX7219 is in shutdown mode, the scan oscillator is
halted, all segment current sources are pulled to ground,
and all digit drivers are pulled to V+, thereby blanking the
display. The MAX7221 is identical, except the drivers are
high-impedance. Data in the digit and control registers
remains unaltered. Shutdown can be used to save power
or as an alarm to flash the display by successively entering
and leaving shutdown mode. For minimum supply current
in shutdown mode, logic inputs should be at ground or V+
(CMOS-logic levels).

It is possible to initiate the shutdown mode by calling a private method:

display._write(const(12), 0)

but calling a public method (e. g. display.shutdown) would be nicer.

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

1 participant