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

Изменить логику инициализации сенсоров #16

Open
alex13sh opened this issue Dec 11, 2020 · 1 comment
Labels
Milestone

Comments

@alex13sh
Copy link
Owner

У меня сейчас в init модуле указывается тип сенсора и пин, а в Device я для каждого сенсора указываю все значения.
Я думаю, такой кастыль (отнаследованный от c++) можно убрать. Лучше сделать функцию в init модулей, которую я буду вызывать с аргументами, а он будет возвращать Сенсор со всеми значениями.

@alex13sh alex13sh added the idea label Dec 11, 2020
@alex13sh alex13sh added this to the v0.2 milestone Dec 16, 2020
@alex13sh
Copy link
Owner Author

Я уже переделал инициализацию сенсоров, теперь это полностью в модуле init и из device полностью удалён код для создания сенсоров модулей

alex13sh pushed a commit that referenced this issue Apr 6, 2022
…eln в программе. Closed #8' (#16) from meln_logic into master

Reviewed-on: https://git.oberon-alfa.ru/prishchepa.aleksej/SimpleUI_Rust/pulls/16

Реактивный подход для автоматизации внедрён
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant