00001 /******************************************************************************* 00002 * 00003 * File Name: Demo.c 00004 * Project : Demo 00005 * 00006 * Description: This file contains Demo main routine 00007 * 00008 * Ver. Date Author Comments 00009 * ------- ---------- -------------- ------------------------------ 00010 * 1.00 14.08.2003 Jan Grewe build 00011 * 2.20 19.12.2005 m.a.r.v.i.n PCDemo, RechteckDemo funktionieren nicht mehr mit aktueller Lib 00012 * 00013 * Copyright (c) 2003 DLR Robotics & Mechatronics 00014 *****************************************************************************/ 00015 /*************************************************************************** 00016 * * 00017 * This program is free software; you can redistribute it and/or modify * 00018 * it under the terms of the GNU General Public License as published by * 00019 * the Free Software Foundation; either version 2 of the License, or * 00020 * any later version. * 00021 ***************************************************************************/ 00022 #include "asuro.h" 00023 #include "LineDemo.h" 00024 //#include "RechteckDemo.h" 00025 //#include "PCDemo.h" 00026 #include "IRDemo.h" 00027 00028 void Demo (void) 00029 { 00030 unsigned char sw; 00031 Init(); 00032 for (;;) 00033 { 00034 sw = PollSwitch(); 00035 if (sw == 0x01) LineDemo(); 00036 // if (sw == 0x02) RechteckDemo(); 00037 // if (sw == 0x04) PCDemo(); 00038 if (sw == 0x08) IRDemo(); 00039 } 00040 }