Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teal Starsong
flow3r firmware
Commits
bff1bdda
Commit
bff1bdda
authored
1 year ago
by
dx
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
format
parent
5f869a93
No related branches found
Branches containing commit
Tags
v1.0.0+rc1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/st3m/st3m_leds.c
+3
-4
3 additions, 4 deletions
components/st3m/st3m_leds.c
with
3 additions
and
4 deletions
components/st3m/st3m_leds.c
+
3
−
4
View file @
bff1bdda
...
...
@@ -107,15 +107,14 @@ void st3m_leds_update_hardware() {
void
st3m_leds_set_single_rgb
(
uint8_t
index
,
float
red
,
float
green
,
float
blue
)
{
if
(
red
>
1
.
0
)
red
/=
255
.
0
;
if
(
green
>
1
.
0
)
green
/=
255
.
0
;
if
(
blue
>
1
.
0
)
blue
/=
255
.
0
;
LOCK_INCOMING
;
state
.
target_buffer
[
index
].
r
=
(
uint8_t
)
(
red
*
255
);
state
.
target_buffer
[
index
].
g
=
(
uint8_t
)
(
green
*
255
);
state
.
target_buffer
[
index
].
b
=
(
uint8_t
)
(
blue
*
255
);
state
.
target_buffer
[
index
].
r
=
(
uint8_t
)(
red
*
255
);
state
.
target_buffer
[
index
].
g
=
(
uint8_t
)(
green
*
255
);
state
.
target_buffer
[
index
].
b
=
(
uint8_t
)(
blue
*
255
);
UNLOCK_INCOMING
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment