Files
WLED_MM_Infinity/usermods
Frank 7f9da309c9 const const const
adding hints for the compiler for optimization.
In case your custom build complains about "const", just remove the keyword. based on e82f38e277, but going further :-)

* "const" class functions : function does not modify any class attributes ( --> "this" becomes const)

* __attribute__((pure)) :  function return value depends only on the parameters and/or global variables. The function does not modify any global or static variables.
* __attribute__((const)) : function only examines arguments (no globals), and has no effects except the return value. This slightly more strict than "pure"
* hot: tells the compiler "this functions is called very often"
* cold: the opposite of hot
2024-08-07 14:58:38 +02:00
..
2022-12-31 15:24:35 -06:00
2021-10-31 11:57:41 +01:00
2024-03-04 21:27:01 +01:00
2024-08-07 14:58:38 +02:00
2024-06-26 21:38:02 +02:00
2020-12-14 20:50:48 -05:00
2023-12-16 18:49:50 +01:00
2024-06-26 21:35:19 +02:00
2022-11-30 09:15:07 +01:00
2023-09-19 22:54:08 +02:00
2023-01-12 20:35:34 +01:00
2023-01-12 20:35:34 +01:00
2023-01-12 20:35:34 +01:00
2022-12-10 16:12:55 +01:00

Usermods

This folder serves as a repository for usermods (custom usermod.cpp files)!

If you have created a usermod you believe is useful (for example to support a particular sensor, display, feature...), feel free to contribute by opening a pull request!

In order for other people to be able to have fun with your usermod, please keep these points in mind:

  • Create a folder in this folder with a descriptive name (for example usermod_ds18b20_temp_sensor_mqtt)
  • Include your custom files
  • If your usermod requires changes to other WLED files, please write a readme.md outlining the steps one needs to take
  • Create a pull request!
  • If your feature is useful for the majority of WLED users, I will consider adding it to the base code!

While I do my best to not break too much, keep in mind that as WLED is updated, usermods might break.
I am not actively maintaining any usermod in this directory, that is your responsibility as the creator of the usermod.

For new usermods, I would recommend trying out the new v2 usermod API, which allows installing multiple usermods at once and new functions! You can take a look at EXAMPLE_v2 for some documentation and at Temperature for a completed v2 usermod!

Thank you for your help :)