Go Down

Topic: then //How do you declare “then” in this scope? (Read 2417 times) previous topic - next topic

aarg

5 pages and I still have no idea what hes building.
Check the patent. It uses a mirror system to focus the sun's rays into a parallel beam, long a dream since the "lighthouse at Alexandria" which purportedly could set fire to ships several miles at sea. It's a real breakthrough, since it defies the laws of optics.
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

jbellavance

For those of you old enough... Do you remember ELIZA?

if not, read this

Jacques :smiley-wink:
If I can help...

kenwood120s

// Is posting comments as, well, comments,
// a thing?

[gumby]I've got my head stuck in the cupboard[/gumby]

AWOL

/* not at all */
REM Why would you think that?
# I mean, think about how ridiculous it would look
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

Robin2

I think it is time to move this Thread to Bar Sport so we can all enjoy it without feeling guilty  :)

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

JackOWalden1Sr

// Wonderful...now that were having fun...I'm stuck on this:
int (pinMode == 3);
int (myPin == pinMode)
pinMode(myPin, OUTPUT);

  pinMode(myPin, OUTPUT);
  pinMode(pin3, OUTPUT); // stuck here…object is to progress thru 8 outputs
// any input?

Delta_G

#81
Aug 20, 2017, 03:54 pm Last Edit: Aug 20, 2017, 03:55 pm by Delta_G
" // stuck here…"

No, you're stuck way before that.

What's this line besides utter nonsense?

Code: [Select]

int (myPin == pinMode)


Why do I bother?  You won't respond to anyone's questions.  You'll just repost the same damn wrong code over and over again like some kind of idiot.
If at first you don't succeed, up - home - sudo - enter.

Gabriel_swe

#82
Aug 20, 2017, 04:04 pm Last Edit: Aug 20, 2017, 04:05 pm by Gabriel_swe
// Wonderful...now that were having fun...I'm stuck on this:
int (pinMode == 3);
int (myPin == pinMode)
pinMode(myPin, OUTPUT);

  pinMode(myPin, OUTPUT);
  pinMode(pin3, OUTPUT); // stuck here…object is to progress thru 8 outputs
// any input?
Page 1 reply 6.
Code: [Select]
for (int x = 2; x < 8; x++) {
    pinMode(x, OUTPUT);
  }


You posted those lines of proper code to set pin2 to 7 as output. Either it was just pure luck you got it right, or you are losing knowledge for every post you write.

larryd

It seems that after more than 1400 views,  the OP is either beyond their capability to take direction from volunteers or our chains are being pulled for the fun of it.

Moderator, is it time to lock this thread?




.
No technical PMs.
The last thing you did is where you should start looking.

JackOWalden1Sr

// No, please
for (int x = 2; x < 8; x++) {
    pinMode(x, OUTPUT);
  }
  pinMode(pin2, OUTPUT); // This gives error code: 'pin2' was not declared inn this scope
// Thank you

AWOL

Well, which scope is pin2 declared in?
It's clearly not in the uncompilable snippet you posted.

We're at reply #85, and we still haven't cracked code tags yet. :(

Edit: or even cut and paste simple error messages, it seems.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

JackOWalden1Sr

// Would anyone care to tell me how to assign a 'HIGH 169' to every named OUTPUT?
// (I want all outputs to have a 'HIGH' for a very short amount of time, i.e. 169 thousands of a second).

Gabriel_swe

#87
Aug 20, 2017, 05:16 pm Last Edit: Aug 20, 2017, 05:20 pm by Gabriel_swe
This gives error code: 'pin2' was not declared inn this scope
Of course it it gives you an error. Compiler can't read your mind nor write the code for you. pin2 is used as a variable, but it isn't declared. Compiler tells you that.

If you refer to digital pin d2, it is just a number you should give, 2.

You could instead add
Code: [Select]
byte pin2=2;
 at top of your code. In that way, pin2 will be a global variable and you can leave that line as it is.

AWOL

Does it matter if the all go HIGH at the same moment, or do you have a strobe signal?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

kenwood120s

// Would anyone care to tell me how to assign a 'HIGH 169' to every named OUTPUT?
// (I want all outputs to have a 'HIGH' for a very short amount of time, i.e. 169 thousands of a second).

You could have have a look at the BlinkWithoutDelay example in the IDE, which makes one pin high for (if my memory serves) 1000ms, and work off that.

[gumby]I've got my head stuck in the cupboard[/gumby]

Go Up