Commit Graph

1946 Commits

Author SHA1 Message Date
Colin Kuebler
35060dfa45 Measured impact of USE_SM16716 on binary filesize 2019-02-01 20:12:13 -05:00
Colin Kuebler
d7b8a6453d Added preprocessor constant for LT_SM16716 for improved code readability
Note that this differs from other LT_* in that it's not an enum
Ensure the SM16716 codepath is only taken when the top half of light_type is LT_SM16716
2019-02-01 19:41:12 -05:00
Colin Kuebler
6d19a9c998 Generalize the SYF05 a tiny bit so it can be easily adapted to similar bulbs 2019-02-01 19:28:16 -05:00
Colin Kuebler
817d0af598 No need (and pointless) to call SM16716_Init until color updates, iff using sel pin 2019-02-01 17:37:37 -05:00
Colin Kuebler
99b027852b Fixed first color command failing; need to wait for chip to power up 2019-02-01 17:33:21 -05:00
Colin Kuebler
25856c323a Track sm16716 select pin state so we don't waste cycles continuously enabling/disabling color
Added some comments; disabled sm16716 debug messages by default
Removed delay after setting select pin; didn't seem to help anyway
2019-02-01 00:59:53 -05:00
Gabor Simon
737cd7a2d0 Merge branch 'sm16716' of https://github.com/gsimon75/Sonoff-Tasmota into sm16716 2019-02-01 04:38:15 +00:00
Gabor Simon
ef40aff62a Added SM16716_SEL pin to SYF05 template, enabled SM16716 support 2019-02-01 04:37:22 +00:00
Gabor Simon
bbce19a74e
Merge branch 'development' into sm16716 2019-02-01 08:27:35 +04:00
Colin Kuebler
04f1ed1659 Implemented sm16716 select
If SM16716_SEL is specified, it will toggle it on/off depending on whether or not there is color data
2019-01-31 17:17:01 -05:00
Theo Arends
79e001caae
Merge pull request #5071 from netpok/device-sp10
Add Tuya SP10
2019-01-31 21:14:17 +01:00
andrethomas
12361df705 PN532: Fix regression 2019-01-31 22:03:47 +02:00
Colin Kuebler
1c76991c7f Added sm16716 select to the pin definitions 2019-01-31 13:28:38 -05:00
Colin Kuebler
f60dd3c06a Moved pin mode selection for sm16716 out of init function
Made void
Call SM16716_Init before setting the color
2019-01-30 18:32:37 -05:00
Colin Kuebler
4b6ddfb76f Moved PWM control to its own block while using SM16716 to skip RGB values 2019-01-30 18:15:25 -05:00
Colin Kuebler
adcfeeaed5 Fixed bug in web config page caused by merge from dev 2019-01-30 17:57:47 -05:00
Colin Kuebler
ec984ab841 Fixed compiler errors
Missing #endif oops
Vestigial function call
2019-01-30 17:32:17 -05:00
Colin Kuebler
fa7440fb9a Allow PWM while SM16716 is enabled, for mixed control devices 2019-01-30 17:28:25 -05:00
Colin Kuebler
3a43050d93 Integrated Gabor's SM16716 code into the light driver code
Removed redundant processing and variables
Added new light type to distinguish SM16716 devices
2019-01-30 17:19:40 -05:00
netpok
ed41370d24 Add Tuya SP10 2019-01-30 19:44:48 +01:00
Theo Arends
9825d6ffb6 Add resiliency to saved Settings
Add resiliency to saved Settings (#5065)
2019-01-30 16:27:17 +01:00
Theo Arends
0007df121a Update settings.ino
Fix for new installs
2019-01-30 15:14:24 +01:00
Theo Arends
2c164a8b4b 6.4.1.13 Add boot loop offset
6.4.1.13 20190130
 * Add command SetOption36 to control boot loop default restoration (#4645, #5063)
2019-01-30 14:34:31 +01:00
Theo Arends
cb13e8b05e Update xdrv_12_home_assistant.ino
Minor gain in string length
2019-01-30 14:33:20 +01:00
Gabor Simon
e2d8040338 Type changed from boolean to bool applied to xdrv_20_sm16716.ino as well
The upstream commit that changed the types in the interface:
	commit 304ac6fe44
	Author: Theo Arends <11044339+arendst@users.noreply.github.com>
	Date:   Mon Jan 28 14:08:33 2019 +0100
	    6.4.1.12 code changes (byte/boolean)
2019-01-30 07:05:38 +00:00
Gabor Simon
e0033fbaa0
Merge branch 'development' into sm16716 2019-01-29 17:38:27 +04:00
Theo Arends
ea59ed6abd
Merge pull request #5052 from Jason2866/development
Fix Alexa bug in Core v.2.4.2
2019-01-29 13:34:01 +01:00
Gabor Simon
a770f54e90 misplaced #endif fixed 2019-01-29 06:58:52 +00:00
Theo Arends
4509019d64 Fix valid button range check
Fix valid button range check
2019-01-28 18:04:33 +01:00
Jason2866
82b69885fe
Fix Alexa bug in Core 2.4.2.
Use patched Parsing.cpp only for Core 2.4.2 to fix Alexa bug
2019-01-28 17:53:25 +01:00
Theo Arends
15c5e15f7c Update support_wifi.ino
Add TLS remarks (#4952)
2019-01-28 15:13:14 +01:00
Theo Arends
304ac6fe44 6.4.1.12 code changes (byte/boolean)
6.4.1.12 20190128
 * Change code use of boolean to bool and byte to uint8_t
 * Change code uint8_t flags to bool flags
2019-01-28 14:08:33 +01:00
Theo Arends
6c8e15dadd Fix inverted buttons
Fix inverted buttons
2019-01-28 10:18:44 +01:00
Theo Arends
2fc2535c7b Remove functionality not present
Remove functionality not present (#5043)
2019-01-27 15:13:57 +01:00
Theo Arends
dc75b473cf Add support for inverted buttons
* Add core version conditional compile options to provided PWM files (#4917)
 * Add support for inverted buttons and inverted buttons without pullup (#4914)
2019-01-27 14:54:28 +01:00
Theo Arends
d1c6cfb6f9 Disable patched core PWM
Disable patched core PWM starting with core 2.5.0-beta3
2019-01-27 12:42:05 +01:00
Theo Arends
f8350d65c4
Merge pull request #5031 from andrethomas/patch-1
Disable sleep 0 for scheme 0
2019-01-27 11:25:41 +01:00
Theo Arends
269258bde5
Update xdrv_04_light.ino 2019-01-27 11:25:28 +01:00
Theo Arends
2827de40a3 Set initial legacy interlock state
Set initial legacy interlock state
2019-01-27 11:02:12 +01:00
Andre Thomas
13b8401089
Update xsns_40_pn532_i2c.ino 2019-01-27 01:11:55 +02:00
andrethomas
5dfc8a951b PN532:Allow RAW DATA usage by define 2019-01-27 00:53:52 +02:00
Andre Thomas
f23d18723e
Disable sleep 0 for scheme 0
Disable sleep 0 for scheme 0 as there is no animation required
2019-01-26 16:43:36 +02:00
Theo Arends
1fb7eb646f Add 50 mSec delay
Add 50 mSec delay between interlocked relay switch
2019-01-25 18:30:10 +01:00
Theo Arends
505c4794d1 6.4.1.11 Rewrite interlock
6.4.1.11 20190124
 * Remove command SetOption14 as it has been superseded by command Interlock
 * Remove command SetOption63 as it has been superseded by command Interlock
 * Add command Interlock 0 / 1 / 1,2 3,4 .. to control interlock ON/OFF and add up to 8 relays in 1 to 4 interlock groups (#5014)
2019-01-25 17:46:27 +01:00
Theo Arends
eab6be8bcb Fix WS2812 led command
Fix WS2812 led command to address last pixel (#5015)
2019-01-24 11:55:31 +01:00
Theo Arends
ced019eaa5 Add support for MAX44009
Add support for MAX44009 Ambient Light sensor (#4907)
2019-01-24 11:41:52 +01:00
Theo Arends
669f6c86c9
Merge pull request #4907 from llagendijk/development
Add support for MAX44009 ambient light sensor
2019-01-24 11:21:40 +01:00
Theo Arends
caabada214
Update my_user_config.h 2019-01-24 11:21:16 +01:00
Louis Lagendijk
4cdc3d5404 Implemented changes suggested by Theo (Thanks!):
- use functions from support.ino (had to split reading in Max4409Detect
  in 2 8 bits reads as the MAX44009 only supports 16 bits reads for
  luminance registers)
- Used the << instead of pow() to save a lot of xompiled code
- Improved float -> string conversion along the suggested lines
- Code size is now +/- 750 bytes (without other I2C sensors compiled in
  I think
2019-01-23 22:20:29 +01:00
Louis Lagendijk
ee3ab87d07 Made requested changes:
- Added checks for improved MAX44009 detection
- removed HTTP_SNS_ILLUMINANCE_S (show only integer in web-interface)
- removed missed readings and repeated detection
2019-01-23 16:06:06 +01:00