Commit Graph
25 Commits
Author SHA1 Message Date
TD-er 19979fd8b5 [Cleanup] Don't use "byte" as type anymore (.ino files) 2021-07-03 00:50:17 +02:00
TD-er b56a9193b9 [Cleanup] Remove unneeded String() wrappers 2021-05-25 20:40:00 +02:00
TD-er be3e503338 [Cleanup] Reduce build size using flash strings in selectors 2021-05-25 15:01:41 +02:00
TD-er b8d056ae44 [Cleanup] Remove String construction with = "";
A String is default constructed as an empty String, so no need to add the extra step of constructing it with an empty char array.
2020-12-31 00:41:09 +01:00
TD-er 8f41f24ad1 [Encoder] Update output immediately after "encwrite"
As discussed here: https://github.com/letscontrolit/ESPEasy/issues/3394
2020-11-25 09:46:18 +01:00
TD-er 8e66154e2f Add function to ask task for VType instead of plugins
To allow a task to have a non-default VType, instead of shared among all instances of the same plugin.
2020-09-22 14:56:50 +02:00
Gijs Noorlander 309415bdf8 [ESP32 build] Fix build issues with lots of lib_ignore set (#3083)
See: https://github.com/letscontrolit/ESPEasy/issues/3083#issuecomment-664071971
2020-07-27 11:54:03 +02:00
Gijs Noorlander 1de135001b [Cleanup] Include _Plugin_Helper.h in all plugin INO files
This does include almost all needed for a plugin.
So it will make intellisense highlighting useful as otherwise almost each line in a plugin file will be marked red.
2020-03-03 16:42:07 +01:00
TD-er 2f56ba7606 [Plugins] Replace long settings names with clear macros
See the defines in `_Plugin_Helper.h`
They were already used in some plugins, but now made globally available since they make the source much more readable.
2019-01-08 14:54:26 +01:00
Plebs fda673ce9d Added support for P011, P022, P059, P063
I would call this version, beta 1 version :)
2018-11-19 15:33:59 +01:00
TD-er 72637da44c [Cleanup] Uniform labels for GPIO pins (existing labels)
All custom GPIO labels (set using `PLUGIN_GET_DEVICEGPIONAMES` ) now use the same format.
It is now uniform to describe GPIO functions on ESP side.
It was quite a mixup of sensor pin descriptions and ESP side descriptions (e.g. mixup of RX and TX)
Now all descriptions show the ESP side description.
2018-11-11 10:00:15 +01:00
TD-er d2644b2da7 [Cleanup] Do not use F-macro for short strings
Got rid of a few kB in the binary image by removing F-macro from numerous 1 or 2 character flash strings.
These very short strings take more space in flash and memory when using the F-macro.

Also appending to a string using a `'a'` character definition takes less resources compared to a one-character string `"a"`.
2018-11-04 01:27:42 +01:00
TD-er 2e06ed14c0 [#1486] Allow multiple instances of rotary encoder
Used same procedure as for P013 ultrasonic
See #1486
2018-10-21 15:51:36 +02:00
TD-er 39e391ca0e [rules] Make rules start working again.
See #1351
Whenever a plugin_write returns success = true, the execute command will no longer be called.
It doesn't matter whether the plugin is enabled or present.
It should only return success = true when the command was actually meant for this plugin.
2018-05-02 23:23:19 +02:00
Plebs 5bc2af0e4c deleted comments
deleted comments and moved success outside of the if clause.
2018-05-01 20:52:00 +02:00
Plebs 3c3a11d77b fix for #1170
The reason is that inside PLUGIN_WRITE the variable [event->BaseVarIndex] is not set and is always = 0.
So actually this PR modifies the 1st value of task 1 and not the encoder counter.
Line 183 of P059_Encoder.ino should be removed:
UserVar[event->BaseVarIndex] = (float) event->Par1;
2018-05-01 19:46:51 +02:00
TD-er bbf470c61d [WebServer] Cleanup of all functions appending to a big string
A lot of functions in Webserver.ino were just appending to a ever increasing string. These strings were eventually sent to TXBuffer of the Webinterface.
So why not directly send them to the streaming buffer and thus reduce memory usage and gain speed.
2018-04-15 01:45:30 +02:00
TD-er ac4f3c4cd4 [Build] Cleanup/split builds using defines
See PR #1034 and #1040 made by @soif
2018-03-27 21:24:08 +02:00
Bartlomiej Zimon 3a2fe35e5c - fix for #1170 - uservar not setted on encwrite 2018-03-25 21:04:34 +02:00
Bartlomiej Zimon 668909e7b3 - fix success setting 2018-03-18 20:16:37 +01:00
Bartlomiej Zimon 00166a1aad - add encoder write #1086 2018-03-16 19:54:24 +01:00
GHolli 9646457b50 Cosmetics: fixing typos. (#628)
* Optimisation: save RAM.

* Another RAM optimisation (freeing RAM by moving static data from RAM to program memory).

* Fixing user-visible typos.

* Fixing typos in variables and comments.

* Fixing typos in comments.

* Revert changes of other pull request.
2017-12-08 14:18:24 +01:00
Grovkillen 7c6797a141 Move "TTP229 keypad" and "Encoder" plugin from "testing" to "normal" (#619)
* Add files via upload

* Add files via upload
2017-12-04 21:58:25 +01:00
Jochen Krapf 716ae30d9d Descriptive GPIO-Names (#448)
Changes:

Added PLUGIN_GET_DEVICEGPIONAMES to retreive GPIO-names from plugins

Changed Webserver to ask for GPIO-names (backward compatibility for old plugins)

Added GPIO-names to plugins
 - Chiming
 - Encoder
 - TTP229_KeyPad
 - DRF0299_MP3
 - HX711_Load_Cell
 - (more will follow)

Changed GPIO-names in hardware-page for uniformity

And because it was on the way:
Added PLUGIN_EXIT and prepared to unload members and memory from deselected device plugins
2017-07-20 14:06:25 +02:00
Jochen Krapf 50f6c403e8 Added Plugin for Quadrature Encoder Interface (Rotary Encoder) (#335)
* First draft

* Functional QEI plugin

* Corrected spelling of limits.h
2017-06-10 13:11:49 +02:00