Pages: [1]   Go Down
Author Topic: LoLShield Library  (Read 1005 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
From birth to death, it is just like this.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I hope this is the correct place to post this.

I plan on getting a LoLShield for my Arduino, and I have downloaded the libraries and looked at the examples, but I don't see anywhere where I can see a clear explanation of all the commands included in the library and how to use them.

All it has are the examples, and they aren't very helpful in understanding exactly how I can use the shield myself, aside from just running examples.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 615
Posts: 49388
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Got a link to this device? How about the libraries you are talking about?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
how I can use the shield myself

What do you want to use the shield for? Have you an applicationin mind? The examples must give you an idea of what can be done with it. You can use your imagination for an application:
- make a game of pong
- use it as a equalizer -> 2x7 channels 9 levels wow!
- make some radar
- 9x14 fonttester
- http://jimmieprodgers.com/kits/lolshield/

If you have this idea what to make, then you start thinking how to accomplish this
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
From birth to death, it is just like this.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ PaulS:  I think robtillaart's link is right.

@ robtillaart:  The examples include a Pong game, but I plan on making a game of Snake.  I wrote the game in BASIC for my calculator, and now I want to make it for the Arduino.  But what I was asking is for basically a list of available commands from the library.  I'm sure the examples work and can show me what is possible, but they don't explain the individual commands and how they are used.  I want a systematic explanation the way this library is explained: http://www.arduino.cc/playground/Code/Bounce.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As far as I know nobody has written such documentation yet.

What function call(s) of the library is/are  not understood?

If I look at the names of the functions in http://code.google.com/p/lolshield/source/browse/trunk/lib/Charliplexing.h and know they are defined in the context of a led-matrix they almost explain themselves.  So?

(read a bit about the LoL shield)
The basic thing you can do is set a led on or off, that is exactly what you want for snake. Which leds make up the head / tail of the snake as these are the leds that need to flip(). For Snake you will also need the status of the leds to detect the snake eating itself or one of those thingies the snake eats. This collision detection is not in the lib so you could add that yourself or ask Jimmie to do it for you or define a "shadow matrix" that holds the state of all leds. I guess the pong example needs collision detection too so you might distill it out that code.


« Last Edit: December 06, 2010, 04:27:18 pm by robtillaart » Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
From birth to death, it is just like this.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks robtillaart.  I guess no one really has made such a tutorial.  I had the idea already of a "shadow matrix" as you call it so I know exactly what you're talking about.  But I just wonder how they expect to sell this device and such if they don't show people how to use their library.  But I will try my best to extract the meaning of the calls from their couple of examples.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
But I just wonder how they expect to sell this device
I have the same question with so many products in life ....
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: