subject

Practice compile-time debugging by fixing all of the syntax errors in the following listing. Do yourself a favor and work through all the bugs using the Arduino IDE compile output information. Turn in the source code listing of your debugged program. Clearly state all of the syntax errors that you found.

void MyDelay (unsigned long mSecondsApx ); void setup ()
{
unsigned char * portDDRB ;

portDDRB = (unsigned char *) 0x24; *portDDRB |= Ox2O;
}
void loop ()

{
unsigned char * portB ;
portB = (unsigned char *) 0x25;
*portB |= Ox2O;
MyDelay {1000}
*portB &= OxDF:
MyDelay [1000] ,
}
void MyDelay (unsigned long mSecondsApx )
{
volatile unsigned long i;
unsigned long endTime = 1000 * mSecondsApx ; for (i = 0; i < endTime ; i++);
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Determine which of the four levels of measurement (nominal, ordinal, interval, ratio) is most appropriate for the data below. internet speed levels of "fast comma " "medium comma " and "slow" choose the correct answer below. a. the ordinal level of measurement is most appropriate because the data can be ordered comma but differences left parenthesis obtained by subtraction right parenthesis cannot be found or are meaningless. nothing nothing nothing nothing nothing b. the interval level of measurement is most appropriate because the data can be ordered comma differences left parenthesis obtained by subtraction right parenthesis can be found and are meaningful comma and there is no natural starting point. c. the nominal level of measurement is most appropriate because the data cannot be ordered. nothing d. the ratio level of measurement is most appropriate because the data can be ordered comma differences left parenthesis obtained by subtraction right parenthesis can be found and are meaningful comma and there is a natural starting point.
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
You know the right answer?
Practice compile-time debugging by fixing all of the syntax errors in the following listing. Do your...
Questions
question
Mathematics, 18.09.2021 02:20
question
Mathematics, 18.09.2021 02:20
question
Advanced Placement (AP), 18.09.2021 02:20
question
Mathematics, 18.09.2021 02:20
question
Mathematics, 18.09.2021 02:20
question
Mathematics, 18.09.2021 02:20
question
Mathematics, 18.09.2021 02:30
question
Mathematics, 18.09.2021 02:30
Questions on the website: 13722367