![]() This option is the same as INPUT (you read data from the sensor), but in addition to that, an internal pull up resistor – between 20k and 50k Ohm – is enabled, to keep the signal HIGH by default. The value you’ll get will be HIGH or LOW (binary).Īnd… There’s also a 3rd option: INPUT_PULLUP. INPUT: in this case you’re going to read data from the sensor.OUTPUT: this is to write data to an actuator, for example an LED.You are learning how to use Arduino to build your own projects?Ĭheck out Arduino For Beginners and learn step by step. With Arduino you can use digital pins to either read (binary) data from a sensor, or write (binary) data to an actuator. ![]() ![]()
0 Comments
Leave a Reply. |