I tried to use global (before main) to hold my ADC capture but it does not work.
But if I use local, the ADC result would be stored sucessfully.
Do you guys have any thoughts?
The reason I need to store my ADC globally is because I will need
to transfer it when I do my IIC isr.
I'm including my code for reference.