-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Управление светомузыкой с ПК #13
base: master
Are you sure you want to change the base?
Conversation
Новый подрежим "анимация огня" для режима постоянно подсветки (№7). Настройка Вверх/вниз - изменение высоты огня Влево/вправо - изменение частоты повяления "вспышек"
Ещё добавил режим огня (не зависит от музыки) Форма для управления теперь выглядит так. |
Кстати, можно подрубить модуль bluetooth в rx/tx и будет управление через bluetooth |
#define BUTT_UP 0xE51CA6AD | ||
#define BUTT_DOWN 0xD22353AD | ||
#define BUTT_LEFT 0x517068AD | ||
#define BUTT_RIGHT 0xAC2A56AD | ||
#define BUTT_OK 0x1B92DDAD | ||
#define BUTT_1 0x68E456AD | ||
#define BUTT_2 0xF08A26AD | ||
#define BUTT_3 0x151CD6AD | ||
#define BUTT_4 0x18319BAD | ||
#define BUTT_5 0xF39EEBAD | ||
#define BUTT_6 0x4AABDFAD | ||
#define BUTT_7 0xE25410AD | ||
#define BUTT_8 0x297C76AD | ||
#define BUTT_9 0x14CE54AD | ||
#define BUTT_0 0xC089F6AD | ||
#define BUTT_STAR 0xAF3F1BAD // * | ||
#define BUTT_HASH 0x38379AD // # | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это кнопки с клавы?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А, понял, это ж .ino, пульт
#define BUTT_UP 0xE51CA6AD | ||
#define BUTT_DOWN 0xD22353AD | ||
#define BUTT_LEFT 0x517068AD | ||
#define BUTT_RIGHT 0xAC2A56AD | ||
#define BUTT_OK 0x1B92DDAD | ||
#define BUTT_1 0x68E456AD | ||
#define BUTT_2 0xF08A26AD | ||
#define BUTT_3 0x151CD6AD | ||
#define BUTT_4 0x18319BAD | ||
#define BUTT_5 0xF39EEBAD | ||
#define BUTT_6 0x4AABDFAD | ||
#define BUTT_7 0xE25410AD | ||
#define BUTT_8 0x297C76AD | ||
#define BUTT_9 0x14CE54AD | ||
#define BUTT_0 0xC089F6AD | ||
#define BUTT_STAR 0xAF3F1BAD // * | ||
#define BUTT_HASH 0x38379AD // # | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А, понял, это ж .ino, пульт
@@ -0,0 +1,589 @@ | |||
<# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему бы не предоставить интерфейс отдельным проектом? 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
как вариант, можно вынести, чтоб отделить мух от котлет)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define REMOTE_TYPE 1 // 0 - без пульта, 1 - пульт от WAVGAT, 2 - пульт от KEYES, 3 - кастомный пульт, 4 - управление с ПК
@@ -14,7 +14,7 @@ | |||
// ***************************** НАСТРОЙКИ ***************************** | |||
|
|||
// ----- настройка ИК пульта | |||
#define REMOTE_TYPE 1 // 0 - без пульта, 1 - пульт от WAVGAT, 2 - пульт от KEYES, 3 - кастомный пульт | |||
#define REMOTE_TYPE 4 // 0 - без пульта, 1 - пульт от WAVGAT, 2 - пульт от KEYES, 3 - кастомный пульт, 4 - управление с ПК |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не лучший варик менять значение, лучше просто оставить коммент для параметра. Если ветку сольют, то невнимательные прошивальщики начнут жаловаться, что не работает пульт 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, изменения не должны менять настройки предыдущего конфига.. Надо чтоб опция только в комментарии появилась.
Добавил режим для управления светомузыкой с командной строки/монитора порта, для этого нужно переключить режим (REMOTE_TYPE=4) + установить библиотеку CommandLine (добавил в проект).
Плюс сделал форму на powershell для удобного управления с ПК
Описание команд в readme.
p.s. на форме внизу возле кнопки стробоскоп оставил для себя место для ещё одной кнопки, хочу ещё режим добавить :)