# advanced I/O code

**URL:** <https://forum.arduino.cc/t/advanced-i-o-code/688733>\
**Category:** Programming\
**Created:** [December 27, 2020, 7:49pm UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733 "2020-12-27T19:49:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![startflyer](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@startflyer](https://forum.arduino.cc/u/startflyer)\
**Post date:** [December 27, 2020, 7:49pm UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/1 "2020-12-27T19:49:43Z")

</div>

I have been learning coding but at times run into areas where I want more info. As an example: pulseIn(). I have used the function but wanted to know more about it, such as implementation. So I went looking for the source code without success. Where can one find the source code for this and other advancedIO functions. Seeing the implementation helps me see how its done, which I learn from.

BTW, I did create my own pulseIO() function with timeout (using a different name) before I found it in the advancedI/O reference section.

Thanks

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [December 27, 2020, 7:52pm UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/2 "2020-12-27T19:52:28Z")

</div>

> **[GitHub - arduino/Arduino: Arduino IDE 1.x](https://github.com/arduino/Arduino)**
>
> Arduino IDE 1.x. Contribute to arduino/Arduino development by creating an account on GitHub.

Do realize that the Arduino core is not the world's greatest shining example of wonderful code. It's just okay.

---

<div class="post-metadata">

**Author:** ![CrossRoads](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/crossroads/32/214033_2.png) [@CrossRoads](https://forum.arduino.cc/u/CrossRoads)\
**Post date:** [December 27, 2020, 8:12pm UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/3 "2020-12-27T20:12:05Z")

</div>

Search your Arduino folders for wiring\_pulse.c for pulseIn() function.

---

<div class="post-metadata">

**Author:** ![anon57585045](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon57585045](https://forum.arduino.cc/u/anon57585045)\
**Post date:** [December 27, 2020, 9:11pm UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/4 "2020-12-27T21:11:41Z")

</div>

pulseIn() isn't useful for multitasking programs, because it blocks until the end of the pulse is found, or it times out. You might want to consider that before you dig too deeply into it.

---

<div class="post-metadata">

**Author:** ![startflyer](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@startflyer](https://forum.arduino.cc/u/startflyer)\
**Post date:** [January 14, 2021, 11:13pm UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/5 "2021-01-14T23:13:21Z")

</div>

Thanks for the info. Very useful and I can learn from it.

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [January 15, 2021, 12:16am UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/6 "2021-01-15T00:16:36Z")

</div>

The search function on Github site is good. If you have a good search tool on your computer, that is also good.

The third way to search is with Google and search within Github: [site:github.com arduinocore-avr pulsein - Google Search](https://www.google.com/search?q=site%3Agithub.com+arduinocore-avr+pulsein).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 15, 2021, 12:17am UTC](https://forum.arduino.cc/t/advanced-i-o-code/688733/7 "2021-05-15T00:17:12Z")

</div>

Closed on May 15, 2021, 12:17am UTC

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
