User manual
054 B11100,
055 B11100,
056 B11100,
057 B11100,
058 };
059
060 byte MyChar4[8] = {
061 B11110,
062 B11110,
063 B11110,
064 B11110,
065 B11110,
066 B11110,
067 B11110,
068 B11110,
069 };
070
071 byte MyChar5[8] = {
072 B11111,
073 B11111,
074 B11111,
075 B11111,
076 B11111,
077 B11111,
078 B11111,
079 B11111,
080 };
081
082 int adc_AVG(byte channel)
083 {
084 total= total – readings[index];
085 readings[index] = analogRead(channel);
086 total= total + readings[index];
087 index = index + 1;
088
089 if (index >= numReadings)index = 0;
090
091 average = total / numReadings;
092 return average / 1024.0 * 100.0;
093 }
094
095 void draw_bargraph(byte percent)
096 {
097 byte i, c1, c2;
098
099 lcd.setCursor(0, 0);
100 lcd.print("Brightness: ");
101 lcd.print(percent);