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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/09/05 17:03
Read: times


 
#87008 - Code?
Responding to: ???'s previous message
Pete Wolff said:
I will resend the code

There is no point simply resending it without getting the format right!

Please, read the instructions on how to post the code and retain the formatting (indenting):
http://www.8052.com/forum/read.phtml?id=82476

It shold then look something like this:
void main()
{
   unsigned char RETURN;
   static char Voltage10[]={'1','2','3','4','5','6','7','8','9'};
   Initial_LCD(); // Run function Initial_LCD
   Init_CPU();    //do all initializations
   while(1)
   {
      RETURN=convert(0);
      LCD_putc( Voltage10(RETURN) );

it is compiling fine in MicroIDe for us

Is it really?
What about this line:
LCD_putc( Voltage10(RETURN) );

Surely that should be:
LCD_putc( Voltage10[RETURN] );




List of 12 messages in thread
TopicAuthorDate
8051 MicroC Voltage Meter--Please Help            01/01/70 00:00      
   woefully incomplete and a suggestion            01/01/70 00:00      
   congratulations            01/01/70 00:00      
   Real Code?            01/01/70 00:00      
   code compiles fine in MicroIDE            01/01/70 00:00      
      The Development Process            01/01/70 00:00      
      and so what            01/01/70 00:00      
      Code?            01/01/70 00:00      
      A couple of observations            01/01/70 00:00      
   almost there            01/01/70 00:00      
      absolutely            01/01/70 00:00      
         Sending data to the lcd            01/01/70 00:00      

Back to Subject List