Attach your ino file, not some stupid PDF.
for (int i = 0; i <= 7; i++) // reading 8 pixel { if (tpa.getPoint(i)>29)
...
...
else
{Serial.print(".");
Serial.print(" ");
gesture[i][0]=0;}
}
There is no if, you've commented it out. You also commented out the {
===
Don't put multiple statements on one line. There are a few exceptions where it can be considered acceptable but the below is not one of them
for (int y = 0; y<=7; y++){sum+=gesture[y][0];} Serial.println(sum); // sum of 8 pixel
Something like this can be reduced to one line of code ( and not by putting all statements on one line ).
switch(n1) {
case 0 : SSD1306_char3216(10, 25, '0', oled_buf); break;
case 1 : SSD1306_char3216(10, 25, '1', oled_buf); break;
case 2 : SSD1306_char3216(10, 25, '2', oled_buf); break;
case 3 : SSD1306_char3216(10, 25, '3', oled_buf); break;
case 4 : SSD1306_char3216(10, 25, '4', oled_buf); break;
case 5 : SSD1306_char3216(10, 25, '5', oled_buf); break;
case 6 : SSD1306_char3216(10, 25, '6', oled_buf); break;
case 7 : SSD1306_char3216(10, 25, '7', oled_buf); break;
case 8 : SSD1306_char3216(10, 25, '8', oled_buf); break;
case 9 : SSD1306_char3216(10, 25, '9', oled_buf); break; }