Skip to content

Commit a20de01

Browse files
authored
Merge pull request #211 from troyhacks/P4_experimental
P4 experimental
2 parents 25b722d + 9001793 commit a20de01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+938
-546
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ body:
4848
attributes:
4949
label: What version/release of MM WLED?
5050
description: You can find this in by going to Config -> Security & Updates -> Scroll to Bottom. Copy and paste the entire line after "Server message"
51-
placeholder: "e.g. build 2401290, WLEDMM_0.14.1-b32.40_esp32_4MB_M.bin"
51+
placeholder: "e.g. build 2401290, WLEDMM_14.5.0-beta_esp32_4MB_M.bin"
5252
validations:
5353
required: true
5454
- type: dropdown

.github/workflows/wled-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66

77
get_default_envs:
88
name: Gather Environments
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Cache pip
@@ -31,7 +31,7 @@ jobs:
3131

3232
build:
3333
name: Builds
34-
runs-on: ubuntu-latest
34+
runs-on: ubuntu-22.04
3535
needs: get_default_envs
3636
strategy:
3737
fail-fast: false
@@ -74,7 +74,7 @@ jobs:
7474
path: build_output/release/*.bin
7575
release:
7676
name: Create Release
77-
runs-on: ubuntu-latest
77+
runs-on: ubuntu-22.04
7878
needs: [get_default_envs, build]
7979
if: startsWith(github.ref, 'refs/tags/')
8080
steps:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wled",
3-
"version": "0.14.1-b32.41.dev",
3+
"version": "14.5.1-dev",
44
"description": "Tools for WLED project",
55
"main": "tools/cdata.js",
66
"directories": {

platformio.ini

Lines changed: 124 additions & 122 deletions
Large diffs are not rendered by default.

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<img width="400" alt="image" src="https://user-images.githubusercontent.com/91013628/230378884-5a0f15ee-1aa2-4998-9df7-ade9f32a3d0f.png">
1616

17-
MoonModules/WLED is a fork from [Aircoookie/WLED](https://github.com/Aircoookie/WLED) which contains latest merge of v0.14 of WLED with [additional features](https://mm.kno.wled.ge/moonmodules/what-is-moonmodules/).
17+
MoonModules/WLED is a fork of [Aircoookie/WLED](https://github.com/Aircoookie/WLED) which contains latest merge of v0.14 of WLED with [additional features](https://mm.kno.wled.ge/moonmodules/what-is-moonmodules/).
1818

1919
This fork is created by members of the [Atuline/WLED](https://github.com/atuline/WLED) team to make development against v0.14 possible while still preserving [Atuline/WLED v0.13.x](https://github.com/atuline/WLED/tree/dev) as a stable and supported version. The Atuline/WLED fork is also called WLED SR (Sound Reactive).
2020

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table,, 0x8000, 4K
5+
nvs, data, nvs, 0x9000, 20K,
6+
otadata, data, ota, 0xe000, 8K,
7+
ota_0, app, ota_0, 0x10000, 2048K,
8+
ota_1, app, ota_1, 0x210000, 2048K,
9+
uf2, app, factory,0x410000, 256K,
10+
spiffs, data, spiffs, 0x450000, 3776K,

usermods/Analog_Clock/Analog_Clock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ class AnalogClockUsermod : public Usermod {
102102

103103
void secondsEffectSineFade(int16_t secondLed, Toki::Time const& time) {
104104
uint32_t ms = time.ms % 1000;
105-
uint8_t b0 = (cos8(ms * 64 / 1000) - 128) * 2;
105+
uint8_t b0 = (cos8_t(ms * 64 / 1000) - 128) * 2;
106106
setPixelColor(secondLed, gamma32(scale32(secondColor, b0)));
107-
uint8_t b1 = (sin8(ms * 64 / 1000) - 128) * 2;
107+
uint8_t b1 = (sin8_t(ms * 64 / 1000) - 128) * 2;
108108
setPixelColor(inc(secondLed, 1, secondsSegment), gamma32(scale32(secondColor, b1)));
109109
}
110110

usermods/audioreactive/audio_reactive.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,16 +1159,16 @@ class AudioReactive : public Usermod {
11591159
#endif
11601160
// new "V2" audiosync struct - 44 Bytes
11611161
struct __attribute__ ((packed)) audioSyncPacket { // WLEDMM "packed" ensures that there are no additional gaps
1162-
char header[6]; // 06 Bytes offset 0
1162+
char header[6]; // 06 Bytes offset 0 - "00002" for protocol version 2 ( includes \0 for c-style string termination)
11631163
uint8_t pressure[2]; // 02 Bytes, offset 6 - sound pressure as fixed point (8bit integer, 8bit fraction)
11641164
float sampleRaw; // 04 Bytes offset 8 - either "sampleRaw" or "rawSampleAgc" depending on soundAgc setting
11651165
float sampleSmth; // 04 Bytes offset 12 - either "sampleAvg" or "sampleAgc" depending on soundAgc setting
11661166
uint8_t samplePeak; // 01 Bytes offset 16 - 0 no peak; >=1 peak detected. In future, this will also provide peak Magnitude
1167-
uint8_t frameCounter; // 01 Bytes offset 17 - track duplicate/out of order packets
1168-
uint8_t fftResult[16]; // 16 Bytes offset 18
1169-
uint16_t zeroCrossingCount; // 02 Bytes, offset 34
1170-
float FFT_Magnitude; // 04 Bytes offset 36
1171-
float FFT_MajorPeak; // 04 Bytes offset 40
1167+
uint8_t frameCounter; // 01 Bytes offset 17 - rolling counter to track duplicate/out of order packets
1168+
uint8_t fftResult[16]; // 16 Bytes offset 18 - 16 GEQ channels, each channel has one byte (uint8_t)
1169+
uint16_t zeroCrossingCount; // 02 Bytes, offset 34 - number of zero crossings seen in 23ms
1170+
float FFT_Magnitude; // 04 Bytes offset 36 - largest FFT result from a single run (raw value, can go up to 4096)
1171+
float FFT_MajorPeak; // 04 Bytes offset 40 - frequency (Hz) of largest FFT result
11721172
};
11731173

11741174
// old "V1" audiosync struct - 83 Bytes payload, 88 bytes total - for backwards compatibility

usermods/audioreactive/audio_source.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -693,25 +693,23 @@ class ES8311Source : public I2SSource {
693693
_es8311I2cWrite(0x08, 0b11111111); // 22050hz calculated
694694
_es8311I2cWrite(0x06, 0b11100011); // 22050hz calculated
695695

696-
_es8311I2cWrite(0x16, 0b00100000); // ADC was 0b00000011 trying 0b00100100 now
696+
_es8311I2cWrite(0x16, 0b00100100); // ADC was 0b00000011 trying 0b00100100 was good, trying ...111 (...111 is better?)
697697
_es8311I2cWrite(0x0B, 0b00000000); // SYSTEM at default
698698
_es8311I2cWrite(0x0C, 0b00100000); // SYSTEM was 0b00001111 trying 0b00100000
699699
_es8311I2cWrite(0x10, 0b00010011); // SYSTEM was 0b00011111 trying 0b00010011
700700
_es8311I2cWrite(0x11, 0b01111100); // SYSTEM was 0b01111111 trying 0b01111100
701701
_es8311I2cWrite(0x00, 0b11000000); // *** RESET (again - seems important?)
702-
_es8311I2cWrite(0x01, 0b00111010); // CLOCK MANAGER was 0b00111111 trying 0b00111010 (again??)
702+
_es8311I2cWrite(0x01, 0b00111010); // *** CLOCK MANAGER was 0b00111111 trying 0b00111010 (again?? seems important)
703703
_es8311I2cWrite(0x14, 0b00010000); // *** SYSTEM was 0b00011010 trying 0b00010000 (or 0b01111010) (PGA gain)
704-
_es8311I2cWrite(0x12, 0b00000000); // SYSTEM - DAC, likely don't care
705-
_es8311I2cWrite(0x13, 0b00010000); // SYSTEM - output, likely don't cate
706-
_es8311I2cWrite(0x09, 0b00001000); // SDP IN (likely don't care) was 0b00001100 (16-bit) - changed to 0b00001000 (I2S 32-bit)
707704
_es8311I2cWrite(0x0A, 0b00001000); // *** SDP OUT, was 0b00001100 trying 0b00001000 (I2S 32-bit)
708705
_es8311I2cWrite(0x0E, 0b00000010); // *** SYSTEM was 0b00000010 trying 0b00011010 (seems best so far!) (or 0b00000010)
709706
_es8311I2cWrite(0x0F, 0b01000100); // SYSTEM was 0b01000100
710-
_es8311I2cWrite(0x15, 0b00000000); // ADC soft ramp (disabled)
707+
_es8311I2cWrite(0x15, 0b00010000); // ADC soft ramp (disabled 0000xxxx)
711708
_es8311I2cWrite(0x1B, 0b00000101); // ADC soft-mute was 0b00000101
712709
_es8311I2cWrite(0x1C, 0b01100101); // ADC EQ and offset freeze was 0b01100101 (bad at 0b00101100)
713710
_es8311I2cWrite(0x17, 0b10111111); // ADC volume was 0b11111111 trying ADC volume 0b10111111 = 0db (maxgain) 0x16
714-
_es8311I2cWrite(0x44, 0b00000000); // 0b10000000 - loopback test. on: 0x88; off: 0x00; mic--" speak
711+
_es8311I2cWrite(0x18, 0b10000001); // ADC ALC enabled and AutoMute disabled.
712+
// _es8311I2cWrite(0x19, 0b11110100); // ADC ALC max and min
715713

716714
}
717715

0 commit comments

Comments
 (0)