Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
bc05058e
Commit
bc05058e
authored
Sep 06, 2019
by
Woazboat
Browse files
fix(portexpander): portexpander_out_put() now takes a mask as value
parent
9325a212
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/card10/display.c
View file @
bc05058e
...
...
@@ -22,7 +22,7 @@ void display_set_reset_pin(uint8_t state)
if
(
!
portexpander_detected
())
{
MAX77650_setDO
(
state
?
true
:
false
);
}
else
{
portexpander_out_put
(
PIN_4
,
state
);
portexpander_out_put
(
PIN_4
,
state
?
0xFF
:
0
);
}
}
...
...
lib/card10/leds.c
View file @
bc05058e
...
...
@@ -340,7 +340,7 @@ void leds_update(void)
void
leds_flashlight
(
bool
power
)
{
portexpander_out_put
(
PIN_7
,
(
power
)
?
0
:
1
);
portexpander_out_put
(
PIN_7
,
(
power
)
?
0
:
0xFF
);
}
void
leds_set_gamma_table
(
uint8_t
rgb_channel
,
uint8_t
table
[
256
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment