Pages: 1 [2]   Go Down
Author Topic: LEDs as Photo-diodes  (Read 1467 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Add this:

Code:
#define NOP() asm("nop") //waste a tick

delay(400) is way too long. If you have to, use delay(1)
Logged

0
Offline Offline
Full Member
***
Karma: 4
Posts: 218
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Add this:
Code:
#define NOP() asm("nop") //waste a tick
delay(400) is way too long. If you have to, use delay(1)

Yes OK but I was trying to see just what you are getting at. By slowing it down some as I said it is just alternate flashing LED's . The serial monitor flashes values too fast to read anything definate.

So with a small delay , what is this going to demonstrate to me ?
« Last Edit: November 14, 2012, 03:25:27 pm by april » Logged

Pages: 1 [2]   Go Up
Jump to: