Adrian Clarke / microbit_Buggy_Basics

Dependencies:   microbit

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Microbit_function.h Source File

Microbit_function.h

00001 
00002 #ifndef MICROBIT_FUNCTIONS_H
00003 #define MICROBIT_FUNCTIONS_H
00004 
00005 #include "MicroBit.h"
00006 #include "buggy_function.h"
00007 
00008 /*We need to define which pins the Sensors will be on.
00009 Potentially P0,P1,P2. all other pads 
00010 */
00011 #define Left_Line_Sensor P0
00012 #define Right_Line_Sensor P1
00013 
00014 // This typedef is used to define the values that a compass can be
00015 typedef enum {
00016     North,
00017     East,
00018     South,
00019     West,
00020     Default
00021 }Compass_Dirs;
00022 
00023 
00024 extern Compass_Dirs Compass();
00025 extern void pointNorth();
00026 extern void pointSouth();
00027 extern void Display(Direction Current_Direction);
00028 extern int left_Sensor();
00029 extern int right_Sensor();
00030 extern void microBit_Setup();
00031 
00032 #endif