3133 Commits

Author SHA1 Message Date
Tester23
ae3fc91061 genb 2025-11-24 18:43:55 +01:00
NonPIayerCharacter
35fca72376 esp8266 optimize + idle hooks (#1869) 2025-11-23 14:47:39 +01:00
openshwprojects
e9e20ed445 esp8266 ADC, EEPROM driver, max7219 simulator
* test

* Update workflow.yaml

* t

* makes

* Update drv_simpleEEPROM.c

* Update drv_simpleEEPROM.c

* ber

* Update workflow.yaml

* tt

* ber

* charts

* owm

* tt

* rem charts

* smaller

* test

* test

* fixes

* test

* charts

* comments

* test

* tt

* test

* add file to proj

* try to add pin 13 as ADC (testing in progress)

* test

* test

* MAX7219 simulator HACK

* final fixes

* Update drv_max72xx_internal.c

* restore

* fx
2025-11-23 14:01:04 +01:00
NonPIayerCharacter
9581b34b95 bl602 fast connect (#1868) 2025-11-22 16:32:21 +01:00
openshwprojects
c31cdd9d1c berry time and openweathermap access with self tests
* test

* owm

* fix

* test

* test
2025-11-20 13:30:13 +01:00
Rodion7777
2086cb84fc Implementation of girier MCU driver for 2ch dimmer (#1846)
* Implementation of girier MCU driver for 2ch dimmer

* Fixed review notices

* makefiles

* dpType = 0; // TODO - uninitialized

* header

* add to vcproj

* header

* #if ENABLE_DRIVER_GIRIERMCU

* clear

---------

Co-authored-by: Tester <85486843+openshwprojects@users.noreply.github.com>
2025-11-18 22:00:19 +01:00
NonPIayerCharacter
787558adb1 Update hal_pins_espidf.c (#1864)
#1863
2025-11-18 21:50:19 +01:00
Tester23
99cb33dae0 fx 2025-11-16 23:23:04 +01:00
Tester23
59c6156d88 DP_TYPE_RAW_TAC2121C_VCP 2025-11-16 23:11:55 +01:00
Tester23
ad15c7d586 Current_div10 2025-11-16 20:32:03 +01:00
NonPIayerCharacter
0a46262731 better wifi stability fix after reboot 2025-11-14 14:22:49 +01:00
KC Stonacek
60ca11183f Add support for Frequency variable in AddChangeHandler (#1853)
* add support for frequency variable in AddChangeHandler

* bl0942 frequency variable rounding correction

* move frequency to last args for VCPPublishThreshold

* frequency selftest precision adjustments

---------

Co-authored-by: kcstonacek <stonacek@stonacek.nz>
2025-11-11 21:35:39 +01:00
openshwprojects
8be0c3bb6c uart cosmetic fixes
* fx

* tttttttttttttttt

* dis
2025-11-11 21:31:31 +01:00
openshwprojects
f2c87bf690 merge max72xx clock progress and i2c pinwide scanner and misc fixes
* MAX72XX

* better

* faster buof

* eext

* test

* fx

* fxes

* tr

* fx

* Update drv_max72xx_clock.c

* fxes

* test

* fxes

* tests fxes

* fxes

* scr

* fx

* Update drv_local.h

* show

* Update drv_max72xx_clock.c

* test

* Delete lastEnumTemplate.txt

* TEST

* scan

* Update drv_main.c

* Update obk_main.cmake

* Update drv_multiPinI2CScanner.c

* dbg

* fxes

* Update drv_multiPinI2CScanner.c

* Update drv_multiPinI2CScanner.c

* Update drv_multiPinI2CScanner.c

* owm

* osm test

* restorew platfotms

* Update selftest_openWeatherMap.c

* test

* getter

* Update obk_config.h
2025-11-11 16:27:13 +01:00
openshwprojects
73bbc45126 merge partition search driver (disabled by default)
* test

* search

* fx

* fx1

* enavble

* Update obk_main.mk

* 0x200000

* Update drv_bkPartitions.c

* chk

* crc

* finalize

* fxes
2025-11-04 20:29:54 +01:00
MaxineMuster
c23984d7e3 If we have both daylight saving time (DST) and sunset/sunrise calculation, (#1843)
a DST switch should fix the upcomming sunset/sunrise events
(which were calculated before the switch, hence with "old" time.)
Added one simple test case
2025-10-29 18:56:26 +01:00
Tester23
36e2c0bc18 ws2812 + CW test 2025-10-26 05:06:53 +01:00
NonPIayerCharacter
f2335b803f Fix RDA release (#1840)
* fix rda release

* ali bootloader
2025-10-22 01:09:49 +02:00
NonPIayerCharacter
365a0dbcf9 rda5981 ota (#1839)
* rda5981 ota

* easyflash and lfs

* adjust offsets

* mac change
2025-10-21 09:08:48 +02:00
NonPIayerCharacter
5a83d0268b tr6260 quick pwm fix (#1838)
* tr6260 fix pwm

* forgot gpio14

* tr6260 interrupts
2025-10-20 22:52:22 +02:00
Tester23
3a6d7bcecc delay_ms 50 test 2025-10-18 17:13:37 +02:00
Tester23
689a97c3c9 UART tcp usage comment 2025-10-18 17:13:21 +02:00
Tester23
7d8cbe824b Update selftest_enums.c 2025-10-18 01:29:35 +02:00
Tester23
e69ba795b1 next enum self test 2025-10-18 01:17:13 +02:00
Tester23
b35a6731e4 reduce stack size iusage n ha discovery, next enum self test 2025-10-18 01:17:03 +02:00
Tester23
0ec4b6a404 fix leak 2 2025-10-18 00:28:43 +02:00
Tester23
39c4590296 fix one leak in simulator 2025-10-18 00:16:25 +02:00
Tester23
d264e92500 better self test for enums 2025-10-17 23:48:06 +02:00
Tester23
42976ee561 few more fixes 2025-10-17 23:04:33 +02:00
Tester23
60a7d1371c HA ENUMS PR FIX (remove 1kB from stack) 2025-10-17 22:47:16 +02:00
MaxineMuster
1a291a82ad fix handling of "sunset" events (#1834)
* fix handling of "sunset" events:

Old code was

if (e->sunflags & (SUNRISE_FLAG || SUNSET_FLAG)) {

This will ignore sunset events ( SUNSET_FLAG = 1 << 1)
for the or of two values ( 1 || 2) is always true
and will result in testing (sunflags & 1)
so never true for sunset (2 & 1) is false.
probaly meant

if ((e->sunflags & SUNRISE_FLAG) || (e->sunflags & SUNSET_FLAG))

but it's sufficient to check is "sunsetflags" is not 0, so simple fix:

if (e->sunflags){

Additionally added code to change liste vents ("listClockEvents") so it also shows if a time is derived from sunset or sunrise:

before the output would be like:

Info:CMD:Ev 32 - 7:31:0, days 0xff, cmd setChannel 0 0
Info:CMD:Ev 31 - 19:7:0, days 0xff, cmd setChannel 0 1

and you won't see this is an "dynamic" time. Now it's (I also used %02i to fix time format)

Info:CMD:Ev 32 - 07:31:00 (sunrise), days 0xff, cmd setChannel 0 0
Info:CMD:Ev 31 - 19:07:00 (sunset), days 0xff, cmd setChannel 0 1

* forgot to commit fix for time display using "%02i" for hours, minutes and seconds
2025-10-17 10:08:41 +02:00
NonPIayerCharacter
f5a3b2642b RTL new fix OTA (#1836)
* RTL new fix OTA
clean-up workflow

* fix esp cache?
2025-10-17 08:44:13 +02:00
KC Stonacek
4ad9a85a08 Add ChType_Enum and enable SetChannelEnum. (#1830)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

---------

Co-authored-by: root <root@stonacek.nz>
2025-10-14 09:21:18 +02:00
Tester23
993a46a19d better uart debug 2025-10-10 19:26:49 +02:00
Tester23
5ea4a6c5b9 test 2025-10-10 19:24:35 +02:00
Tester23
1ca376e9c0 futher tests 2025-10-10 17:56:59 +02:00
Tester23
22f3571be2 self test for #1828 - it seems to pass for me 2025-10-10 17:44:44 +02:00
openshwprojects
c208c19f3e ttuyamcu noread flag (#1820)
* noread

* fx

* ping pong mode for addChannel

* Update new_pins.c

* test
2025-10-09 15:59:44 +02:00
Jesse Campbell
883e85e4cc Fix gamma correction (#1825)
* corrected gamma function

* uncorrect color temperature to work with new gamma

* Adjust gamma corrected expectation for self test
2025-10-06 09:30:16 +02:00
MaxineMuster
6279bcd07a Add Chip internal temperature as sensor in JSON (#1821)
* Add MCU temperature to json_interface.c

* Write chip temp even if there is no other sensor present

* Send chip temperature always as sensor "ESP32"
2025-10-05 00:01:57 +02:00
divadiow
f60d242fbb Flag13 - extend pin state display to PLATFORM_GPIO_MAX (#1823)
* Update http_fns.c

* Update http_fns.c

* Update http_fns.c

* Revert "Update http_fns.c"

This reverts commit c899cb45b0.

* Revert "Update http_fns.c"

This reverts commit 012c49c32d.

* Update http_fns.c
2025-10-03 14:50:09 +02:00
NonPIayerCharacter
e930bd2d75 hlw8112 variant (#1819) 2025-10-02 17:09:47 +02:00
Nizam Moidu
4a2ae013ed HLW8112 Driver for energy measurments (#1810)
* initial test driver for hlw8112

Signed-off-by: Nizam <code@maxters.net>

* restrict build to BK7231N
will stub other platforms later

Signed-off-by: Nizam <code@maxters.net>

* fix newer gcc build

Signed-off-by: Nizam <code@maxters.net>

* fix channel b stat restore
after all i still doesnt get pointer arithmetic

Signed-off-by: Nizam <code@maxters.net>

* clean up flashvar bk7231 still use emetering struct to store data

Signed-off-by: Nizam <code@maxters.net>

* fix OpenBK7231N_ALT build fail

Signed-off-by: Nizam <code@maxters.net>

* disable incomplete spi device raw access commands and ui

Signed-off-by: Nizam <code@maxters.net>

* remove mqtt hack for commands. leverage existing tasmota command framework

Signed-off-by: Nizam <code@maxters.net>

* missed flashvar restore

Signed-off-by: Nizam <code@maxters.net>

* disable hlw812 driver for upstream pr

Signed-off-by: Nizam <code@maxters.net>

---------

Signed-off-by: Nizam <code@maxters.net>
2025-09-30 15:04:15 +02:00
NonPIayerCharacter
8136ebe8d6 rda fix flash vars (#1817) 2025-09-29 11:43:47 +02:00
NonPIayerCharacter
843de0c0dd Increase stack size for ESP8266 (#1814) 2025-09-29 11:43:40 +02:00
NonPIayerCharacter
6083ddfca5 RDA5981 (#1813) 2025-09-29 08:41:36 +02:00
MaxineMuster
17cc6353b6 change JSON for multiple DS18B20 (#1811)
* first try to set sensor output like tasmota, but add "name"

* Use extended tasmota style: Name + Tasmota-Id

* switch to "plain" tasmota style (only tasmota-Id aditionally to temperature)

* fix numbering - Tasmota starts with "DS18B20-1" not with "DS18B20-0"
2025-09-29 08:22:51 +02:00
Tester23
98a115cb54 match Tasmtoas DS18B20 standard 2025-09-28 10:20:34 +02:00
Tester23
d0dfea0822 battery sensor publish with no bl0937 build fix by dedamraz 2025-09-27 18:22:02 +02:00
Tester23
cf18fb529a Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2025-09-27 18:21:06 +02:00