Just a quick custom service
Diff: wavr.h
- Revision:
- 0:bc6cd13ebbdb
- Child:
- 1:79a62e074c35
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wavr.h Fri Nov 23 08:59:41 2018 +0000 @@ -0,0 +1,45 @@ +/* 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 \ No newline at end of file