forked from lvgl/lvgl
-
Notifications
You must be signed in to change notification settings - Fork 1
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
TI demo smart home backend #1
Draft
div2779
wants to merge
12
commits into
master
Choose a base branch
from
ti-demo-smart-home-backend
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
At the bottom of the homescreen, on the left, there is an LVGL logo. Replace that with TI's logo. Signed-off-by: Suhaas Joshi <[email protected]>
Signed-off-by: Suhaas Joshi <[email protected]>
div2779
force-pushed
the
ti-demo-smart-home-backend
branch
2 times, most recently
from
January 24, 2025 11:46
221b898
to
f526522
Compare
Use alsa to open PCM device and play audio using it. Use mutex to synchronize the read of play/pause by audio thread and write of play/pause by LVGL thread. Use amixer to set volume in volume-change callback from LVGL thread. Signed-off-by: Divyansh Mittal <[email protected]>
Initialize MQTT instance for subscription with TLS set to enable encrypted communication on port 8883. Subscribe to relevant topic to receive commands for volume-control. Implement callback function to control audio volume using amixer based on the values received in MQTT packet. Signed-off-by: Divyansh Mittal <[email protected]>
Remove existing code to show random time being incremented periodically. Use date command to obtain current date-time in UTC timezone. Parse the output from date command to show on LVGL HMI. Set date-time repeatedly after every second. Maximum diversion from actual time will hence be of 1 second. This will work only when internet access is available. Signed-off-by: Divyansh Mittal <[email protected]>
Detect event ID for gpio-keys event. gpio-keys interrupt must be enabled in dts. Wait for interrupt from this event ID and lock/unlock HMI input on each key-press that is detected. Signed-off-by: Divyansh Mittal <[email protected]>
Initiate a thread that continuously flips user LED signal using sysfs with delay based on a shared variable. Protect the shared variable using mutex. Shared variable can be altered by either the LVGL HMI thread or by the MQTT callback function after it receives a packet on relevant topic. Signed-off-by: Divyansh Mittal <[email protected]>
Enable ADC channels in trigger-less mode and initiate MQTT instance for publishing messages. Poll for ADC data in fixed intervals. After each poll, publish it using MQTT. We do not publish any message if mosquitto is not able to connect to internet and initialize MQTT instance. Signed-off-by: Divyansh Mittal <[email protected]>
On each callback of change in ev charging progress, call publish function to transmit message on relevant topic via MQTT. Signed-off-by: Divyansh Mittal <[email protected]>
If button configuration is not detected, then screen should not block input on sliding Lock on HMI. Signed-off-by: Divyansh Mittal <[email protected]>
div2779
force-pushed
the
ti-demo-smart-home-backend
branch
from
January 27, 2025 09:00
98f0151
to
c8aa1e2
Compare
jsuhaas22
reviewed
Feb 3, 2025
Remove command line instructions mentioned in docstrings for some C files Signed-off-by: Divyansh Mittal <[email protected]>
Requesting 2 changes:
|
Add delay while polling for the status of play/pause button in the audio thread Signed-off-by: Divyansh Mittal <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.