I am reading three analog channels in, A0, A1 and A2. I am taking each input ten samples of each input, getting a sum and dividing by 10 for an average. All of that seems to work just fine. Here is my current code:
My Arduino Loop (Arduino Uno) Not Looping
Code (Text):
- //Libraries
- #include <Wire.h>
- #include <LiquidCrystal_I2C.h>
- LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address.
- // number of analog samples to take per reading
- #define NUM_SAMPLES 10
- int sum1 = 0; // sum of samples taken
- int sum2 =...