entire project
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "ble/BLE.h" 00003 #include "Servo.h" 00004 00005 00006 #define BLE_UUID_TXRX_SERVICE 0x0000 /**< The UUID of the Nordic UART Service. */ 00007 #define BLE_UUID_TX_CHARACTERISTIC 0x0002 /**< The UUID of the TX Characteristic. */ 00008 #define BLE_UUIDS_RX_CHARACTERISTIC 0x0003 /**< The UUID of the RX Characteristic. */ 00009 00010 #define TXRX_BUF_LEN 20 00011 /* 00012 define user IO ports here 00013 */ 00014 00015 //SPI 00016 #define CS P0_7 //chipselect 00017 #define MOSI P0_9 //Master Out Slave In 00018 #define MISO P0_11 //Master In Slave Out 00019 #define SCK P0_8 //Clock 00020 //Interrupts 00021 #define INT1 P0_15 //interrupt for ADXL345 00022 //additional IO 00023 #define ON_SW P0_28 //ON/OFF switch 00024 #define BEPB P0_29 //Enable/disable bluetooth push button 00025 00026 /* 00027 end user IO port definition 00028 */ 00029 00030 00031 BLE ble;
Generated on Thu Jul 14 2022 18:36:48 by
1.7.2