From 956bcc108569a95dec14e70daabacb444fcf8005 Mon Sep 17 00:00:00 2001 From: Levi Pearson Date: Wed, 27 Mar 2019 04:55:15 -0600 Subject: [PATCH] Fix openocd reset and RGB color sequence --- openocd.cfg | 1 + src/main.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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()