Why "stamp works" and other guides from paralax does not provide usable code?
CuriousOne
Posts: 931
A title is a bit incorrect, but I have no idea about how to spell it more correctly.
Let's take an example, stamp works, experiment #29. This example shows how to use MAX7219 IC for driving 7 segment led display. Nice, but, instead of providing short sample code in beginning, which will show how to display say digit "3" on the 7 segment led using this IC, we directly get a complex code for a special "game", from which, extracting and understaning the part which is the interface with this IC needs considerable amount of time to waste. And this also applies to other examples. Instead of showing how to interface with something, we immediatelly got code of some "game", device or whatsoever.
Let's take an example, stamp works, experiment #29. This example shows how to use MAX7219 IC for driving 7 segment led display. Nice, but, instead of providing short sample code in beginning, which will show how to display say digit "3" on the 7 segment led using this IC, we directly get a complex code for a special "game", from which, extracting and understaning the part which is the interface with this IC needs considerable amount of time to waste. And this also applies to other examples. Instead of showing how to interface with something, we immediatelly got code of some "game", device or whatsoever.
Comments
I can't say that all guides from Parallax and all examples from them will be useful, but most of them look like very good teaching examples of basic principles. When examples are complex (like for a complex part like the MAX7219), something like a game is not the first example provided. Usually the first of a series of examples is quite basic, followed by more complex examples.
www.parallax.com/dl/docs/books/sw/exp/sw29.pdf
I do not think StampWorks deals with a Max7219 at all, the SHIFTOUT command applys though.
As a developer of instructional material, I struggle with the level at which to described a topic. At too high a level, I lose the newbies; at too low a level, I lose the experienced. It is a fine balancing act to aim for the middle, knowing there will be newbs and experienced that feel a bit left out.
Also (and I see this in all training material BTW), quite often the examples are generated by people who are WAY too close to the subject matter. This can result in very cluttered examples that mask the simple question.
EG: "...where's the blasted ON switch? I don't need to build a #$%&!#$ nuclear reactor!"
There are other examples of the use of a MAX7219 with Stamps. This one uses a BS1 rather than a BS2. A few of the declarations are different for the BS1 and some of the statements have a slightly different format for the BS1, but it should be easily modified for the BS2. Here's another example from Parallax including sample code for the PIC, BS1, and BS2. All of these were found with a single web search for "MAX7219 Stamp".
Here's how I see usage of this IC via the basic stamp to display the digits (the commands aren't exactly ones that needed or from basic stamp at all, just idea how should it described).
here's a simple example,then it should be followed by explanation why such arrangement of digits is needed, what is serial i/o, what other modes chip can display, but all that should be AFTER. User should be getting simple, working code 1st, which he can alter according to his needs and use in his project directly, without going in deep in all these fifos, multiplexors and so on. Also, in basic stamp things are complicated by assigning ports some names, creating arrays, etc. All this is fine, but not needed for quick job.
And regarding this:
http://www.rasmicro.com/FTP/MAX7219-21%208-Digit%20LED%20Display%20Driver.pdf
can you please point me to the area of code/description, which promptly explains how should user set number of digits used?
Thanks.
Paste this into a Google Web Search search:
MAX7219 Basic Stamp site:forums.parallax.com
Will keep you busy for a few hours.
I have NO PROBLEMS with MAX7219 and basic stamp.
I'm just asking, why parallax making things complex at places, where they should be simpler?