Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/27/06 06:39
Read: times


 
#127038 - Table
Responding to: ???'s previous message
Just a thought:
Veena Devi said:
xdata unsigned char string[20][21]  =  {"1.rotor rpm",
					"2.generator rpm",
					"3.manual yaw cw",
					"4.manual yaw count cw",
					"5.auto yaw cw",
					"6.auto yaw count cw",
					"7.start",
					"8.manual stop",
					"9.vibration error",
					"10.hyd pump error",
					"11.brake error",
					"12.brake solenoid",
					"13.gear oil motor on",
					"14.hydraulic motor on",
					"15.gear motor off",
					"16.hyd motor off"};

This is a 2-diemsional array of characters - which means that all the strings have to be padded to the same length.
This may not matter to you, but could be avoided by having a 1-dimensional array of strings.

Just a thought...

xdata unsigned char *string[]  =  
{
	"1.rotor rpm",
	"2.generator rpm",
	"3.manual yaw cw",
	"4.manual yaw count cw",
	"5.auto yaw cw",
	"6.auto yaw count cw",
	"7.start",
	"8.manual stop",
	"9.vibration error",
	"10.hyd pump error",
	"11.brake error",
	"12.brake solenoid",
	"13.gear oil motor on",
	"14.hydraulic motor on",
	"15.gear motor off",
	"16.hyd motor off"
};


List of 18 messages in thread
TopicAuthorDate
scrolling graphic LCD using matrix keypad            01/01/70 00:00      
   Use array of strings            01/01/70 00:00      
   Maybe try something different            01/01/70 00:00      
   scrolling function....            01/01/70 00:00      
      Table            01/01/70 00:00      
      XDATA?            01/01/70 00:00      
   the reason is...            01/01/70 00:00      
   scrolling display using key...            01/01/70 00:00      
      How do you want to scroll?            01/01/70 00:00      
      Do as Michael said?            01/01/70 00:00      
      "display start line command" is not the way            01/01/70 00:00      
         Why not?            01/01/70 00:00      
            Re: Why not?            01/01/70 00:00      
   scrolling can be done as...            01/01/70 00:00      
      Re: scrolling can be done as...            01/01/70 00:00      
   I wonder            01/01/70 00:00      
      Scrolling            01/01/70 00:00      
         ah            01/01/70 00:00      

Back to Subject List