
Blank program code for the Psi Swarm robot (PCB 1.5) using API version 0.7
Dependencies: PsiSwarmV7 mbed
Diff: main.h
- Revision:
- 0:9c0ccd879613
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Sat Oct 15 13:52:26 2016 +0000 @@ -0,0 +1,38 @@ +/*********************************************************************** +** ██████╗ ███████╗██╗███████╗██╗ ██╗ █████╗ ██████╗ ███╗ ███╗ ** +** ██╔══██╗██╔════╝██║██╔════╝██║ ██║██╔══██╗██╔══██╗████╗ ████║ ** +** ██████╔╝███████╗██║███████╗██║ █╗ ██║███████║██████╔╝██╔████╔██║ ** +** ██╔═══╝ ╚════██║██║╚════██║██║███╗██║██╔══██║██╔══██╗██║╚██╔╝██║ ** +** ██║ ███████║██║███████║╚███╔███╔╝██║ ██║██║ ██║██║ ╚═╝ ██║ ** +** ╚═╝ ╚══════╝╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ** +************************************************************************ +** Copyright 2016 University of York ** +** ** +** Licensed under the Apache License, Version 2.0 (the "License") ** +** You may not use this file except in compliance with the License. ** +** You may obtain a copy of the License at ** +** http://www.apache.org/licenses/LICENSE-2.0 Unless required by ** +** applicable law or agreed to in writing, software distributed under ** +** under the License is distributed on an "AS IS" BASIS WITHOUT ** +** WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** +** See the License for the specific language governing permissions ** +** and limitations under the License. ** +***********************************************************************/ + +/// PsiSwarm Blank Example Code +/// Version 0.7 +/// James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis +/// University of York + +#ifndef MAIN_H +#define MAIN_H + +#include "psiswarm.h" + +int main(void); +void user_code_setup(void); +void user_code_loop(void); +void handle_switch_event(char switch_state); +void handle_user_serial_message(char * message, char length, char interface); + +#endif \ No newline at end of file