GithubHelp home page GithubHelp logo

4dcu-be / macropad Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 893 KB

All code for setting up a raspberry pi powered macropad

License: MIT License

Python 100.00%
macropad adafruit python streamdeck raspberry-pi raspberry-pi-pico raspberry-pi-pico-rp2040 rp2040 rpi-pico circuitpython

macropad's Introduction

MacroPad

All code and files for setting up a Raspberry Pi Pico powered MacroPad.

Image of the completed MacroPad

For more instructions/information check out the blog posts about this keyboard:

Building the MacroPad

Here is an overview of all items you'll need to build a MacroPad just like the one above. More detailed instructions can be found the blog here

  • 1x a MacroPad case (3D printed from STL files)
  • 1x a Raspberry Pi Pico
  • 9x Mechanical keyboard switches (Gateron, Cherry MX, Kailh… should all fit)
  • a set of keycaps (e.g. for numpad keys)
  • 9x 1.8 mm 2V LEDs (current 15-20 mA) (optional)
  • 9x 82 Ohm resistors (optional)
  • 1x a switch opener (optional)
  • 4x M3 bolts (14-16mm long)
  • some heat-shrink tubing
  • wire, single core and flexible
  • soldering equipment
  • a third hand tool
  • a hot-glue gun
  • a USB-micro cable

You'll have to wire everything as shown in the schematic below:

Image of how to connect buttons, LEDs to the Pi Pico

Getting the cables the right lenght to fit in the case while still being long enough to hot-glue the pico in place at the end can be tricky. Test fit frequently !

Preparing the Raspberry Pi Pico

You'll need to install CircuitPython and the ADAFruit HID library.

Installing the code

Simply copy the code from the ./code folder to the root folder of the Pi Pico. In case you wish to change the button map, have a look at code.py.

Image of the completed MacroPad

macropad's People

Contributors

sepro avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

macropad's Issues

Make LEDs optional

LEDs aren't a must have feature for most, package should allow for this (remove LED support from macropad class and create a new child class that inherits all behaviour and adds LED support on top?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.