Easy fun with minimal lines of code.

With this, you can make cool circuits with buttons, LEDs, fans, and other inputs and outputs that only use 2 pins!!! :slight_smile:

A wire from pin 10 into the input device, another wire comes out of input device and into output device, and another wire out of the output device back to ground.

_2_lines_of_code_fun.ino (85 Bytes)

_2_lines_of_code_fun fritzing sketch.fzz (5.29 KB)

Do I understand it correctly that you simulate a battery with an Arduino?

from inventiveness point of view I can really appreciate this!

Yes, that is correct.