#define BUTTON	SENSOR_1
#define MOTOR	OUT_A

task main()
{
#ifdef __RCX
	// RCX needs to be told what kind of sensor is used
	SetSensor(BUTTON, SENSOR_TOUCH);
#endif

	On(MOTOR);
		
	until(BUTTON == 1);

	PlaySound(SOUND_CLICK);
	Off(MOTOR);	
}
