Pages: [1]   Go Down
Author Topic: A class for blinking LEDs  (Read 848 times)
0 Members and 1 Guest are viewing this topic.
Anacortes, WA
Offline Offline
Full Member
***
Karma: 2
Posts: 163
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've been reading through these forums and noticed that there are quite a few people, with not a lot of experience, struggling with blinking multiple LEDs. Here's a little class I wrote that lets you setup, start & stop multiple LEDs blinking. I figured it might come in handy for some.

http://leftcoast.biz/arduino/code%20bits/blinkerTest.zip

Enjoy!

-jim lee
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 300
Posts: 26210
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Like.

But why bloat it with floats?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Anacortes, WA
Offline Offline
Full Member
***
Karma: 2
Posts: 163
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why floats? Making it as easy as possible for someone that knows nothing about computers to use it. One less thing for them to have to get their head around. "Different types of numbers?"

Also why it has the default to blink the built in LED. The idea was to make it do something with the lowest learning curve possible.

-jim lee

Logged

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1242
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

might I suggest a few things:  (since I believe Im sorta your target audience... newbie) smiley-wink


You only link to the .zip file..

what would a new person do with this?

There is no readme.txt or direction here on to even install this class/files...


Also there is no 'documentation' on the class its functions/methods available for us to use.. nor any examples of those functions in use/how to use them.

Maybe thats all implied or assumed knowledge?

or maybe this isnt for beginners at all? and I misunderstood?


thanks
Logged


Anacortes, WA
Offline Offline
Full Member
***
Karma: 2
Posts: 163
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you look in the zip file? There's a ready to run example/test project in there. The code is documented as to how to use it.

Go have a look!

-jim lee

Logged

0
Offline Offline
Faraday Member
**
Karma: 23
Posts: 3480
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you aware of my blinkenlight experiments?
Logged

Check out my experiments http://blog.blinkenlight.net

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1242
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ahh....

I did..  and i guess this is the example file?

blinkerTest.ino


I have not upgraded to 1.0 IDE yet.. 9seems like lots of trouble for a newbie to messing with header files and wondering if its their code or the libs or the IDE...etc..

I have enough trouble from 'myself' without the added trouble of possible IDE errors.. LOL

I hope your functions are outlined and examples given.. smiley-wink

Logged


Colorado
Offline Offline
Edison Member
*
Karma: 47
Posts: 1562
Reviving dead brain cells with Arduinos.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I run both 0023 and 1.0 side by side, and just last night started working on a project that will be written entirely in 1.0, or at least, that's the hope.  Everything else has been done in 0023 and I have no plans on "upgrading" them to be 1.0 compliant.
Logged

Anacortes, WA
Offline Offline
Full Member
***
Karma: 2
Posts: 163
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Udo Klein : Looked at your stuff a little last night. Looked more at it today. I'd no idea you could use LEDs as crude light sensors. A friend of mine told me an image chip from a camera is just a ram chip with the top missing and an image focused on it.

xl97: If you don't like the blinker stuff, that's fine. I just figured people might find it handy.

-jim lee
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 300
Posts: 26210
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'd no idea you could use LEDs as crude light sensors
The definite article

Quote
A friend of mine told me an image chip from a camera is just a ram chip with the top missing and an image focused on it.
Not strictly true, though you used to be able to make a crude monochrome camera from a dynamic RAM chip (Steve Ciarcia, c.1987 ?), when RAM sizes were measured in K, and not G.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1242
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Udo Klein : Looked at your stuff a little last night. Looked more at it today. I'd no idea you could use LEDs as crude light sensors. A friend of mine told me an image chip from a camera is just a ram chip with the top missing and an image focused on it.

xl97: If you don't like the blinker stuff, that's fine. I just figured people might find it handy.

-jim lee


no, no.. dont get me wrong.. I love blinker stuff!..


I was trying to give you a bit of feedback form your target audience..

you said this was targeted for beginners....right?  (thats me)..


Im just saying I think if its goal was to help make things easier for beginners..


I personally wouldnt have known what to do with just a link you provided.   (nor did I immediately know it was only for Arduino IDE 1.0  etc..

no directions on where to put the headers/class files...etc..  for more experienced members.. that may be an no brainer or something they have done before..  (but then they probably dont need a class to blink leds either)  smiley-wink.

beginners like myself could benefit a bit more from some documentation, and outline how to use your work, if you want it to be used/appreciated.  smiley
Logged


Pages: [1]   Go Up
Jump to: