changeset 156:d4d3c3228208 main

the LED is installed reverse with respect to ground.
author Bob Cook <bob@bobcookdev.com>
date Sat, 08 Sep 2012 13:18:17 -0700
parents a5289fe64ef6
children 104286325311
files main/robots/odr-remote/main.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main/robots/odr-remote/main.cpp	Sat Sep 08 13:17:03 2012 -0700
+++ b/main/robots/odr-remote/main.cpp	Sat Sep 08 13:18:17 2012 -0700
@@ -83,7 +83,7 @@
         spinwait_delay_ms( 75 );
     }
 
-    PORTB |= ( 1 << PB0 ); // led off
+    PORTB &= ~( 1 << PB0 ); // led off
 
     //--    Set up a 30 Hz (approximate) "heartbeat" interrupt timer using the overflow
     //      interrupt routine.
@@ -144,7 +144,7 @@
         
         if ( ( PIND & ( 1 << PD6 ) ) == 0 )
         {
-            PORTB &= ~( 1 << PB0 ); // led on
+            PORTB |= ( 1 << PB0 ); // led on
 
             uint8_t txbuf[ 4 ];
             txbuf[ 0 ] = outgoing;
@@ -165,7 +165,7 @@
         }
         else
         {
-            PORTB |= ( 1 << PB0 ); // led off
+            PORTB &= ~( 1 << PB0 ); // led off
         }
     }