Page 1 of 1

Trying to understand the Class structure

Posted: Thu Dec 11, 2014 4:29 pm
by Magicj
I am trying to use my ReefAngel sketch to learn about the best way to write additional routines.

It is probably just me not fully understanding how the 'Class' structures work within the Arduino language, but I cannot find where something like "ReefAngel.PWM.SetChannel actually processes the analogWrite statement.

I have searched through all (I think) of the various libraries and cannot find the line that actually writes to the appropriate pin - can someone please point me in the right direction.

Thanks

Re: Trying to understand the Class structure

Posted: Thu Dec 11, 2014 4:39 pm
by rimai
It's inside ReefAngel.cpp

Re: Trying to understand the Class structure

Posted: Thu Dec 11, 2014 7:44 pm
by Magicj
Thanks Roberto

I did look there but I will have another look tonight.

Cheers