Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What Computer language is this? I think it is a version of C Thanks #include #define lcd P1 #define dat P2 sbit rs=P3^6; sbit e=P3^7;

What Computer language is this? I think it is a version of C

Thanks

#include

#define lcd P1

#define dat P2

sbit rs=P3^6;

sbit e=P3^7;

sbit l1=P0^0;

void delay (int);

void display (unsigned char);

void cmd (unsigned char);

void init (void);

void string (char *);

void intro (void);

unsigned char degree[8]={0x0e,0x0a,0x0e,0x00,0x00,0x00,0x00,0x00};

char i=0;

void delay (int d)

{

unsigned char i=0;

for(;d>0;d--)

{

for(i=250;i>0;i--);

for(i=248;i>0;i--);

}

}

void cmd (unsigned char c)

{

lcd=c;

rs=0;

e=1;

delay(10);

e=0;

}

void display (unsigned char c)

{

lcd=c;

rs=1;

e=1;

delay(10);

e=0;

}

void string (char *c)

{

while(*c)

{

display(*c++);

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

List some guidelines to follow in planning for an interview.

Answered: 1 week ago

Question

Question What integration level should an employer choose?

Answered: 1 week ago