pulseIn: be consistent with standard API
pulseIn: be consistent with standard API

return 0 if timeout has been reached

adafruit/ESP8266-Arduino,sanyaade-iot/Arduino-1,radut/Arduino,tommyli2014/Arduino,stickbreaker/Arduino,chaveiro/Arduino,smily77/Arduino,spapadim/Arduino,weera00/Arduino,zederson/Arduino,wilhelmryan/Arduino,Gourav2906/Arduino,ntruchsess/Arduino-1,ogahara/Arduino,andyvand/Arduino-1,ari-analytics/Arduino,ari-analytics/Arduino,snargledorf/Arduino,nandojve/Arduino,PeterVH/Arduino,gberl001/Arduino,vbextreme/Arduino,tommyli2014/Arduino,bigjosh/Arduino,tomkrus007/Arduino,ogferreiro/Arduino,ogferreiro/Arduino,tomkrus007/Arduino,xxxajk/Arduino-1,Cloudino/Arduino,PeterVH/Arduino,EmuxEvans/Arduino,ccoenen/Arduino,bsmr-arduino/Arduino,fungxu/Arduino,eeijcea/Arduino-1,niggor/Arduino_cc,stevemayhew/Arduino,nkolban/Arduino,jaehong/Xmegaduino,pdNor/Arduino,stevemayhew/Arduino,Protoneer/Arduino,zenmanenergy/Arduino,tbowmo/Arduino,ikbelkirasan/Arduino,Cloudino/Arduino,bsmr-arduino/Arduino,ashwin713/Arduino,byran/Arduino,Protoneer/Arduino,spapadim/Arduino,NicoHood/Arduino,me-no-dev/Arduino-1,NeuralSpaz/Arduino,nkolban/Arduino,me-no-dev/Arduino-1,gonium/Arduino,Chris--A/Arduino,lukeWal/Arduino,ForestNymph/Arduino_sources,damellis/Arduino,eggfly/arduino,ThoughtWorksIoTGurgaon/Arduino,kidswong999/Arduino,leftbrainstrain/Arduino-ESP8266,Chris--A/Arduino,eddyst/Arduino-SourceCode,jabezGit/Arduino,ntruchsess/Arduino-1,jmgonzalez00449/Arduino,Chris--A/Arduino,eduardocasarin/Arduino,gonium/Arduino,mangelajo/Arduino,mangelajo/Arduino,gestrem/Arduino,arunkuttiyara/Arduino,adamkh/Arduino,steamboating/Arduino,tbowmo/Arduino,ThoughtWorksIoTGurgaon/Arduino,drpjk/Arduino,jomolinare/Arduino,bsmr-arduino/Arduino,wdoganowski/Arduino,me-no-dev/Arduino-1,superboonie/Arduino,shannonshsu/Arduino,majenkotech/Arduino,jaimemaretoli/Arduino,tomkrus007/Arduino,xxxajk/Arduino-1,superboonie/Arduino,paulmand3l/Arduino,PeterVH/Arduino,ccoenen/Arduino,spapadim/Arduino,cscenter/Arduino,danielchalef/Arduino,jaehong/Xmegaduino,wilhelmryan/Arduino,talhaburak/Arduino,Cloudino/Arduino,wilhelmryan/Arduino,PeterVH/Arduino,PaoloP74/Arduino,myrtleTree33/Arduino,byran/Arduino,laylthe/Arduino,henningpohl/Arduino,kidswong999/Arduino,jamesrob4/Arduino,nandojve/Arduino,ikbelkirasan/Arduino,Alfredynho/AgroSis,HCastano/Arduino,pdNor/Arduino,eddyst/Arduino-SourceCode,me-no-dev/Arduino-1,byran/Arduino,tbowmo/Arduino,onovy/Arduino,radut/Arduino,tskurauskas/Arduino,ogferreiro/Arduino,talhaburak/Arduino,drpjk/Arduino,ntruchsess/Arduino-1,xxxajk/Arduino-1,NeuralSpaz/Arduino,lukeWal/Arduino,ForestNymph/Arduino_sources,shannonshsu/Arduino,jomolinare/Arduino,eggfly/arduino,acosinwork/Arduino,damellis/Arduino,fungxu/Arduino,cscenter/Arduino,ccoenen/Arduino,Chris--A/Arduino,garci66/Arduino,NicoHood/Arduino,vbextreme/Arduino,OpenDevice/Arduino,talhaburak/Arduino,aichi/Arduino-2,xxxajk/Arduino-1,karlitxo/Arduino,me-no-dev/Arduino-1,drpjk/Arduino,jaehong/Xmegaduino,zenmanenergy/Arduino,raimohanska/Arduino,smily77/Arduino,jabezGit/Arduino,tomkrus007/Arduino,weera00/Arduino,zaiexx/Arduino,Cloudino/Arduino,PeterVH/Arduino,gberl001/Arduino,zaiexx/Arduino,kidswong999/Arduino,vbextreme/Arduino,jaimemaretoli/Arduino,tskurauskas/Arduino,aichi/Arduino-2,mateuszdw/Arduino,andyvand/Arduino-1,sanyaade-iot/Arduino-1,ikbelkirasan/Arduino,radut/Arduino,ntruchsess/Arduino-1,talhaburak/Arduino,wilhelmryan/Arduino,adamkh/Arduino,andyvand/Arduino-1,raimohanska/Arduino,ccoenen/Arduino,ssvs111/Arduino,tskurauskas/Arduino,eduardocasarin/Arduino,jomolinare/Arduino,bigjosh/Arduino,noahchense/Arduino-1,eggfly/arduino,paulmand3l/Arduino,byran/Arduino,ashwin713/Arduino,Gourav2906/Arduino,cscenter/Arduino,zaiexx/Arduino,zaiexx/Arduino,nkolban/Arduino,acosinwork/Arduino,ashwin713/Arduino,HCastano/Arduino,Cloudino/Cloudino-Arduino-IDE,nkolban/Arduino,Cloudino/Cloudino-Arduino-IDE,koltegirish/Arduino,jamesrob4/Arduino,Cloudino/Arduino,mangelajo/Arduino,leftbrainstrain/Arduino-ESP8266,bigjosh/Arduino,zenmanenergy/Arduino,eggfly/arduino,ntruchsess/Arduino-1,tannewt/Arduino,sanyaade-iot/Arduino-1,Protoneer/Arduino,ektor5/Arduino,shannonshsu/Arduino,ari-analytics/Arduino,cscenter/Arduino,adafruit/ESP8266-Arduino,ntruchsess/Arduino-1,adafruit/ESP8266-Arduino,aichi/Arduino-2,Chris--A/Arduino,me-no-dev/Arduino-1,wdoganowski/Arduino,kidswong999/Arduino,paulo-raca/ESP8266-Arduino,ari-analytics/Arduino,Gourav2906/Arduino,andyvand/Arduino-1,NaSymbol/Arduino,KlaasDeNys/Arduino,arunkuttiyara/Arduino,jaimemaretoli/Arduino,NaSymbol/Arduino,nkolban/Arduino,steamboating/Arduino,niggor/Arduino_cc,spapadim/Arduino,shannonshsu/Arduino,ricklon/Arduino,Protoneer/Arduino,eggfly/arduino,ari-analytics/Arduino,Gourav2906/Arduino,NeuralSpaz/Arduino,acosinwork/Arduino,aichi/Arduino-2,shiitakeo/Arduino,pdNor/Arduino,nandojve/Arduino,fungxu/Arduino,ForestNymph/Arduino_sources,ektor5/Arduino,andyvand/Arduino-1,niggor/Arduino_cc,Alfredynho/AgroSis,ntruchsess/Arduino-1,gonium/Arduino,ForestNymph/Arduino_sources,ikbelkirasan/Arduino,mangelajo/Arduino,leftbrainstrain/Arduino-ESP8266,vbextreme/Arduino,xxxajk/Arduino-1,majenkotech/Arduino,Chris--A/Arduino,jmgonzalez00449/Arduino,NaSymbol/Arduino,wdoganowski/Arduino,chaveiro/Arduino,henningpohl/Arduino,vbextreme/Arduino,ogferreiro/Arduino,PaoloP74/Arduino,damellis/Arduino,ari-analytics/Arduino,wayoda/Arduino,paulmand3l/Arduino,gestrem/Arduino,eeijcea/Arduino-1,KlaasDeNys/Arduino,aichi/Arduino-2,Protoneer/Arduino,HCastano/Arduino,weera00/Arduino,tannewt/Arduino,mattvenn/Arduino,ikbelkirasan/Arduino,eeijcea/Arduino-1,Alfredynho/AgroSis,ricklon/Arduino,ogahara/Arduino,eeijcea/Arduino-1,Cloudino/Arduino,mateuszdw/Arduino,jmgonzalez00449/Arduino,tomkrus007/Arduino,jmgonzalez00449/Arduino,shannonshsu/Arduino,acosinwork/Arduino,NicoHood/Arduino,NicoHood/Arduino,raimohanska/Arduino,chaveiro/Arduino,mateuszdw/Arduino,talhaburak/Arduino,wilhelmryan/Arduino,ogferreiro/Arduino,Gourav2906/Arduino,radut/Arduino,noahchense/Arduino-1,tannewt/Arduino,eddyst/Arduino-SourceCode,arunkuttiyara/Arduino,danielchalef/Arduino,myrtleTree33/Arduino,henningpohl/Arduino,talhaburak/Arduino,NaSymbol/Arduino,ccoenen/Arduino,jabezGit/Arduino,eduardocasarin/Arduino,ssvs111/Arduino,Protoneer/Arduino,byran/Arduino,mattvenn/Arduino,karlitxo/Arduino,byran/Arduino,NicoHood/Arduino,adafruit/ESP8266-Arduino,jaimemaretoli/Arduino,jabezGit/Arduino,paulo-raca/ESP8266-Arduino,ikbelkirasan/Arduino,weera00/Arduino,mattvenn/Arduino,Cloudino/Cloudino-Arduino-IDE,majenkotech/Arduino,EmuxEvans/Arduino,acosinwork/Arduino,jabezGit/Arduino,bigjosh/Arduino,zenmanenergy/Arduino,jamesrob4/Arduino,gonium/Arduino,NaSymbol/Arduino,ricklon/Arduino,zederson/Arduino,OpenDevice/Arduino,bsmr-arduino/Arduino,paulmand3l/Arduino,mateuszdw/Arduino,tomkrus007/Arduino,tskurauskas/Arduino,noahchense/Arduino-1,ntruchsess/Arduino-1,ForestNymph/Arduino_sources,ikbelkirasan/Arduino,shannonshsu/Arduino,eggfly/arduino,paulmand3l/Arduino,leftbrainstrain/Arduino-ESP8266,jabezGit/Arduino,drpjk/Arduino,kidswong999/Arduino,snargledorf/Arduino,leftbrainstrain/Arduino-ESP8266,ashwin713/Arduino,smily77/Arduino,Chris--A/Arduino,paulo-raca/ESP8266-Arduino,bigjosh/Arduino,byran/Arduino,ektor5/Arduino,stevemayhew/Arduino,Cloudino/Cloudino-Arduino-IDE,acosinwork/Arduino,Alfredynho/AgroSis,mattvenn/Arduino,ssvs111/Arduino,laylthe/Arduino,bsmr-arduino/Arduino,EmuxEvans/Arduino,tskurauskas/Arduino,tannewt/Arduino,lulufei/Arduino,eddyst/Arduino-SourceCode,KlaasDeNys/Arduino,chaveiro/Arduino,fungxu/Arduino,nandojve/Arduino,pdNor/Arduino,ashwin713/Arduino,shiitakeo/Arduino,wayoda/Arduino,snargledorf/Arduino,koltegirish/Arduino,jaimemaretoli/Arduino,stevemayhew/Arduino,KlaasDeNys/Arduino,karlitxo/Arduino,ThoughtWorksIoTGurgaon/Arduino,fungxu/Arduino,jomolinare/Arduino,sanyaade-iot/Arduino-1,ashwin713/Arduino,niggor/Arduino_cc,me-no-dev/Arduino-1,eeijcea/Arduino-1,Alfredynho/AgroSis,lukeWal/Arduino,tomkrus007/Arduino,OpenDevice/Arduino,wilhelmryan/Arduino,andyvand/Arduino-1,bsmr-arduino/Arduino,ThoughtWorksIoTGurgaon/Arduino,arunkuttiyara/Arduino,eduardocasarin/Arduino,tommyli2014/Arduino,koltegirish/Arduino,jomolinare/Arduino,KlaasDeNys/Arduino,zaiexx/Arduino,danielchalef/Arduino,zederson/Arduino,stevemayhew/Arduino,weera00/Arduino,jmgonzalez00449/Arduino,arunkuttiyara/Arduino,eduardocasarin/Arduino,wdoganowski/Arduino,acosinwork/Arduino,niggor/Arduino_cc,ccoenen/Arduino,wdoganowski/Arduino,karlitxo/Arduino,superboonie/Arduino,laylthe/Arduino,xxxajk/Arduino-1,adamkh/Arduino,zaiexx/Arduino,danielchalef/Arduino,paulo-raca/ESP8266-Arduino,Cloudino/Cloudino-Arduino-IDE,raimohanska/Arduino,ektor5/Arduino,shannonshsu/Arduino,kidswong999/Arduino,gberl001/Arduino,paulo-raca/ESP8266-Arduino,ccoenen/Arduino,NicoHood/Arduino,superboonie/Arduino,kidswong999/Arduino,OpenDevice/Arduino,chaveiro/Arduino,andyvand/Arduino-1,vbextreme/Arduino,adafruit/ESP8266-Arduino,stickbreaker/Arduino,leftbrainstrain/Arduino-ESP8266,ogferreiro/Arduino,vbextreme/Arduino,ccoenen/Arduino,smily77/Arduino,NeuralSpaz/Arduino,jamesrob4/Arduino,ogahara/Arduino,NeuralSpaz/Arduino,tbowmo/Arduino,gestrem/Arduino,mattvenn/Arduino,ThoughtWorksIoTGurgaon/Arduino,paulo-raca/ESP8266-Arduino,henningpohl/Arduino,EmuxEvans/Arduino,KlaasDeNys/Arduino,gestrem/Arduino,gberl001/Arduino,damellis/Arduino,lulufei/Arduino,fungxu/Arduino,myrtleTree33/Arduino,PaoloP74/Arduino,PaoloP74/Arduino,talhaburak/Arduino,HCastano/Arduino,damellis/Arduino,pdNor/Arduino,koltegirish/Arduino,shiitakeo/Arduino,tskurauskas/Arduino,jaehong/Xmegaduino,NeuralSpaz/Arduino,wayoda/Arduino,ThoughtWorksIoTGurgaon/Arduino,niggor/Arduino_cc,spapadim/Arduino,adamkh/Arduino,Cloudino/Cloudino-Arduino-IDE,ashwin713/Arduino,KlaasDeNys/Arduino,garci66/Arduino,stickbreaker/Arduino,jamesrob4/Arduino,henningpohl/Arduino,ThoughtWorksIoTGurgaon/Arduino,damellis/Arduino,nandojve/Arduino,adamkh/Arduino,pdNor/Arduino,onovy/Arduino,ssvs111/Arduino,ForestNymph/Arduino_sources,tommyli2014/Arduino,paulmand3l/Arduino,gonium/Arduino,karlitxo/Arduino,OpenDevice/Arduino,ektor5/Arduino,mangelajo/Arduino,karlitxo/Arduino,ssvs111/Arduino,majenkotech/Arduino,mateuszdw/Arduino,ogferreiro/Arduino,NicoHood/Arduino,jomolinare/Arduino,tbowmo/Arduino,bsmr-arduino/Arduino,HCastano/Arduino,ogahara/Arduino,ForestNymph/Arduino_sources,garci66/Arduino,mattvenn/Arduino,adafruit/ESP8266-Arduino,nandojve/Arduino,tbowmo/Arduino,tbowmo/Arduino,stevemayhew/Arduino,OpenDevice/Arduino,lulufei/Arduino,lukeWal/Arduino,KlaasDeNys/Arduino,paulo-raca/ESP8266-Arduino,chaveiro/Arduino,majenkotech/Arduino,adafruit/ESP8266-Arduino,eduardocasarin/Arduino,nkolban/Arduino,radut/Arduino,snargledorf/Arduino,wdoganowski/Arduino,jabezGit/Arduino,lulufei/Arduino,radut/Arduino,gestrem/Arduino,lukeWal/Arduino,bsmr-arduino/Arduino,Alfredynho/AgroSis,weera00/Arduino,karlitxo/Arduino,eggfly/arduino,stickbreaker/Arduino,leftbrainstrain/Arduino-ESP8266,NaSymbol/Arduino,tommyli2014/Arduino,wilhelmryan/Arduino,tomkrus007/Arduino,myrtleTree33/Arduino,acosinwork/Arduino,noahchense/Arduino-1,HCastano/Arduino,mangelajo/Arduino,lulufei/Arduino,stevemayhew/Arduino,jomolinare/Arduino,henningpohl/Arduino,HCastano/Arduino,garci66/Arduino,Gourav2906/Arduino,adamkh/Arduino,zederson/Arduino,NaSymbol/Arduino,koltegirish/Arduino,garci66/Arduino,bigjosh/Arduino,ektor5/Arduino,wayoda/Arduino,gberl001/Arduino,nandojve/Arduino,cscenter/Arduino,cscenter/Arduino,superboonie/Arduino,shiitakeo/Arduino,radut/Arduino,arunkuttiyara/Arduino,ogahara/Arduino,tskurauskas/Arduino,PeterVH/Arduino,onovy/Arduino,adamkh/Arduino,lukeWal/Arduino,Chris--A/Arduino,lukeWal/Arduino,NicoHood/Arduino,noahchense/Arduino-1,ogahara/Arduino,gestrem/Arduino,danielchalef/Arduino,eggfly/arduino,damellis/Arduino,sanyaade-iot/Arduino-1,wayoda/Arduino,arunkuttiyara/Arduino,wdoganowski/Arduino,mangelajo/Arduino,paulmand3l/Arduino,Alfredynho/AgroSis,niggor/Arduino_cc,steamboating/Arduino,me-no-dev/Arduino-1,snargledorf/Arduino,ricklon/Arduino,ikbelkirasan/Arduino,ari-analytics/Arduino,smily77/Arduino,smily77/Arduino,raimohanska/Arduino,niggor/Arduino_cc,eddyst/Arduino-SourceCode,jaimemaretoli/Arduino,spapadim/Arduino,wayoda/Arduino,drpjk/Arduino,drpjk/Arduino,PaoloP74/Arduino,stickbreaker/Arduino,raimohanska/Arduino,raimohanska/Arduino,zederson/Arduino,eeijcea/Arduino-1,laylthe/Arduino,zenmanenergy/Arduino,xxxajk/Arduino-1,shiitakeo/Arduino,jaimemaretoli/Arduino,wayoda/Arduino,majenkotech/Arduino,ari-analytics/Arduino,shiitakeo/Arduino,pdNor/Arduino,jaimemaretoli/Arduino,jaehong/Xmegaduino,onovy/Arduino,jamesrob4/Arduino,talhaburak/Arduino,spapadim/Arduino,onovy/Arduino,cscenter/Arduino,jmgonzalez00449/Arduino,danielchalef/Arduino,danielchalef/Arduino,EmuxEvans/Arduino,ricklon/Arduino,nkolban/Arduino,Cloudino/Cloudino-Arduino-IDE,Cloudino/Arduino,Gourav2906/Arduino,tannewt/Arduino,koltegirish/Arduino,Gourav2906/Arduino,lulufei/Arduino,ssvs111/Arduino,snargledorf/Arduino,superboonie/Arduino,chaveiro/Arduino,snargledorf/Arduino,zaiexx/Arduino,shannonshsu/Arduino,jabezGit/Arduino,ashwin713/Arduino,jaehong/Xmegaduino,gonium/Arduino,stickbreaker/Arduino,PaoloP74/Arduino,myrtleTree33/Arduino,EmuxEvans/Arduino,noahchense/Arduino-1,henningpohl/Arduino,tommyli2014/Arduino,zederson/Arduino,koltegirish/Arduino,PeterVH/Arduino,gberl001/Arduino,ricklon/Arduino,mateuszdw/Arduino,tommyli2014/Arduino,EmuxEvans/Arduino,steamboating/Arduino,byran/Arduino,xxxajk/Arduino-1,eddyst/Arduino-SourceCode,ricklon/Arduino,steamboating/Arduino,garci66/Arduino,fungxu/Arduino,steamboating/Arduino,steamboating/Arduino,tbowmo/Arduino,shiitakeo/Arduino,ssvs111/Arduino,Protoneer/Arduino,OpenDevice/Arduino,superboonie/Arduino,mattvenn/Arduino,noahchense/Arduino-1,eddyst/Arduino-SourceCode,jamesrob4/Arduino,NeuralSpaz/Arduino,PeterVH/Arduino,vbextreme/Arduino,lukeWal/Arduino,NaSymbol/Arduino,chaveiro/Arduino,ogahara/Arduino,weera00/Arduino,jmgonzalez00449/Arduino,myrtleTree33/Arduino,laylthe/Arduino,bigjosh/Arduino,adamkh/Arduino,drpjk/Arduino,gberl001/Arduino,bigjosh/Arduino,smily77/Arduino,sanyaade-iot/Arduino-1,henningpohl/Arduino,nandojve/Arduino,sanyaade-iot/Arduino-1,laylthe/Arduino,laylthe/Arduino,HCastano/Arduino,stickbreaker/Arduino,gonium/Arduino,PaoloP74/Arduino,zederson/Arduino,wayoda/Arduino,superboonie/Arduino,PaoloP74/Arduino,myrtleTree33/Arduino,niggor/Arduino_cc,jaehong/Xmegaduino,lulufei/Arduino,eeijcea/Arduino-1,garci66/Arduino,zenmanenergy/Arduino,tskurauskas/Arduino,mateuszdw/Arduino,ThoughtWorksIoTGurgaon/Arduino,onovy/Arduino,eddyst/Arduino-SourceCode,eduardocasarin/Arduino,zaiexx/Arduino,onovy/Arduino,jmgonzalez00449/Arduino,kidswong999/Arduino,cscenter/Arduino,gestrem/Arduino,garci66/Arduino,pdNor/Arduino,aichi/Arduino-2,zenmanenergy/Arduino,majenkotech/Arduino,tannewt/Arduino,aichi/Arduino-2,stevemayhew/Arduino,tannewt/Arduino