Add possibilty to shut down the calculator (with shift+AC/ON) directly from PythonExtra #7

Closed
opened 2024-01-10 20:12:09 +01:00 by Slyvtt · 1 comment
  • Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, or any sort of "how do I?" requests, please use the Discussions tab or raise a documentation request instead.

  • Describe the feature you'd like to see added to MicroPython. In particular, what does this feature enable and why is it useful. MicroPython aims to strike a balance between functionality and code size, so please consider whether this feature can be optionally enabled and whether it can be provided in other ways (e.g. pure-Python library).

  • For core Python features, where possible please include a link to the relevant PEP.

  • For new architectures / ports / boards, please provide links to relevant documentation, specifications, and toolchains. Any information about the popularity and unique features about this hardware would also be useful.

  • For features for existing ports (e.g. new peripherals or microcontroller features), please describe which port(s) it applies too, and whether this is could be an extension to the machine API or a port-specific module?

  • For drivers (e.g. for external hardware), please link to datasheets and/or existing drivers from other sources.

  • Who do you expect will implement the feature you are requesting? Would you be willing to sponsor this work?

  • Remove all placeholder text above before submitting.

* Please search existing issues before raising a new issue. For questions about MicroPython or for help using MicroPython, or any sort of "how do I?" requests, please use the Discussions tab or raise a documentation request instead. * Describe the feature you'd like to see added to MicroPython. In particular, what does this feature enable and why is it useful. MicroPython aims to strike a balance between functionality and code size, so please consider whether this feature can be optionally enabled and whether it can be provided in other ways (e.g. pure-Python library). * For core Python features, where possible please include a link to the relevant PEP. * For new architectures / ports / boards, please provide links to relevant documentation, specifications, and toolchains. Any information about the popularity and unique features about this hardware would also be useful. * For features for existing ports (e.g. new peripherals or microcontroller features), please describe which port(s) it applies too, and whether this is could be an extension to the machine API or a port-specific module? * For drivers (e.g. for external hardware), please link to datasheets and/or existing drivers from other sources. * Who do you expect will implement the feature you are requesting? Would you be willing to sponsor this work? * Remove all placeholder text above before submitting.
Owner

Implemented in gint by https://gitea.planet-casio.com/Lephenixnoir/gint/issues/26 (5655699cd8 then fd5a70e21b), JustUI with ef71bc11c0, and a small tweak to get delayed SHIFT/ALPHA with JustUI in PythonExtra in 3a3ad0e155.

This works in all situations where Python code is not actively running. When used in the console pressing SHIFT as part of the SHIFT+AC/ON combo will toggle SHIFT mode as usual, which might be a bit confusing.

Implemented in gint by https://gitea.planet-casio.com/Lephenixnoir/gint/issues/26 (https://gitea.planet-casio.com/Lephenixnoir/gint/commit/5655699cd87317de80ab373c97faf1dc9de1bb3d then https://gitea.planet-casio.com/Lephenixnoir/gint/commit/fd5a70e21b4ac0538ed7452388e9ea84109eafab), JustUI with https://gitea.planet-casio.com/Lephenixnoir/JustUI/commit/ef71bc11c0634fc575164e40bfe4afa6688c3fd9, and a small tweak to get delayed SHIFT/ALPHA with JustUI in PythonExtra in https://gitea.planet-casio.com/Lephenixnoir/PythonExtra/commit/3a3ad0e15542451d7c4018d741e76ca5262157db. This works in all situations where Python code is not actively running. When used in the console pressing SHIFT as part of the SHIFT+AC/ON combo will toggle SHIFT mode as usual, which might be a bit confusing.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Lephenixnoir/PythonExtra#7
No description provided.