diff --git a/openocd.cfg b/openocd.cfg index d150d12..b5bf00f 100644 --- a/openocd.cfg +++ b/openocd.cfg @@ -4,3 +4,4 @@ source [find interface/xds110.cfg] adapter_khz 2500 transport select swd source [find target/ti_msp432.cfg] +reset_config none separate diff --git a/src/main.rs b/src/main.rs index 24875d6..9e979a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,19 +65,19 @@ fn main() -> ! { // toggle RGB LEDs - if led2 & 0b001 == 1 { + if led2 & 0b001 == 0 { rgb_red.set_high() } else { rgb_red.set_low() } - if led2 & 0b010 == 1 { + if led2 & 0b010 == 0 { rgb_blue.set_high() } else { rgb_blue.set_low() } - if led2 & 0b100 == 1 { + if led2 & 0b100 == 0 { rgb_green.set_high() } else { rgb_green.set_low()