#include "RCX_RTE.h"
#include "OutputPorts.h"

/* Buttons */
#define port4_addr  0xffb7
#define port4       *((volatile byte *) port4_addr)

#define OnOff       ! ( port4 & ( 1 << 1 ) )

void _start(void) 
{ 
  lcd_show_icon(LCD_WALKING);
  PortA(OnPos); PortB(OnNeg); PortC(Brake);
  
  while ( ! OnOff ) {
    lcd_show_int16(OutputPorts);    
  }
  
  RCX_Reset();
}       
