News & Articles

PyroEDU
Get started learning to build your own electronics by following our FREE online courses below!
Learn More »

Categories

Sponsors

Build Like A Pyro!
Find many of the parts used on this site at our favorite online electronics shop
Take Me To The Gadgetory!
justDIY: LEDs As Sensors

Posted February 25, 2012 by Chris

“Each slave normally runs in a infinite loop, sampling the LED sensors as fast as it can and storing their values in a memory buffer. When a polling request is received from the master, an interrupt is generated which branches out of the sampling loop. I2C commands are pretty complex on paper, but merely a matter of setting and clearing bits in the digital world, so at 20mHz the pic handles them with lightning speed.”

Leave a Reply