Litle bit cahnges in RGB led driver for compatibility with VibroTouch.

Shell files for buil firmware.
This commit is contained in:
Dmitry422
2025-02-05 16:31:26 +07:00
parent 3029f0d6d6
commit 92b58bc99f
3 changed files with 17 additions and 1 deletions

View File

@@ -466,7 +466,7 @@ new file mode 100644
index 0000000..b89f82a
--- /dev/null
+++ b/lib/drivers/SK6805.c
@@ -0,0 +1,101 @@
@@ -0,0 +1,103 @@
+/*
+ SK6805 FlipperZero driver
+ Copyright (C) 2022-2023 Victor Nikitchuk (https://github.com/quen0n)
@@ -527,6 +527,7 @@ index 0000000..b89f82a
+void SK6805_update(void) {
+ SK6805_init();
+ FURI_CRITICAL_ENTER();
+ furi_delay_us(150);
+ uint32_t end;
+ /* Последовательная отправка цветов светодиодов */
+ for(uint8_t lednumber = 0; lednumber < SK6805_LED_COUNT; lednumber++) {
@@ -566,6 +567,7 @@ index 0000000..b89f82a
+ }
+ }
+ }
+ furi_delay_us(150);
+ FURI_CRITICAL_EXIT();
+}
diff --git a/lib/drivers/SK6805.h b/lib/drivers/SK6805.h

9
extra.sh Executable file
View File

@@ -0,0 +1,9 @@
wget https://github.com/xMasterX/all-the-plugins/releases/latest/download/all-the-apps-extra.tgz
tar zxf all-the-apps-extra.tgz
mkdir -p applications/main/clock_app/resources/apps
cp -R extra_pack_build/artifacts-extra/* applications/main/clock_app/resources/apps/
rm -rf extra_pack_build
rm -f build/f7-firmware-C/toolbox/version.*
./fbt COMPACT=1 DEBUG=0 updater_package
mkdir artifacts-extra-apps
mv dist/f7-C/* artifacts-extra-apps/

5
rgb.sh Executable file
View File

@@ -0,0 +1,5 @@
git apply .ci_files/rgb.patch
rm -f build/f7-firmware-C/toolbox/version.*
./fbt COMPACT=1 DEBUG=0 updater_package
mkdir artifacts-rgb-patch
mv dist/f7-C/* artifacts-rgb-patch/