#include "RCX_RTE.h"
#include "Speaker.h"

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

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

void _start(void) 
{ 
  
  SpeakerInit();
  
  lcd_show_icon(LCD_WALKING);
  
  while ( ! OnOff ) {
    SpeakerPlay(9,100);
    BusyPauseMS(0);
  }
  
  RCX_Reset();
}      
