Code
Basic program that outputs result into serial monitor
The schematic is in one of the tabs
More complex program that outputs result onto LCD display (as seen in the video)
The schematic is in one of the tabs
Lego worksheet