2014-git-work/arduino/dev/dev.ino

4 lines
86 B
Arduino
Raw Normal View History

2013-09-16 17:37:33 +09:00
int analogRead(uint8_t pin, uint8_t max){
return ((long)analogRead(pin)*max)>>10;
}