Finializing tests
[solderbot.git] / src / main.cpp
blob857e2b57d6413382ec1dba56dac8dd75ab05afb3
1 /*
2 Copyright 2008 Lukas Kropatschek lukas.krop@gmail.com
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include <arduino.h>
20 #include <SBUI.h>
21 #include <Serial.h>
22 #include <IOManager.h>
23 #include <LCD.h>
24 #include <PS2.h>
26 #include <Debug.h>
27 #include <SolderManager.h>
29 int main()
31 init();
32 setup();
34 for (;;)
35 loop();
40 void setup()
42 // begin serial communications with a 9600 Baudrate
43 Serial.begin(9600);
45 // init the LCD screen driver
46 LCD.init();
48 // init ps2 device
49 kbd.begin();
51 // draw the main menu
52 sbui.draw();
55 void loop()
57 IOMgr.checkInput();
58 #ifdef _DEBUG_
59 /* debug.debugConsole();
60 while(true)
62 SolderMgr.manualStep(0,500);
63 delay(500);
64 SolderMgr.manualStep(0,-500);
65 delay(500);
67 SolderMgr.manualStep(1,500);
68 delay(500);
69 SolderMgr.manualStep(1,-500);
70 delay(500);
72 SolderMgr.manualStep(2,500);
73 delay(500);
74 SolderMgr.manualStep(2,-500);
75 delay(500);
78 #endif