2021-08-23 18:39:09 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Tyler Perkins
|
|
|
|
// 8-23-21
|
|
|
|
// Entry point
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "config.hpp"
|
2021-08-23 19:44:02 +00:00
|
|
|
#include "handler/handler.hpp"
|
2021-09-16 23:03:12 +00:00
|
|
|
#include "board.hpp"
|
2021-08-23 18:39:09 +00:00
|
|
|
|
2021-09-18 03:39:14 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
2021-08-23 18:39:09 +00:00
|
|
|
int main(int argc, char** argv){
|
2021-08-23 19:44:02 +00:00
|
|
|
dashboard::handlers::setHandlers();
|
2021-08-23 18:39:09 +00:00
|
|
|
|
2021-09-18 03:39:14 +00:00
|
|
|
dashboard::board _board(false);
|
2021-09-16 23:03:12 +00:00
|
|
|
|
2021-09-18 03:39:14 +00:00
|
|
|
if(_board.init() != 0){
|
|
|
|
std::cerr << "Due to errors, " << argv[0]
|
|
|
|
<< " was unable to start, quitting!" << std::endl;
|
|
|
|
}
|
2021-09-16 23:11:58 +00:00
|
|
|
|
2021-09-18 03:39:14 +00:00
|
|
|
_board.start();
|
2021-08-23 18:39:09 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|