![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Blank program for v0.9 API
Dependencies: PsiSwarmV9 mbed
Fork of PsiSwarm_V8_Blank_CPP by
Diff: main.h
- Revision:
- 0:9c0ccd879613
- Child:
- 2:5d37e5fd7141
diff -r 000000000000 -r 9c0ccd879613 main.h --- /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