Hi Mark,
Here's what I found.
In my code above I declared the global variable 'value' as "static unit16_t ..."
However, in Component Inspector I set 'A/D resolution' to 12bits.
Equally important, in 'Methods' I chose "GetValue16". I assume this was a problem as well.
My corrections were:
1. In Main.c I changed global variable 'value', "static unit16_t ..." to "static int value;"
2. Also in Main.c in conjunction with "Components" I changed "GetValue16" to "GetValue".
Now when use debuger and watch the variable 'value', I get the correct answer.
Below I have included my code with the above changes for all to see if anyone has the same issue.
I'm certain there are other ways to do it as well. If anyone would like to share another way please be my guest.
Thanks,
Brian
