mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Litle bit cahnges in RGB led driver for compatibility with VibroTouch.
Shell files for buil firmware.
This commit is contained in:
@@ -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
9
extra.sh
Executable 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/
|
||||
Reference in New Issue
Block a user