Max Prokhorov
edb23dbfc4
Convert .ino -> .cpp ( #2228 )
- general conversion from .ino modules into a separate .cpp files
- clean-up internal headers, place libraries into .h. guard .cpp with _SUPPORT flags
- fix some instances of shared variables instead of public methods
- tweak build system to still build a single source file via os environment variable ESPURNA_BUILD_SINGLE_SOURCE
4 years ago
Maxim Prokhorov
ee7356b91a
relay: clean-up for ota .bin
4 years ago
Maxim Prokhorov
1f5b22ebcf
ir: fix syntax issue
4 years ago
Max Prokhorov
ba3e6267e6
Button pin provider & runtime settings ( #2162 )
* wip
* cleanup buttons-through-serial code, remove hw mention from button module
* remove wip
* implement mqtt settings
* fixup struct members, dual no longer allocates debouncer
* add missing debounceevent lib
* fix missing event_handler, update names
* fix namespace
* drop lib
* fix int<->bool comparison
* Move gpio16 handling from DigitalPin to EventHandler
* Cleanup debounceevent headers
* Don't expect system headers to be included
* re 70b54c489f
- no allocation, for real
* Adjust settings names
* dont retain by default
* unused
* typo
* Fix length type (ref 6017ad9474
)
* Move pin class outside of debounce lib, lowercase ns
* move event handling inside of button_t
* refactor config. ..._MODE -> _CONFIG, ..._MODE_... -> ..._ACTION_...
* fix test
* naming
* move indexed value to header
* refactor actions into direct opts
* fix webui, fix buttons not respecting old user setting
* change button config format from bitmask to a struct, adjust settings conversion
* proxy some more header defautls, fix web kv
* gpiopin
* adjust webui func to support every setting
* clarify single-return event->string
* fix dual setting
* fix dual packet condition, de-duplicate funcs
* fix bogus warning
4 years ago
Max Prokhorov
f7f41980b6
Headers cleanup ( #2134 )
* Config: remove prototypes.h
* fixup order
* word
* add missing
* fix warning while still using .ino
* bad at c/p;
4 years ago
Max Prokhorov
c6758e4844
Revert "ir: use proper methods" ( #2066 )
This reverts commit 7efaaa8a80
.
5 years ago
Maxim Prokhorov
9f4329dc1a
relay: replace eeprom 8bit with 32bit bitmask stored in settings
- mask is defined as (relay# status << number)
- transparently handle base-2 and base-10 numbers
- if the relay mode requires us to save the mask, it will be saved as base-2
5 years ago
Max Prokhorov
7efaaa8a80
ir: use proper methods
5 years ago
Xose Pérez
546c8f09b2
Update Copyright notice
5 years ago
Malachi Soord
c8231860ac
[copyright-update] Update for 2019
5 years ago
Alexander
054876c28c
Fix compiler warnings, fix str to ul convert
Change var type to unsigned int in for loops.
Change _ir_code to str conversion (thanks hos500)
https://github.com/xoseperez/espurna/issues/1302
6 years ago
Alexander
54175471cc
fix _ir_results checks for Raw mode
6 years ago
Xose Pérez
c291b96e5a
Move strings to progmem
6 years ago
Xose Pérez
29d8dd734f
Support for IR transmit and MQTT-IR bridge, also in RAW mode ( #556 , #907 )
6 years ago
Xose Pérez
d4e5302a81
Fix codacy issues
6 years ago
Xose Pérez
a8a0e11d24
Clean IR reception, IR to MQTT
6 years ago
Maxim Prokhorov
8a0b3bca42
Fix compiler warnings
Add button definitions to the travis02 and travis03
IR_BUTTON should be uint32_t to properly work with new macro
eepromRotate return value is not used
6 years ago
Xose Pérez
db8400635e
Version 1.12.6
6 years ago
Darsh Patel
01bd5dad04
fix requested changes
used tabs instead of spaces,
change variable name to the one which is more uniform across the project,
fixed bug about condition always being true
6 years ago
Darsh Patel
5ce9025401
Fixed multiple toggles due to repeated code
some remotes repeat the code within 200ms thus toggling the relay twice , this fixes the toggle function.
6 years ago
Darsh Patel
84592d15db
Added Support for Toggle Mode
6 years ago
Xose Pérez
8a999bb15a
Replacing delay with nice_delay
6 years ago
Xose Pérez
b082d14c59
Loop hooks
6 years ago
Xose Pérez
af805ab045
Update copyright notices
6 years ago
Xose Pérez
2f91d90814
Clean up IR code
7 years ago
Xose Pérez
1b4290e8f6
Move IR code to its own module
7 years ago