circuitpython/CircuitPython_Module_Examples

Examples to Add

FoamyGuy opened this issue · 2 comments

I have a list of examples that I'd like to get added floating around in my mind so I'm going to get them written down here.

I will eventually get to adding all of these. But if anyone else comes along and see's something they think they could tackle please feel free to send a PR.

Also I'm sure my list is not comprehensive so if you have ideas for things that would make other good examples please feel free to follow up with a comment adding some more.

  • vectorio examples
    • Circle
    • Rectangle
    • Polygon
    • Changing size and shape
    • Changing position
  • Tilegrid examples
    • basic animations (similar to Party Parrot projects in learn)
    • different icon states (i.e. battery with a few different fill levels)
    • Using a small spritesheet to create a larger frame visual on the display
  • storage
    • boot.py to make storage writable (ideally tied to a pin state so it can be changed externally at boot time)
    • read from a file
    • write to a file
    • using JSON for data storage
    • using JSON for config file to alter code.py behavior
  • msgpack
    • pack arbitrary python objects into bytes
    • unpack back into python objects.
  • alarms / sleep
    • sleep for certain amount of time
    • sleep until pin state changes
  • bitmaptools
    • rotozoom
    • fill_region
    • alpha_blend
    • boundary_fill
    • draw_line
    • arryblit
    • read_into
    • dither
  • aesio
    • encrypt_into
    • decrypt_into

I just submitted a PR with a simple terminalio example. An expanded example would show how to use VT100 escape codes.