Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4972

C/C++ • Understanding the Basics of Callback() and Similar Functions

$
0
0
I'm a new student/hobbyist of C++ and Raspberry Pi. I'm using Brombach's "Practical Robotics in C++" as one of my references. He introduces the use of the function callback() for use with pigpiod. I have two questions. 1) I was looking for information online about callback(), but I'm not finding any. Can someone point me to documentation about this function. 2) Could someone point me to an explanation (for the beginner-level, if possible) of how such a callback function works. I'm trying to understand how the computer runs other parts of the program while continuously is "listening" for the event that would trigger the callback. Thank you for any help.

Statistics: Posted by RJMc — Sat Sep 07, 2024 2:06 am



Viewing all articles
Browse latest Browse all 4972

Trending Articles