Read the statement by Michael Teeuw here.
MMM-GPIO-HANDLER - Handles GPIO inputs and outputs including PWM
-
Description:
While building my Mirror, I could not find a module that supports PWM (Pulse Width Modulation) and/or handles GPIO as a whole (input & output).
The Mirror had LEDs and LED strips installed according to this instruction (with MOSFETs).
Though the instructions do not mention PWM explicitly, the concept uses Software PWM.This module supports:
- Both Hardware and Software PWM and some PWM effects, mostly optimized for LEDs. (Breath, Pulse, Flash, Fade-in, Fade-out).
- On/off handling of outputs (1/0 state, not using PWM).
- Input handling of buttons (short & long press), PIR, Other.
The module sends a Notification if an input is changed, which can be used to start actions in other modules.
The module starts output handling from defaults set or when a HANDLE_PWM or HANDLE_ON/OFF notification is received. Payload in notification sets the options.Structured tables with all options can be found in the readme
Note
For clarity I would like to state you will need (an)other module(s) to send notifications or to received notification do something with.
I’m currently working on a dynamic menu (for my buttons) which this module will work with. I will add this here later.
I post this here as other developers might benefit for the use with PWM, others might want to write a module to work with this module.
I am open for comments or suggestions.
Screenshots:
There are no screenshots as this is a system module doing things in te background
Download:
Can be downloaded and installed according the instructions: https://github.com/Sjohn21/MMM-GPIO-HANDLER#Installation
Changelog
Version 2024-01-16
- Initial release
-
Nice! :smiley: Please add it to the modules list: https://github.com/MagicMirrorOrg/MagicMirror/wiki/3rd-party-modules.
-
S Sjohn21 referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login