Skip to content

robertgallup/circuitpython-text_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

circuitpython-text_menu

Author:    	Robert Gallup (bg@robertgallup.com)
License:   	MIT Opensource License (see LICENSE file) 
Compatability: 	CircuitPython 7+

Overview

This is a simple text menu utility to make it easy to have multiple scripts on a CircuitPython and run them without having to rename them to code.py or main.py each time.

Usage + Notes

To use this utility, simply place the code.py file at the root of your CircuitPython drive. Any CircuitPython modules you want to be able to run from the menu must be placed in the root (not in sub-directories).

When the modules are listed, type the letter next to the module you want followed by <enter>. The selected module will run.

A few notes:

  1. Requires CircuitPython 7.0+
  2. Displays and interacts through a serial monitor
  3. Only files with .txt, .py, and .mpy extensions will be listed
  4. code.py and menu.py and any files beginning with "." or "_" will not be listed
  5. The menu will list a maximum of 26 modules (a-z). If you have more modules in your CircuitPython root, "more..." will be displayed following the "z" choice to indicate there are more items on the drive. But, the additional files won't show in the menu.
  6. ctrl+C followed by ctrl+D will exit the current module and restart the menu. If a module ends normally, ctrl+D will re-run the menu.

About

Simple terminal text menu for running modules from CircuitPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages