Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

TsSaltan
Copy link

Добавил режим для управления светомузыкой с командной строки/монитора порта, для этого нужно переключить режим (REMOTE_TYPE=4) + установить библиотеку CommandLine (добавил в проект).

Плюс сделал форму на powershell для удобного управления с ПК
Powershell RC Form

Описание команд в readme.

p.s. на форме внизу возле кнопки стробоскоп оставил для себя место для ещё одной кнопки, хочу ещё режим добавить :)

Новый подрежим "анимация огня" для режима постоянно подсветки (№7).

Настройка
Вверх/вниз - изменение высоты огня
Влево/вправо - изменение частоты повяления "вспышек"
@TsSaltan
Copy link
Author

Ещё добавил режим огня (не зависит от музыки)
Режим 7 (цветная подсветка), подрежим 3.

Форма для управления теперь выглядит так.

@TsSaltan
Copy link
Author

Кстати, можно подрубить модуль bluetooth в rx/tx и будет управление через bluetooth

Comment on lines +184 to +201
#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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это кнопки с клавы?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А, понял, это ж .ino, пульт

Comment on lines +184 to +201
#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
Copy link

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 @@
<#
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему бы не предоставить интерфейс отдельным проектом? 😊

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

как вариант, можно вынести, чтоб отделить мух от котлет)

Copy link

@vesh95 vesh95 left a 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 - управление с ПК
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не лучший варик менять значение, лучше просто оставить коммент для параметра. Если ветку сольют, то невнимательные прошивальщики начнут жаловаться, что не работает пульт 😆

Copy link
Contributor

@Evg33 Evg33 Jun 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, изменения не должны менять настройки предыдущего конфига.. Надо чтоб опция только в комментарии появилась.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants