// (C)2012 kou029w - MIT License int analogRead(uint8_t pin, uint8_t max){ return ((long)analogRead(pin)*max)>>10; } void setup(){ } void loop(){ }