esp8266_4MB_min - 160Mhz (instead of 80) ;-)
+ small things
This commit is contained in:
@@ -806,6 +806,7 @@ board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
[env:esp8266_4MB_min]
|
||||
extends = env:d1_mini
|
||||
upload_speed = 460800 ;115200
|
||||
board_build.f_cpu = 160000000L ;; we want 160Mhz (default = 80Mhz)
|
||||
build_flags = ${common.build_flags_esp8266}
|
||||
-D WLED_RELEASE_NAME=esp8266_4MB_min
|
||||
-D WLED_DISABLE_ALEXA
|
||||
@@ -842,6 +843,7 @@ build_flags = ${common.build_flags_esp8266}
|
||||
; monitor_filters = esp8266_exception_decoder
|
||||
lib_deps = ${esp8266.lib_deps}
|
||||
OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE
|
||||
; olikraus/U8g2 @ ^2.28.8 ; used for USERMOD_FOUR_LINE_DISPLAY
|
||||
; olikraus/U8g2@ ^2.34.5 ; used for USERMOD_FOUR_LINE_DISPLAY -> need newer version with bugfixes for arduino-esp32 v2.0.4 (Wire inititialization)
|
||||
ElectronicCats/MPU6050 @ 0.6.0 ; used for USERMOD_MPU6050_IMU
|
||||
; RAM: [====== ] 61.5% (used 50344 bytes from 81920 bytes)
|
||||
|
||||
@@ -1185,7 +1185,7 @@ class FourLineDisplayUsermod : public Usermod {
|
||||
bool pinsChanged = false;
|
||||
for (byte i=0; i<5; i++) if (ioPin[i] != oldPin[i]) { pinsChanged = true; break; }
|
||||
if (pinsChanged || type!=newType) {
|
||||
if (type != NONE) delete u8x8;
|
||||
if (typeOK) delete u8x8;
|
||||
PinOwner po = PinOwner::UM_FourLineDisplay;
|
||||
bool isSPI = (type == SSD1306_SPI || type == SSD1306_SPI64);
|
||||
if (isSPI) {
|
||||
|
||||
@@ -4870,7 +4870,7 @@ uint16_t mode_2Dgameoflife(void) { // Written by Ewoud Wijma, inspired by https:
|
||||
|
||||
for (int y = 0; y < rows; y++) for (int x = 0; x < cols; x++) prevLeds[XY(x,y)] = CRGB::Black;
|
||||
memset(crcBuffer, 0, sizeof(uint16_t)*crcBufferLen);
|
||||
} else if (strip.now - SEGENV.step < FRAMETIME_FIXED * map(SEGMENT.speed,0,255,64,4)) {
|
||||
} else if (strip.now - SEGENV.step < FRAMETIME_FIXED * (uint32_t)map(SEGMENT.speed,0,255,64,4)) { //WLEDMM (uint32_t) surpresses warning
|
||||
// update only when appropriate time passes (in 42 FPS slots)
|
||||
return FRAMETIME;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user