Skip to content

Commit f042a31

Browse files
committed
[board] Fix inverted LEDs on samv71_xplained_ultra
1 parent b05a3a2 commit f042a31

File tree

1 file changed

+3
-2
lines changed
  • src/modm/board/samv71_xplained_ultra

1 file changed

+3
-2
lines changed

src/modm/board/samv71_xplained_ultra/board.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ struct SystemClock
6565
}
6666
};
6767

68-
using Led0 = GpioA23;
69-
using Led1 = GpioC9;
68+
using Led0 = GpioInverted<GpioA23>;
69+
using Led1 = GpioInverted<GpioC9>;
7070
using ButtonSW0 = GpioInverted<GpioA9>;
7171

7272
using Leds = SoftwareGpioPort<Led1, Led0>;
@@ -109,6 +109,7 @@ initialize()
109109
Debug::Uart::initialize<SystemClock, 115200>();
110110
Debug::Uart::connect<Debug::UartTx::Tx, Debug::UartRx::Rx>();
111111

112+
Leds::reset();
112113
Leds::setOutput();
113114
ButtonSW0::setInput(InputType::PullUp);
114115

0 commit comments

Comments
 (0)