Is it possible to turn on pins 4 to 13 all at once?

Please help us keep the forum tidy. Edit your post using the :pencil2: in the tool bar just below your post

select the code part and press the <code/> icon in the tool bar to mark it as code. (also make sure you indented the code in the IDE before copying, that’s done by pressing ctrlT on a PC or cmdT on a Mac)

(For more tips ➜ do yourself a favour and please read How to get the best out of this forum)


To your question

Do you have a current limiting resistor per led? You do need that

At once as at the very same nano second or just that visually they appear to turn on at the same time ? (Just issue multiple digitalWrite() in a row in the latter case)


If you want non blocking code look at

2 Likes