Can you put your code in [ code ] tags please?
Doesn't seem to make much difference.
Can you put your code in [ code ] tags please?
Doesn't seem to make much difference.
alkopop79:
Can you put your code in [ code ] tags please?Doesn't seem to make much difference.
Then you did it wrong. This is in code tags:
int incomimgPin = Serial.read();
Serial.println(incomingPin);
It's also the reason for your error. Check your spelling.
Hm? The [] has nothing to do with the code error. Why the error?
Look at the spelling of the names dxw00d provided in the code block.
Shhhh*t... stupid error, thanks for noticing it guys!
Hah, finally I can echo on the serial monitor when I send ints. Thanks guys!
Every programmer will eventually encounter that type of error. And some have probably spent a lot of time trying to find it too.
...yet it stil doesn't work. I can see the echo on the serial monitor but cannot see pin 7 set high when I send '7'. Grrrrrrrrrrrrrrrrr
Worst, I could easily hard-code the values and skip the 'for' loops entirely. In fact, I was planning to use the Arduino to debug an 8-bit microcomputer. But now I just want to get the thing working, after all these efforts and help...
if thisPin is 7 then it should change pin 9 according to the array and the line 'digitalWrite (digiPins[thisPin], HIGH); '
int digiPins[] = {
2,3,4,5,6,7,8,9,10,11,12,13};
BTW. I think you misunderstood Nick:
Can you put your code in [ code ]
He didn't mean you just put brackets around your code. Next time you go to post something, click the '#' button to see what code tags look like.
Works with the Arduino IDE serial monitor, now I just have to figure out how to format the message in Max/MSP. Thank you for all your help!
dxw00d:
BTW. I think you misunderstood Nick:Can you put your code in [ code ]
He didn't mean you just put brackets around your code. Next time you go to post something, click the '#' button to see what code tags look like.
If I left out the space it would have started a code block, whereas I wanted to show that you need [ code ] (without the spaces). AWOL seems to be able to do that, I wonder how?
Perhaps it's some magic moderator ability.
Does the "Don't use smileys" option make a difference?
test
Edit: apparently not.
How about [code]?
Ah, I think I have it!
I put the square brackets separately into "glow" which meant that it no longer detected the square bracket with "code" directly after it. I'll have to save that away somewhere.
How's this for a boilerplate? ...
Please edit your post, select the code and put it between [code] ... [/code] tags.
You can do that by hitting the # button above the posting area.
How do you guys make the code box?
doesn't seem to be working for me...
]
What I said in the post above. What are you doing? The code goes in the middle between [code] and [/code].
Sorry Nick, just teasing. You can write or
without the highlight by setting the font size to 10.
Like this [ [ size=10pt ] code [ /size ] ]
Good one.
Got sucked in by that. Well at least we are keeping our sense of humour intact.
You've given me an idea for future posts though.
Please use: [code] tags!