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

Examples to Add #2

Open
34 tasks
FoamyGuy opened this issue Dec 3, 2021 · 2 comments
Open
34 tasks

Examples to Add #2

FoamyGuy opened this issue Dec 3, 2021 · 2 comments

Comments

@FoamyGuy
Copy link
Contributor

FoamyGuy commented Dec 3, 2021

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
@rsbohn
Copy link
Contributor

rsbohn commented Dec 3, 2021

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

@tannewt
Copy link
Member

tannewt commented Dec 3, 2021

We have "tests" for native modules here too: https://github.com/adafruit/circuitpython/tree/main/tests/circuitpython-manual

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

3 participants