//    *****************************************
//    **             RC-SOCCERBOT            **
//    **    Uebungen / Lehrerbegleitbuch     **
//    **                                     **
//    **      Autor: Hannes Runknagel        **
//    **  Copyright: 2007 by GRAUPNER        **
//    **  www.graupner-robotics.de           **
//    *****************************************

#include "qfixSoccerBoard.h"

SoccerBoard robot;


int numButtons(void)
{
  int counter = - 1;
  if (robot.button(0)) counter = counter + 1;
  if (robot.button(1)) counter = counter + 1;
  return counter;
}


int main()
{
  while (true) {
    robot.ledsOff();
    robot.ledOn(numButtons());
  }
}




