[et_pb_dmb_code_snippet _builder_version=”3.7″ title=”// Arduino code //” linenums=”on” body_font=”|700|||||||” body_font_size=”16″ body_font_size_tablet=”51″ body_line_height_tablet=”2″ header_font_size_tablet=”51″ header_line_height_tablet=”2″ style=”arduino-light” header_text_align=”center” border_width_all=”1px” custom_padding=”10px|||”]Ly8gUkYgQnV0dG9uIENvbnRyb2wgVHJhbnNtaXRlcgoKICNpbmNsdWRlIDxWaXJ0dWFsV2lyZS5oPgogIGJ5dGUgYnVmW1ZXX01BWF9NRVNTQUdFX0xFTl0gOwogIGJ5dGUgYnVmbGVuPVZXX01BWF9NRVNTQUdFX0xFTiA7CgogIGNvbnN0IGNoYXIgb25bXT0ieSIgOwogIGNvbnN0IGNoYXIgb2ZmW109Im4iIDsKIAogdm9pZCBzZXR1cCgpIHsKICB2d19zZXRfcHR0X2ludmVydGVkKHRydWUpIDsKICB2d19zZXR1cCgzMDApIDsKICB2d19zZXRfdHhfcGluKDgpIDsKICBwaW5Nb2RlKDIsIElOUFVUKSA7IC8vIEJ1dHRvbgogfQoKIHZvaWQgbG9vcCgpIHsKICBpZiAoZGlnaXRhbFJlYWQoMik9PUhJR0gpCiAgeyAKICAgIHZ3X3NlbmQoIChieXRlKikgb2ZmLCBzdHJsZW4ob2ZmKSApIDsKICAgIHZ3X3dhaXRfdHgoKSA7CiAgICBkZWxheSgyMDApIDsKICB9CiBpZiAoZGlnaXRhbFJlYWQoMik9PUxPVykKICB7IAogICAgdndfc2VuZCggKGJ5dGUqKSBvbiwgc3RybGVuKG9uKSApIDsKICAgIHZ3X3dhaXRfdHgoKSA7CiAgICBkZWxheSgyMDApIDsKICB9CiB9[/et_pb_dmb_code_snippet]