setCtrMode() syntax
Opened this issue · 2 comments
Deleted user commented
@itkwon
I was confused on which one of the setCtrMode() functions to use. I assume the one with a single byte argument?
Also, am I right in guessing that the byte input actually starts as a string of the command (e.g. REPEAT_FREQ) which the function then converts to a byte to send to the control register? I've just never seen an input conversion like that before.
itkwon commented
Programmers can use first form mostly, but you can use second form if you want to reduce communication workload and have up-to-date register value of control register.
See Wiki Page. I just wrote relevant part.
itkwon commented
In addition, the pre-processor "#define" can process strings convert into byte when the compiler performs compiling the source code.