feilipu / Arduino_FreeRTOS_Library

A FreeRTOS Library for all Arduino ATmega Devices (Uno R3, Leonardo, Mega, etc).
MIT License
854 stars 204 forks source link

FAQ (for anyone who wishes to ask..) #97

Closed Coder-X15 closed 3 years ago

Coder-X15 commented 3 years ago

I have a few doubts regarding this project, which I'd like to get cleared:

  1. Does the xTaskCreate() function support functions that are not of the void type ?
  2. Is it capable of speeding up custom-made GUI ?
  3. Where can I get a better reference guide on this library and its functions ?

Thanks in advance ! :)

feilipu commented 3 years ago
  1. Does the xTaskCreate() function support functions that are not of the void type? - The reference for xTaskCreate() is here in the FreeRTOS documentation. Everything about FreeRTOS is there to read.
  2. Is it capable of speeding up custom-made GUI? - Programming a GUI is unrelated to FreeRTOS.
  3. Where can I get a better reference guide on this library and its functions? - The extensive documentation for FreeRTOS is available here. Questions arising can be asked at the FreeRTOS community forum. It is best to keep this Issues register purely for library implementation issues (bugs or enhancements). Or use the Discussions Tab above for discussion.
Coder-X15 commented 3 years ago

Thanks... seems like my second doubt was stupid, but why I actually asked it was whether it could be used to run two different widgets on a screen at the same time by using the capabilities of this marvellous project ':)

Coder-X15 commented 3 years ago

Also, thanks for labeling this as a discussion.. I didn't know how to label these 😄

feilipu commented 3 years ago

...whether it could be used to run two different widgets on a screen at the same time?

Typically, one Task might be set up to manage a piece of hardware or logical interface (i.e. the screen). Then you'd use message passing via Queues to inform that task that the widgets need to be updated, using one or more Tasks to generate the messages if you have separate sources.

One Task might read the temperature, and another might handle the keyboard. Inputs from these two Tasks could change screen widgets via queue based message passing.

But, that is a very general answer to a very general question.

Coder-X15 commented 3 years ago

Ok thanks....