I have a lot of boards and usually need to re-use code even for different projects.
cube 3f0d0785a1 init 2 months ago
..
BasicReachMoveTracker.py init 2 months ago
README.md Update 'CARDPUTER CircuitPython/projects/README.md' 7 months ago
text_editor.py only interacts with .txt files for simplicity 9 months ago

README.md

Projects

These projects should all run on the Cardputer in CircuitPython. Extra libraries may be needed from the CircuitPython library bundle - import errors will tell you what you need :P

When using a file in CircuitPython, it needs to be renamed to "code.py" as this is what cPy will look for when running.

Text Editor

A mostly functional, but incredibly basic text editor.

Features

  • Cursor-less text editing (remember how Minecraft book writing used to feel like? Yeah. That.)
  • Save file - You only have to type the filename; the ".txt" extension will be automatically added.
  • Open file - You can select from a list of files in the SD card. Still no line scrolling here, so only the first 7 files will be visible
  • If you open a file, the save menu conveniently fills in the filename for you, so you don't have to write it again to re-save.

Dependencies

  • Keyboard library from this repository
  • adafruit_display_text from the bundle

Issues

  • No line scrolling. Once you exceed 7 lines, you're guessing, bud
  • No folder support. It will only show text (.txt) files in the root /sd folder.
  • There are no confirmation or warning messages. Use with caution and be sure that you aren't using a repeat filename, or it will overwrite the file without warning.