{"id":26509605,"url":"https://github.com/fescron/macropedal","last_synced_at":"2026-05-18T08:05:22.385Z","repository":{"id":283361744,"uuid":"951495662","full_name":"Fescron/macropedal","owner":"Fescron","description":"An Adafruit QT Py RP2040 board used to execute keyboard macros using a pedal or buttons","archived":false,"fork":false,"pushed_at":"2025-03-19T20:32:52.000Z","size":1901,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T21:35:25.589Z","etag":null,"topics":["adafruit","alt-codes","circuitpython","diy","macropad","macros","rp2040","shortcuts"],"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/Fescron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-19T19:12:46.000Z","updated_at":"2025-03-19T20:32:55.000Z","dependencies_parsed_at":"2025-03-19T21:35:51.768Z","dependency_job_id":"1b9c347d-1f90-44b0-80cf-cf355416d8a9","html_url":"https://github.com/Fescron/macropedal","commit_stats":null,"previous_names":["fescron/macropedal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fescron%2Fmacropedal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fescron%2Fmacropedal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fescron%2Fmacropedal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fescron%2Fmacropedal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fescron","download_url":"https://codeload.github.com/Fescron/macropedal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717418,"owners_count":20498296,"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":["adafruit","alt-codes","circuitpython","diy","macropad","macros","rp2040","shortcuts"],"created_at":"2025-03-21T01:19:45.341Z","updated_at":"2026-05-18T08:05:17.347Z","avatar_url":"https://github.com/Fescron.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macropedal\n\n![Shortcut](https://img.shields.io/badge/website-macropedal.brechtve.be-yellow)\n![License](https://img.shields.io/badge/licence-MIT-blue)\n![GitHub last commit](https://img.shields.io/github/last-commit/Fescron/macropedal.svg)\n\n## 1 - Introduction and Construction\n\n\u003cimg src=\"img/pedal.png\" height=400 alt=\"Macropedal\"\u003e\n\nThe *Macropedal* is based on an [Adafruit QT Py RP2040](https://www.adafruit.com/product/4900) and runs code very similar to that of my [Ultimate Adafruit Macropad](https://github.com/Fescron/Ultimate_Adafruit_MacroPad). It was initially developed to be able to execute macropad-like-functionality using a pedal, but due to its generic 4-pin 3.5mm headphone jack it can be connected to any switch(es) (via a [3.5mm 4-pin breakout plug](https://www.adafruit.com/product/2914)).\n\nBecause of the board's size a *35mm film canister* is a perfect fit for an enclosure. Inside it the [Adafruit QT Py RP2040](https://www.adafruit.com/product/4900) is connected to a female 4-pin 3.5mm headphone jack using the following pinout:\n\n- Tip = `A0`\n- Ring1 = `A1`\n- Ring2 = `A2`\n- Sleeve = `GND`\n\n\u003cimg src=\"img/casing.png\" height=300 alt=\"35mm film canister as a casing\"\u003e\n\nAt startup the code detects at if a (mono) pedal is connected, which shorts *Ring1* and *Ring2* to ground. Different initialization code and sequences are activated depending on if the pedal is found or individual buttons are used.\n\n\u003cbr/\u003e\n\n## 2 - Code\n\nAll files and folders inside the [`CIRCUITPY`](CIRCUITPY/) folder are an exact copy of those on the board. [`Keycodes.txt`](CIRCUITPY/Keycodes.txt) serves as a *quick-reference* file for the keycodes. All of the code is placed in [`code.py`](CIRCUITPY/code.py). Some key variables are:\n\n- `KEYBOARD_LAYOUT`: This is used to set the used keyboard-layout\n  - `0` = US QWERTY\n  - `1` = Belgian AZERTY\n  - `2` = Modified Belgian AZERTY (numbers and characters on number-row swapped)\n- `PEDAL_SHORT_PRESS`, `PEDAL_LONG_PRESS`, `PEDAL_SHORT_DOUBLE_PRESS` and `PEDAL_SHORT_LONG_PRESS`: If a pedal is found at boot, the keyboard sequences defined by these variables are executed upon certain pedal-presses\n- `BUTTON_TIP` (and `BUTTON_RING1` and `BUTTON_RING2`, but these are currently not implemented): If no pedal is found, the keyboard sequences defined by these variables are executed upon certain button-presses\n- `DEBOUNCER`: Select which functionality to use when no pedal is detected\n  - `True`: Use `Debouncer()` (available properties: `value`, `fell`, `rose`, `current_duration`, `last_duration`)\n  - `False`: Use `Button()` (available properties: `short_count`, `long_press`, `pressed`, `released`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffescron%2Fmacropedal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffescron%2Fmacropedal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffescron%2Fmacropedal/lists"}