Forum Index > Projects > Micro-readerboard project support
 string set selection
 |  Printable Version
By: q209 (offline) on Monday, December 15 2008 @ 03:28 PM PST (Read 3442 times)  
q209

Just got two readerboard kits (thanks!) and set one up on a proto board to play with. All seems to work well except for one thing: selecting string sets to display. When I pull pin 8 to ground - either by tying it to pint 10 or to the ground rail - the readerboard alternates between the two string sets on each power-on. I've tried new jumpers, etc. - everything but switching to a new proto board. Looking at the code, I don't see any provisions for alternating string sets... Smile Note: it increments each string set on power-on; the issue is alternating between sets.

Suggestions welcomed!


Kevin


Forum Henchperson
Henchperson

Status: offline

Registered: 12/15/08
Posts: 34
Central Valley, CA

Profile Email    
   
By: Windell (offline) on Monday, December 15 2008 @ 04:03 PM PST  
Windell

If you look in the code at the definition of StringSet2, it does alternate between the "holiday" strings and the "regular" strings:

PHP Formatted Code

const char String0[] PROGMEM = "I AM SHOWING OFF MY PROGRAMS    ";  //String0 will rotate through all strings.
const char String1[] PROGMEM = "PLEASE CHANGE MY BATTERIES    JUST KIDDING   HAVE A NICE DAY    ";
const char String2[] PROGMEM = "HELLO WORLD     ";
const char String3[] PROGMEM = "I SOLDERED THIS MYSELF     ";

const char String4[] PROGMEM = "MAKE   TECHNOLOGY ON YOUR TIME     MAKEZINE DOT COM     ";
const char String5[] PROGMEM = "HELLO   I AM AN OPEN SOURCE MICRO READERBOARD     ";
const char String6[] PROGMEM  = "MAKE    ";
const char String7[] PROGMEM  = "MAKE IT    ";
const char String8[] PROGMEM = "THIS DISPLAY USES ONE HUNDRED PERCENT RECYCLED ELECTRONS     ";
const char String9[] PROGMEM  = "MAKE DONT TAKE    ";
const char String10[] PROGMEM = "MAKER    ";
const char String11[] PROGMEM = "MAKE STUFF     ";
const char String12[] PROGMEM = "EVIL MAD SCIENTIST DOT COM    ";
const char String13[] PROGMEM = "I HEART ELECTRONICS    ";
const char String14[] PROGMEM = "DUDE    NICE BLINKYLIGHTS      ";
const char String15[] PROGMEM = "JOIN THE RESISTANCE      USE KIRCHHOFFS RULES AND OHMS LAW       ";

const char String16[] PROGMEM = "A SUBSCRIPTION TO MAKE MAGAZINE MAKES A GREAT GIFT     ";
const char String17[] PROGMEM = "THESE ARE NOT THE PRESENTS YOU ARE LOOKING FOR   MOVE ALONG     ";
const char String18[] PROGMEM = "WARNING  WARNING   THIS TREE WILL SELF DESTRUCT    ";
const char String19[] PROGMEM  = "I AM IN UR TREE BLINKIN UR LITEZ      ";     
const char String20[] PROGMEM = "ORNAMENT     ";
const char String21[] PROGMEM = "LET IT SNOW  LET IT SNOW  LET IT SNOW    ";
const char String22[] PROGMEM  = "I HOPE YOU SAVED SOME PRESENTS FOR US ORNAMENTS    ";
const char String23[] PROGMEM = "HAPPY NEW YEAR     ";
const char String24[] PROGMEM = "ALL I WANT FOR XMAS IS A MICROCONTROLLER PROGRAMMER    ";
const char String25[] PROGMEM = "I AM THE VERY BEST ORNAMENT ON THIS TREE     ";
const char String26[] PROGMEM = "SANTA CLAUS IS COMING TO TOWN    LOOK BUSY      ";
const char String27[] PROGMEM = "BAH  HUMBUG      ";
const char String28[] PROGMEM  = "ALL YOUR GIFT ARE BELONG TO US      ";
const char String29[] PROGMEM  = "HAPPY HANUKKAH   ";

#define NoOfStrings1 16U                        //16U  //Number of strings. (String0 - String15 is 16 strings, total)
#define NoOfStrings2 30U                        //29U  //Number of strings. (String0 - String28 is 29 strings, total)

PGM_P StringSet1[] PROGMEM =
{String0,  String1,  String2,  String3,  String4,
 String5,  String6,  String7,  String8,  String9,
 String10, String11, String12, String13, String14, String15
 };

PGM_P StringSet2[] PROGMEM =
{String0,  String1,  String2,  
String3,  String17,  
String4,  String18,
String5,  String19,
String6,  String20,
String7,  String21,
String8,  String22,
String9,  String23,
String10, String24,
String11, String25,
String12, String26,
String13, String27,
String14, String28,
String15, String29,
String16
 };
 



StringSet2 is the one activated when you ground that one pin. Are you *sure* that it's not just following the order defined here for StringSet2?


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: q209 (offline) on Monday, December 15 2008 @ 04:24 PM PST  
q209

OK. Darn it, as a decades-long software slinger and QA hack, you'd think by now that I would read code for what's there - not what I want it to be. Oops!

If only my wife would sit still for my "read the code to someone and explain it, and you'll see what's *really* there", I wouldn't feel so foolish!

Now: once my tinyusb programmer arrives, I'll fix that little behavior "quirk".

Thanks!


Kevin


Forum Henchperson
Henchperson

Status: offline

Registered: 12/15/08
Posts: 34
Central Valley, CA

Profile Email    
   



 All times are PDT. The time is now 08:32 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?