Skip to main content

MacroPad




Simple Example

import macropad


# Create Pad Instance
lp = macropad.MacroPad()


# Bind function btn_up to Button X0 Y0 with color red and on press color green
@lp.bind(x=0, y=0, colorcode=5, color_on_activate=21)
def btn_up():
    print("X-0 Y-0 PRESSED!")

# Start the Button Listener Thread
lp.start_binding_execution_thread()


# Wait forever
while True: continue


# Only needed if the programm is ending and not killed, without you get some MIDI errors
lp.close()




Stop Button Listener Thread

lp.stop_binding_execution_thread()




Unbind Keys

# Unbind Button X0 Y0
lp.unbind(x=0, y=0)

# Unbind Every Button
lp.unbind_all()




Coltrol Led's

# Turn Led X0 Y0 red
lp.enable_led(x=0, y=0, colorcode=5)

# Turn Led X0 Y0 off
lp.disable_led(x=0, y=0)

# Turn all Led´s off
lp.disable_all_leds()

Release files for macropad 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macropad 1.2.0
File Size Uploaded
macropad-1.2.0.tar.gz 3.4 kB Details

Release files / macropad-1.2.0.tar.gz

Download URL macropad-1.2.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
62ee2883b50a080e64652fb98caed224b8318a90ea6e98c0aa1845d3ef246ff0
BLAKE2b-256 checksum
How to use checksums
091675af5b90a3812d70ca22456bd3194b8ebdf84f9896ae9d45b17ced208584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page