EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / LCD.C(36): warning C206: ‘sendlcdcommand’: missing function-prot

LCD.C(36): warning C206: ‘sendlcdcommand’: missing function-prot

|

Microcontroller › 8051 › CHECK OUT MY C PROGRAM ON LCD AS THERE IS LITTLE MISTAKE › LCD.C(36): warning C206: ‘sendlcdcommand’: missing function-prot

March 18, 2016 at 7:07 pm #13800
Rahul
Participant
#include<regx52.h>
#define lcd_databus P1
sbit lcd_en=P2^2;
sbit lcd_rs=P2^0;
void display_title();
void printline(unsigned char cmd,const unsigned char *dstr,unsigned char count);
void sendlcdCommand(unsigned char cmd);
void sendlcddata(unsigned char dcyte);
void intilcd();
void delay_ms(unsigned int mscount);
void delay_us(unsigned char uscount);
//void displaytemp(unsigned char addr,unsigned char tval);
//void toascii(unsigned char hval); 
code const unsigned char megtitle1[]="W.I.T";
code const unsigned char megtitle2[]="Digital Portalbal Deivce";
code const unsigned char megtitle3[]="cloth lenth=";
code const unsigned char megtitle4[]="cm=0 mm=0";
void main()
{
  intilcd();
 display_title();
}
 
void display_titel()
{
printline(0x80,&megtitle1[0],16);
printline(0xc0,&megtitle2[0],16);
delay_ms(3000);
printline(0x80,&megtitle3[0],16);
printline(0xc0,&megtitle4[0],16);
  }
 
void printline(unsigned char cmd,const unsigned char*dstr,unsigned char count)
{
unsigned char ch;
sendlcdcommand(cmd);
for(;count>0;count–)
{
ch=*dstr;
sendlcddata(ch);
dstr++;
}
}
 
 void sendlCdcommand(unsigned char cmd)
 {
 lcd_rs=0;
 lcd_databus=cmd;
 lcd_en=1;
 delay_us(5);
 lcd_en=0;
delay_us(200);
}
  void sendlcddata(unsigned char dcyte)
  {
  lcd_rs=1;
 lcd_databus=dcyte;
 lcd_en=1;
 delay_us(5);
 lcd_en=0;
delay_us(200);
}
 
void initlcd()
{
delay_ms(20);
sendlcdCommand(0x38);
delay_ms(20);
sendlcdCommand(0x38);
delay_ms(20);
sendlcdCommand(0x38);
sendlcdCommand(0x06);
sendlcdCommand(0x0c);
sendlcdCommand(0x14);
    sendlcdCommand(0x01);
delay_ms(5);
 
}
 void delay_ms(unsigned int mscount)
 {
  unsigned char i;
  for(;mscount>0;mscount++)
  {
  for(i=250;i>0;i–)
  {
  }
  }
 
 }
void delay_us(unsigned char uscount)
   {
   for(;uscount>0;uscount++)
   {
   }
}
 
//ALSO LCD.C(36): error C267: 'sendlcdcommand': requires ANSI-style prototype
SLOVE ERROR PLZ
 

RSS Recent Posts

  • WTB: "The Theory Of Servicing AM, FM, And FM Receivers" by Clarence R. Green and Robert M. Bourque November 10, 2025
  • Anyone In The US Ordered From AliExpress Recently? November 10, 2025
  • Calculation of A Class amplifier November 10, 2025
  • strange laptop problem November 10, 2025
  • restarting this Christmas project November 10, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise