Evaluation version
Dependencies: mbed BLE_API nRF51822
board.h
00001 /* for micro:bit */ 00002 00003 #define MICROBIT 00004 00005 #define DBG_TX P0_24 00006 #define DBG_RX P0_25 00007 00008 #define I2C_SCL P0_0 00009 #define I2C_SDA P0_30 00010 #define I2C_SPEED 100000 00011 00012 #define LED_COL1 P0_4 00013 #define LED_COL2 P0_5 00014 #define LED_COL3 P0_6 00015 #define LED_COL4 P0_7 00016 #define LED_COL5 P0_8 00017 #define LED_COL6 P0_9 00018 #define LED_COL7 P0_10 00019 #define LED_COL8 P0_11 00020 #define LED_COL9 P0_12 00021 #define LED_RAW1 P0_13 00022 #define LED_RAW2 P0_14 00023 #define LED_RAW3 P0_15 00024 00025 // GPIO assigne 00026 static const uint8_t validGpioPins[] = {1,2,3,17,18,20,26}; 00027 uint8_t eventGpioPins[] = {0,0,0,0 ,0 ,0 ,0, 0}; 00028 uint8_t currentGpioLevel[] = {0,0,0,0 ,0 ,0 ,0, 0}; 00029 00030 DigitalInOut gports[] = { 00031 DigitalInOut(P0_1,PIN_INPUT,PullNone,0), 00032 DigitalInOut(P0_2,PIN_INPUT,PullNone,0), 00033 DigitalInOut(P0_3,PIN_INPUT,PullNone,0), 00034 DigitalInOut(P0_17,PIN_INPUT,PullNone,0), 00035 DigitalInOut(P0_18,PIN_INPUT,PullNone,0), 00036 DigitalInOut(P0_20,PIN_INPUT,PullNone,0), 00037 DigitalInOut(P0_26,PIN_INPUT,PullNone,0), 00038 }; 00039 #define GPIO_LED_CONNECT P0_16
Generated on Thu Jul 14 2022 00:52:48 by
1.7.2