Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Fri Jul 15 2022 13:57:07 by
1.7.2