{"id":22502561,"url":"https://github.com/rberenguel/stackmemo","last_synced_at":"2026-05-18T07:32:45.005Z","repository":{"id":171391481,"uuid":"647115751","full_name":"rberenguel/stackmemo","owner":"rberenguel","description":"A simple spaced repetition system for the M5Stack Core2","archived":false,"fork":false,"pushed_at":"2023-08-16T17:48:43.000Z","size":261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T01:11:16.974Z","etag":null,"topics":["lvgl","m5stack","micropython","supermemo2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rberenguel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-30T05:11:12.000Z","updated_at":"2023-05-31T17:57:42.000Z","dependencies_parsed_at":"2025-02-02T01:10:24.517Z","dependency_job_id":"364e4c73-559c-4dde-b754-fbf33bae47e4","html_url":"https://github.com/rberenguel/stackmemo","commit_stats":null,"previous_names":["rberenguel/stackmemo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Fstackmemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Fstackmemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Fstackmemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rberenguel%2Fstackmemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rberenguel","download_url":"https://codeload.github.com/rberenguel/stackmemo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245937974,"owners_count":20696989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lvgl","m5stack","micropython","supermemo2"],"created_at":"2024-12-06T23:19:26.724Z","updated_at":"2026-05-18T07:32:39.983Z","avatar_url":"https://github.com/rberenguel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StackMemo\n\nA simple spaced repetition system for M5Stack Core2 devices and similar (anything with an ESP32, some storage and a screen would do) based on the SuperMemo2 algorithm.\n\n## Functionality\n\nProvided a python file `qa.py` with questions and answers as the one provided as an example, this will automatically generate (on the device, as you answer questions) a file `memos.json` with intervals and ease factors for each question, as you answer them.\n\n\u003e **Note**\n\u003e _Why a python file and not a json file?_ No particular good reason. I started with python and left it like that, it works.\n\nThe UI is simple:\n- *Turn off button*: the button on top left; saves the current SuperMemo weights and powers off the device. It sleeps for a couple of seconds just in case something needs flushing. You never know.\n- *Show answer*: only available in questions, of course. Shows the answer and enables right/wrong buttons. Also hides the power button because answers tend to be more verbose than questions.\n- *Right/wrong*: only available in answers. Depending on what you pick, it will update the SuperMemo weights internally. Right uses `q=4.5` (almost perfect, perfect would be 5) and wrong uses `q=2` (quite wrong but not horribly wrong)\n- *Question/answer area*: click it to show question information (it's actually just a large button):\n    - `n`: number of times you have answered this question.\n    - `ef`: ease factor for this question.\n    - `i_n`: next \"interval\".\n    - `c`: counter for number of questions answered in this session (until a restart)\n    - `F`: number of questions marked as \"to fix\"\n\nWhen in _Info mode_ (after tapping the question/answer area) the off button hides and a very large button with `To fix` appears. This lets you mark a question as needing editing. This is appended to a file `to_edit.json` and you can interact with it with some `gmake` commands.\n\nQuestions are shown starting from the smallest interval, but I don't use the Core2 RTC, I just keep showing questions ordered by `i_n`. Hacky: it won't give the full benefits of spaced repetition unless you \"stop reviewing\". But kind of gets the job done in showing \"worse\" questions first, which is what I wanted.\n\nThere is some minor reformatting of markdown tags in questions and answers, where `*`, `_` and `\\`` are used to change text colors.\n\n\u003e **Note**\n\u003e Sometimes it hangs on start or on power off, seems to only happen while plugged to a computer. I'm not sure if there's a bug in the `to_edit` functionality, or I didn't test it well enough in the first iteration. But if it happens, a hardware (button, either reset or long-press to power off) or software (`gmake reset`) fixes it. It only seems to happen at start time, so no data loss.\n\n## Installing\n\nYou need to get some form of micropython with `lvgl` on your board. In my case, I used [this one](https://github.com/lemariva/micropython-core2).\n\nNext, easiest is to install `adafruit-micropython` (see [here](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy)) and execute `make upload device=DEVICEPATH`, device path will be something like `/dev/…`.\n\n## Some images\n\n| Question                            | Information                         | Answer                            |\n| ----------------------------------- | ----------------------------------- | --------------------------------- |\n| \u003cimg width=300 src=\"imgs/q.jpg\"/\u003e   | \u003cimg width=300 src=\"imgs/i.jpg\"/\u003e   | \u003cimg width=300 src=\"imgs/a.jpg\"/\u003e |\n\n\n\n\n\n## Algorithm\n\nThis thingy uses SuperMemo 2:\n\n   Algorithm SM-2, © Copyright SuperMemo World, 1991.\n\n   https://www.supermemo.com\n   https://www.supermemo.eu\n\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frberenguel%2Fstackmemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frberenguel%2Fstackmemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frberenguel%2Fstackmemo/lists"}