forked from M-Labs/artiq
io_expander: initialize before service
This commit is contained in:
parent
f7abc156cb
commit
363f7327f1
@ -632,7 +632,8 @@ pub extern fn main() -> i32 {
|
||||
#[cfg(soc_platform = "efc")]
|
||||
{
|
||||
io_expander = board_misoc::io_expander::IoExpander::new().unwrap();
|
||||
|
||||
io_expander.init().expect("I2C I/O expander initialization failed");
|
||||
|
||||
// Enable LEDs
|
||||
io_expander.set_oe(0, 1 << 5 | 1 << 6 | 1 << 7).unwrap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user