2014-git-work/arduino/dev/dev.ino
2013-09-16 17:37:33 +09:00

3 lines
86 B
C++

int analogRead(uint8_t pin, uint8_t max){
return ((long)analogRead(pin)*max)>>10;
}