Just a quick custom service
wavr.h
- Committer:
- gaggenwaschke
- Date:
- 2018-11-23
- Revision:
- 0:bc6cd13ebbdb
- Child:
- 1:79a62e074c35
File content as of revision 0:bc6cd13ebbdb:
/* Copyright (c) 2016 Aconno. All Rights Reserved. * * Licensees are granted free, non-transferable use of the information. NO * WARRANTY of ANY KIND is provided. This heading must NOT be removed from * the file. * */ #ifndef WAVR4 #define WAVR4 #include "drv8837.h" #include "mbed.h" #include <events/mbed_events.h> #include "ble/BLE.h" #include <stdbool.h> /** * Settings for general behavior */ #define EVENT_QUEUE_SIZE (8) // size of the event queue /** * General IO pins */ #define PIN_LED_RED (p12) //Module red LED #define PIN_LED_BLUE (p14) //Module blue LED #define PIN_LED_GREEN (p15) //Module green LED /** * Pins for the DRV8837 motor controller */ #define PIN_M_NSLEEP (p21) // inverted sleep motor driver #define PIN_M_IN1 (p10) // motor driver in1 #define PIN_M_IN2 (p9) // motor driver in2 /** * Settings for BT */ #define DEVICE_NAME "aconno_roawr" // BT name of the device #define TX_POWER (4) // TX power (in dB) #define MSD_SIZE (29) // Manufacturer Specific Data lenght (in B) #define ADVERTISING_INTERVAL_MS (500) // interval in which the device is advertised, at least 100ms #endif