Go Down

Topic: it no workie (Read 580 times) previous topic - next topic

kevin duino

//hooking up a numeric disp

int a = 2
int b = 3
int c = 4
int d = 5
int e = 6
int f = 7
int mi = 8


void setup(){
   pinMode(a, OUTPUT);
     pinMode(b, OUTPUT);
       pinMode(c, OUTPUT);
         pinMode(d, OUTPUT);
           pinMode(e, OUTPUT);
             pinMode(f, OUTPUT);
               pinMode(mi, OUTPUT);
               
}

void loop()
{
 digitalWrite(e, HIGH);
 digitalWrite(c, HIGH);
 delay(2000);
   digitalWrite(e, HIGH);
   digitalWrite(c, LOW);
     digitalWrite(d, HIGH);
 digitalWrite(mi, HIGH);
   digitalWrite(a, HIGH);
 digitalWrite(b, HIGH);
 delay(2000);
}
[ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618]

halley

Yet again, you have not even tried to give us anywhere near enough information to go on.  You say "a numeric disp" like we are all inside your mind or looking at your desk where all the electronic parts are.  What is 'a'?  What is 'mi'?  What are you trying to accomplish?

I went to the mystic fortune teller and she suggests this might be a project involving a seven-segment display.  If so, she still cannot divine through magical nor rational reasons how you've wired it up.  Resistors?  Is GND connected?  Is it a common-anode part?  Give us some tiny shred of detail.

At some point, anyone who might possibly want to answer your questions will decide to just ignore incomplete questions like this... we'll put in the same amount of effort to communicate that you do.

kevin duino

.......


it wont even download to board...

[ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618]

AlphaBeta

#3
Mar 27, 2009, 07:31 pm Last Edit: Mar 27, 2009, 07:33 pm by AlphaBeta Reason: 1
Once again: Information is GOLD. :)

[edit]Oh. I was too late, there I get it for not hitting reply before continuing to next tab/thread[/edit]

kevin duino

http://www.kevboards.proboards.com






durrrr
i got my arduino on mar 18, im still new darnit
[ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618]

AlphaBeta

You had forgotten the ; after all variable declarations. This will lead to a compiler error :)

This code compiles:
Quote

int a = 2;
int b = 3;
int c = 4;
int d = 5;
int e = 6;
int f = 7;
int mi = 8;


void setup(){
 pinMode(a, OUTPUT);
 pinMode(b, OUTPUT);
 pinMode(c, OUTPUT);
 pinMode(d, OUTPUT);
 pinMode(e, OUTPUT);
 pinMode(f, OUTPUT);
 pinMode(mi, OUTPUT);
}

void loop()
{
digitalWrite(e, HIGH);
digitalWrite(c, HIGH);
delay(2000);
digitalWrite(e, HIGH);
digitalWrite(c, LOW);
digitalWrite(d, HIGH);
digitalWrite(mi, HIGH);
digitalWrite(a, HIGH);
digitalWrite(b, HIGH);
delay(2000);
}

Go Up