I hardly know what I am asking about here but it appears to me as often libraries found online are used by first instantiating an object in the global scope and then in the setup() you use a method in that object usually called begin().
Why is that?
I can't point to specific examples but sometimes I have had troubles when trying to get everything done in the constructor body only to find out that it doesn't work but when I move parts of that code into another method function to be called in the setup(), then the functioning of the class suddenly works but I am just confused as to when and why I can do what and what I can't do in the constructor body. And reading up on basic C++ haven't revealed any answers.
If anyone could shed some light on whatever it is that I am writing about I would really appreciate it.
By the way I know about how to initialize objects in another objects constructor through that list(":") thing.