pulseIn problem
Posted: Sat Mar 10, 2018 1:00 pm
Hello.. I'm trying read a pulse on D0 pin with pulseIn function.. Unfortunately, it gives me zero.. I have done some research and found that this function works only with D3, D4 pins.. Is it possible to work with other pins ?(
Code: Select all
#define FANGET D2
#define FANSET D1
void setup() {
Serial.begin(115200);
analogWriteFreq(25000);
analogWrite(FANSET, 70);
pinMode(FANGET, INPUT);
}
void loop() {
unsigned int pulse = pulseIn(FANGET, LOW);
Serial.println(pulse);
delay(100);
}