T-vK / ESP32-BLE-Mouse

Bluetooth LE Mouse library for the ESP32 (Arduino IDE compatible)
675 stars 133 forks source link

Implementation, with respect to a line of code within BleMouse.cpp #28

Open M0rsec0de762 opened 2 years ago

M0rsec0de762 commented 2 years ago

Hello,

I noticed that, within BleMouse.cpp, xTaskCreate() was being called. I have a few questions regarding this.

  1. The example code(specifically ScrollAndMouseMove), that is included with this library, doesnt seem to implement an RTOS structure. How are you able to implement a task, while also being able to use a main-loop coding structure?
  2. What library are you using to call xTaskCreate()? I am having trouble finding it and I would like to reference it, in order to understand your code better.
T-vK commented 2 years ago

I don't know, I guess it's just part of arduino-esp32. This might be where it's coming from:

https://github.com/espressif/arduino-esp32/blob/caa8d07aafa04441bb85e6046a795249c01d9e39/tools/sdk/esp32/include/freertos/include/freertos/task.h#L442