TinyCircuits Forum
General Category => User Projects / Code Examples => Topic started by: tamberg on April 14, 2013, 02:38:15 PM
-
Hi, made a simple darkness gauge with a TinyDuino, LED shield, Proto2 shield and a LDR.
Here's how it looks
http://makeagif.com/media/4-13-2013/uvwUgs.gif
And how it works https://bitbucket.org/tamberg/tinycircuits/raw/6fe520a019761098efaa746f7c4690018d81b603/TinyDuinoDarknessGauge/TinyDuinoDarknessGauge.ino
Cheers,
Thomas
-
This is cool :)
Did you use a resistor with the LDR or was it just directly connected to A3 and ground ?
-
Thank you for posting this code. I was going to write similar code to support Charlieplexing using the switch / case statement but I suspect my attempt would have been clumsy.
When using the Charlieplexing library, I do not know how to select a CharlinPin at random, so had to go with not using that library.