Page 1 of 1

sequel strings

Posted: Mon Aug 12, 2013 12:41 am
by brandonb
here's a video of operation of below flowchart (did convert switches to interrupts for video)
shows scrolling both directions, and count rollover smooth operation
http://youtu.be/DpyipAt3eOQ
a quick way of entering strings is to use a look up table, to do this here is the format
rom char* name of pointer =" ";
this means that you can have many strings in one table then can access them with a common number,
think of it as strings with in strings
to do this there are a couple things to do to access the string,
you have to point to the beginning of each sub string
and you have to have a way to terminate the string
then a way to either print it directly to the lcd by sending ascii chars or by converting it to a string variable,
when using string variable you have to write a 0 to the string[ ] position where the '.' was written as a null,
note instead of using a look up table you can also use a extra long string[256] variable to do the same thing,
when you write the string table after each sub string put in a special character, like i used a '.'
that is your string terminator,
i'll let you guys have a crack at it before i go into explaining a bunch and confuse everyone :lol:
here is the string table and how i get the pointer values for each position very easy
STRING POINTER CALCULATOR.fcf
(14.87 KiB) Downloaded 446 times
here is a flowchart that works on hardware with my mini44 board
matrix single string menu.fcf
(22.11 KiB) Downloaded 412 times
here is a cool little string positioning tool to center your string and vary the pot to move the string and get the cursor number to put in a lut
char lcd postitioner.fcf
(10.5 KiB) Downloaded 450 times

Re: sequel strings

Posted: Tue Aug 13, 2013 7:45 pm
by Kenrix2
The use of the period to separate the names and using a slash for end of string is very cleaver idea.
Thank you for sharing that with us. What is a mini44, was that it in your video?

Re: sequel strings

Posted: Wed Aug 14, 2013 9:51 am
by dazz
Hi Kenrix
The mini44 is a very nifty board brandon has designed nice small and neat, heres a couple of pics, i'm sure brandon wont mind me showing them here, if you want more details send brandon a pm

Regards
Dazz
front board values.jpg
front board values.jpg (116.64 KiB) Viewed 5085 times
100_1342.JPG
100_1342.JPG (129.7 KiB) Viewed 5085 times