![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Version 1
Revision 1:a6b119bfa56b, committed 2020-09-04
- Comitter:
- d4rth_j0k3r
- Date:
- Fri Sep 04 13:35:57 2020 +0000
- Parent:
- 0:ad26a5d97cd7
- Commit message:
- Finish
Changed in this revision
source/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ad26a5d97cd7 -r a6b119bfa56b source/main.cpp --- a/source/main.cpp Fri Aug 07 07:10:58 2020 +0000 +++ b/source/main.cpp Fri Sep 04 13:35:57 2020 +0000 @@ -29,8 +29,8 @@ LEDDemo(BLE &ble, events::EventQueue &event_queue) : _ble(ble), _event_queue(event_queue), - _alive_led(LED1, 1), - _actuated_led(LED2, 0), + //_alive_led(LED1, 1), + _actuated_led(LED1, 0), _led_uuid(LEDService::LED_SERVICE_UUID), _led_service(NULL), _adv_data_builder(_adv_buffer) { } @@ -44,7 +44,7 @@ _ble.init(this, &LEDDemo::on_init_complete); - _event_queue.call_every(500, this, &LEDDemo::blink); + //_event_queue.call_every(500, this, &LEDDemo::blink); _event_queue.dispatch_forever(); } @@ -121,9 +121,9 @@ } } - void blink() { + /*void blink() { _alive_led = !_alive_led; - } + }*/ private: /* Event handler */ @@ -135,7 +135,7 @@ private: BLE &_ble; events::EventQueue &_event_queue; - DigitalOut _alive_led; + //DigitalOut _alive_led; DigitalOut _actuated_led; UUID _led_uuid;