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.
-