forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update pio dependencies * Platformio 4 * Fixes * Update platformio_api.py * Lint
- Loading branch information
1 parent
82625a3
commit 2712c44
Showing
17 changed files
with
114 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Dummy integration to allow relying on AsyncTCP | ||
from esphome.core import CORE, coroutine_with_priority | ||
import esphome.codegen as cg | ||
|
||
|
||
@coroutine_with_priority(200.0) | ||
def to_code(config): | ||
if CORE.is_esp32: | ||
# https://github.com/me-no-dev/AsyncTCP/blob/master/library.json | ||
cg.add_library('AsyncTCP', '1.0.3') | ||
elif CORE.is_esp8266: | ||
# https://github.com/me-no-dev/ESPAsyncTCP/blob/master/library.json | ||
cg.add_library('ESPAsyncTCP', '1.2.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ lib_deps = | |
[email protected] | ||
[email protected] | ||
[email protected] | ||
ESP Async WebServer@1.1.1 | ||
[email protected].0 | ||
NeoPixelBus@2.4.1 | ||
ESP Async WebServer@1.2.2 | ||
[email protected].9 | ||
NeoPixelBus@2.5.0 | ||
[email protected] | ||
[email protected] | ||
build_flags = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
--- .piolibdeps/NeoPixelBus_ID547/src/internal/NeoEsp8266DmaMethod.h 2018-12-25 06:37:53.000000000 +0100 | ||
+++ .piolibdeps/NeoPixelBus_ID547/src/internal/NeoEsp8266DmaMethod.h.2 2019-03-01 22:18:10.000000000 +0100 | ||
@@ -169,7 +169,7 @@ | ||
--- .piolibdeps/NeoPixelBus_ID547/src/internal/NeoEsp8266DmaMethod.h 2019-06-25 11:14:33.000000000 +0200 | ||
+++ .piolibdeps/NeoPixelBus_ID547/src/internal/NeoEsp8266DmaMethod.h.2 2019-06-25 11:14:40.000000000 +0200 | ||
@@ -195,7 +195,12 @@ | ||
_i2sBufDesc[indexDesc].sub_sof = 0; | ||
_i2sBufDesc[indexDesc].datalen = blockSize; | ||
_i2sBufDesc[indexDesc].blocksize = blockSize; | ||
- _i2sBufDesc[indexDesc].buf_ptr = (uint32_t)is2Buffer; | ||
+ _i2sBufDesc[indexDesc].buf_ptr = is2Buffer; | ||
+ union { | ||
+ uint8_t *ptr; | ||
+ uint32_t value; | ||
+ } ptr; | ||
+ ptr.ptr = is2Buffer; | ||
+ _i2sBufDesc[indexDesc].buf_ptr = ptr.value; | ||
_i2sBufDesc[indexDesc].unused = 0; | ||
_i2sBufDesc[indexDesc].next_link_ptr = (uint32_t)&(_i2sBufDesc[indexDesc + 1]); | ||
|
||
@@ -329,11 +329,13 @@ | ||
|
||
@@ -361,12 +366,15 @@ | ||
|
||
case NeoDmaState_Sending: | ||
{ | ||
slc_queue_item* finished_item = (slc_queue_item*)SLCRXEDA; | ||
+ uint32_t **ptr = reinterpret_cast<uint32_t **>(&finished_item); | ||
+ uint32_t dat = *reinterpret_cast<uint32_t *>(ptr); | ||
|
||
- slc_queue_item* finished_item = (slc_queue_item*)SLCRXEDA; | ||
- | ||
+ union { | ||
+ slc_queue_item *ptr; | ||
+ uint32_t value; | ||
+ } ptr; | ||
+ ptr.value = SLCRXEDA; | ||
// the data block had actual data sent | ||
// point last state block to first state block thus | ||
// just looping and not sending the data blocks | ||
- (finished_item + 1)->next_link_ptr = (uint32_t)(finished_item); | ||
+ (finished_item + 1)->next_link_ptr = dat; | ||
|
||
s_this->_dmaState = NeoDmaState_Idle; | ||
+ (ptr.ptr + 1)->next_link_ptr = ptr.value; | ||
s_this->_dmaState = NeoDmaState_Zeroing; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters