Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822_SimpleControls by
Diff: main.cpp
- Revision:
- 3:53cd39af0b12
- Parent:
- 1:eda9c65b6db9
- Child:
- 4:a43cbe8aed6a
--- a/main.cpp Mon Feb 22 16:18:41 2016 +0000 +++ b/main.cpp Mon Feb 22 16:21:00 2016 +0000 @@ -19,7 +19,7 @@ #include "mbed.h" #include "ble/BLE.h" -#include "Servo.h" +//#include "Servo.h" #include "GattCallbackParamTypes.h" #define BLE_UUID_TXRX_SERVICE 0x0000 /**< The UUID of the Nordic UART Service. */ @@ -31,7 +31,7 @@ #define DIGITAL_OUT_PIN P0_17 //D7 #define DIGITAL_IN_PIN P0_5 //A4 #define PWM_PIN P0_16 //D6 -#define SERVO_PIN P0_14 //D10 +//#define SERVO_PIN P0_14 //D10 #define ANALOG_IN_PIN P0_6 //A5 BLE ble; @@ -40,7 +40,7 @@ DigitalIn BUTTON(DIGITAL_IN_PIN); PwmOut PWM(PWM_PIN); AnalogIn ANALOG(ANALOG_IN_PIN); -Servo MYSERVO(SERVO_PIN); +//Servo MYSERVO(SERVO_PIN); Serial pc(USBTX, USBRX); @@ -143,7 +143,7 @@ } else if(buf[0] == 0x03) { - MYSERVO.write(buf[1]); + //MYSERVO.write(buf[1]); //por dixys pc.printf("SERVO buffer \r\n"); } @@ -151,7 +151,7 @@ { analog_enabled = 0; PWM = 0; - MYSERVO.write(0); + //MYSERVO.write(0); LED_SET = 0; old_state = 0; //por dixys