complete file moving
This commit is contained in:
1 parent
8b60180b45
commit
986a0f8b90
18 files changed
+54
-59
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2019 Ha Thach (tinyusb.org) for Adafruit Industries
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef BLEADAFRUITSERVICE_H_
|
||||
#define BLEADAFRUITSERVICE_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
#include "services/BLEAdafruitSensor.h"
|
||||
#include "services/BLEAdafruitTemperature.h"
|
||||
#include "services/BLEAdafruitTemperature.h"
|
||||
#include "services/BLEAdafruitRgbPixel.h"
|
||||
#include "services/BLEAdafruitAccel.h"
|
||||
#include "services/BLEAdafruitLightSensor.h"
|
||||
#include "services/BLEAdafruitButton.h"
|
||||
#include "services/BLEAdafruitTone.h"
|
||||
|
||||
|
||||
#endif /* BLEADAFRUITSERVICE_H_ */
|
||||
@@ -22,7 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
|
||||
@@ -25,13 +25,6 @@
|
||||
#ifndef BLEADAFRUITACCEL_H_
|
||||
#define BLEADAFRUITACCEL_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
#include "BLEAdafruitSensor.h"
|
||||
|
||||
class BLEAdafruitAccel : public BLEAdafruitSensor
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
|
||||
@@ -25,12 +25,6 @@
|
||||
#ifndef BLE_ADAFRUIT_BUTTON_H_
|
||||
#define BLE_ADAFRUIT_BUTTON_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
#include "BLEAdafruitSensor.h"
|
||||
|
||||
class BLEAdafruitButton : public BLEAdafruitSensor
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
|
||||
@@ -25,13 +25,6 @@
|
||||
#ifndef BLE_ADAFRUIT_LIGHT_SENSOR_H_
|
||||
#define BLE_ADAFRUIT_LIGHT_SENSOR_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
#include "BLEAdafruitSensor.h"
|
||||
|
||||
class BLEAdafruitLightSensor : public BLEAdafruitSensor
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
@@ -69,7 +69,7 @@ BLEAdafruitRgbPixel::BLEAdafruitRgbPixel(void)
|
||||
|
||||
}
|
||||
|
||||
err_t BLEAdafruitRgbPixel::begin (Adafruit_NeoPixel* neo_pixel)
|
||||
err_t BLEAdafruitRgbPixel::begin (/*Adafruit_NeoPixel* neo_pixel*/)
|
||||
{
|
||||
// Invoke base class begin()
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef BLEADAFRUITRGBPIXEL_H_
|
||||
#define BLEADAFRUITRGBPIXEL_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
class BLEAdafruitRgbPixel : public BLEService
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitSensor.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef BLE_ADAFRUIT_SENSOR_H_
|
||||
#define BLE_ADAFRUIT_SENSOR_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
class BLEAdafruitSensor : public BLEService
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
|
||||
@@ -25,13 +25,6 @@
|
||||
#ifndef BLEADAFRUITTEMPERATURE_H_
|
||||
#define BLEADAFRUITTEMPERATURE_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
#include "BLEAdafruitSensor.h"
|
||||
|
||||
class BLEAdafruitTemperature : public BLEAdafruitSensor
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "bluefruit.h"
|
||||
#include "BLEAdafruitService.h"
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
#ifndef BLEADAFRUITTONE_H_
|
||||
#define BLEADAFRUITTONE_H_
|
||||
|
||||
#include "bluefruit_common.h"
|
||||
|
||||
#include "BLECharacteristic.h"
|
||||
#include "BLEService.h"
|
||||
|
||||
class BLEAdafruitTone : public BLEService
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <bluefruit.h>
|
||||
#include <Adafruit_LittleFS.h>
|
||||
#include <InternalFileSystem.h>
|
||||
#include <BLEAdafruitService.h>
|
||||
#include <Adafruit_CircuitPlayground.h>
|
||||
|
||||
// BLE Service
|
||||
@@ -71,7 +72,7 @@ uint16_t measure_accel(uint8_t* buf, uint16_t bufsize)
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
while ( !Serial ) delay(10); // for nrf52840 with native usb
|
||||
//while ( !Serial ) delay(10); // for nrf52840 with native usb
|
||||
|
||||
Serial.println("Bluefruit52 BLEUART Example");
|
||||
Serial.println("---------------------------\n");
|
||||
|
||||
@@ -143,6 +143,7 @@ class BLECharacteristic
|
||||
bool notifyEnabled(uint16_t conn_hdl);
|
||||
|
||||
/*------------- Notify -------------*/
|
||||
// bool notify (void);
|
||||
bool notify (const void* data, uint16_t len);
|
||||
bool notify (const char* str);
|
||||
|
||||
@@ -152,6 +153,7 @@ class BLECharacteristic
|
||||
bool notify32 (int num);
|
||||
|
||||
/*------------- Notify multiple connections -------------*/
|
||||
// bool notify (uint16_t conn_hdl);
|
||||
bool notify (uint16_t conn_hdl, const void* data, uint16_t len);
|
||||
bool notify (uint16_t conn_hdl, const char* str);
|
||||
|
||||
|
||||
@@ -62,13 +62,6 @@
|
||||
#include "services/BLEMidi.h"
|
||||
#include "services/EddyStone.h"
|
||||
|
||||
#include "services/BLEAdafruitTemperature.h"
|
||||
#include "services/BLEAdafruitRgbPixel.h"
|
||||
#include "services/BLEAdafruitAccel.h"
|
||||
#include "services/BLEAdafruitLightSensor.h"
|
||||
#include "services/BLEAdafruitButton.h"
|
||||
#include "services/BLEAdafruitTone.h"
|
||||
|
||||
#include "clients/BLEAncs.h"
|
||||
#include "clients/BLEClientUart.h"
|
||||
#include "clients/BLEClientDis.h"
|
||||
|
||||
Reference in new issue
Block a user