OPEN-SMART Email:
- 39 -
int _pin;
_pin = touch.get();
switch(_pin)
{
case TOUCH_OUT1: touchNum = 1;break;
case TOUCH_OUT2: touchNum = 2;break;
case TOUCH_OUT3: touchNum = 3;break;
case TOUCH_OUT4: touchNum = 4;break;
default: touchNum = _pin;break;
}
return touchNum;
}
* disp.init(); // initialization
You should write it in the setup function initialize it.
* disp.display(int Decimal); // display range: -999 ~ 9999
* disp.clearDisplay(); // clear the display, nothing display