3 lines
86 B
C++
3 lines
86 B
C++
int analogRead(uint8_t pin, uint8_t max){
|
|
return ((long)analogRead(pin)*max)>>10;
|
|
}
|