Question
using C code
/Exaple 1a Turn on every other seguent on 7-seg display #include chideth) #include <nc9s12dg256.h> /* derivative information
codewarrior
media%2F754%2F7540f0a2-0c8a-4476-9b3d-75
how can I create a loop that it will display 1 through 9 with a delay between each number
/Exaple 1a Turn on every other seguent on 7-seg display #include chideth) #include /* derivative information */ #pragna LINK-INFO DERIVATIVE "nc9s12dg256b" /CONNon defines and nacros/ 0 #include "nain-asn h" /* interface to the assenbly nodule */ /*put your own code here / PLL init() 52 // set systen clock frequency to 24 MHz 28. DDREOxff DDRP 0xff // turn on every other led and segnent on 7-seg displays Port B is output Port J is output Port P is output /1 enable LED // enable all 7-segnent displays 24 . * 7 for (j 0:j10000:3 +1) ns delay (15) 2418 ns delay (15) PORTB 0x00 tor) /* vait forever
0 0
Add a comment Improve this question Transcribed image text
Answer #1
void setup() {
  Serial.begin(9600);
}

void loop() {
  for (int i = 0; i < 10; i++) {
    Serial.print("i = ");
    Serial.println(i);
  }
  delay(1000);
}
Add a comment
Know the answer?
Add Answer to:
Using C code codewarrior how can I create a loop that it will display 1 through 9 with a delay...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT