Skip to content

thoughtfix/picocalc-lessons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

picocalc-lessons

License: Apache 2.0

Warning

This code is incomplete and won't always function as expected. While the programs run in Thonny when you click "run" some changes need to be made to get them to run natively on the picocalc.

  • The programs init the display, but the picocalc shell already has it initialized.
  • The programs run their primary code in main() but import scriptname does not execute main() by default.
  • There are a lot more quirks, and more research and tools are being created. Skim picalc_menu_research_full.md for an LLM summary (LLMs can make mistakes - it's being fact checked) of discoveries.

Table of Contents


Overview

There aren’t many MicroPython examples out there for the PicoCalc yet—most demos are advanced or performance-tuned. This repository aims to help fill that gap by providing simple, overly commented, and easy-to-read scripts that help absolute beginners get comfortable with:

  • Drawing to the 320×320 indexed-color display
  • Reading buttons and function keys
  • Implementing basic algorithms (e.g. Game of Life, Snake)

Goals

  • Beginner-focused: Extra comments, verbose variable names, and step-by-step logic
  • MicroPython-only SO FAR: No external C modules or ports—everything runs on the Pico
  • Tested in Thonny: Which is the best way to develop for Pico
  • Open-source lessons: Designed for copy-and-paste re-use in your own projects

Examples

Script Description
keeb.py Detect and print raw key codes & ASCII values
rainbowtest.py Draw 16 color bands and text on the PicoCalc screen
calc_calculator.py UNFINISHED: Scientific calculator
life.py Conway’s Game of Life demo
snake.py Classic Snake with mode options
…and more to come!

Prerequisites

  1. ClockworkPi PicoCalc (with Raspberry Pi Pico 2 or Pico 2 W)
  2. MicroPython drivers flashed onto the Pico
  3. Thonny IDE (or any MicroPython-friendly editor)
  4. Basic familiarity with Python syntax.

Contributing

Your pull requests are more than welcome! Whether it’s:

  • A brand-new demo (e.g. Tetris or Mandelbrot maybe?)
  • Better comments or clearer variable names
  • Bug fixes or performance tweaks I know my code has room for improvement, and hopefully improvements you make will teach future developers down the line.

License

All code is licensed under the Apache License 2.0—feel free to re-use, remix, and redistribute. See LICENSE for details.


Links

Additional Resources

About

Demo software to help people use MicroPython on PicoCalc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages