How to transfer a series data from textfile in PC to Arduino?

Hi all,

I'm new to this forum and Arduino. Please help me as simple as possible way. I have a text file that contains some digits (about 3000 digits). such as:

0 1 2 3 4 2 0 4 ...

it is supposed each of these digits lits a LED by their numbers then off it. I don't want to entered manually one by one them, i want to my sketch read line by line this file then do ON LED by number.

Thanks in advance, Farrokh

This demo shows how to use Python to communicate with an Arduino.

It would be easy to adapt the Python code to read your text file.


I am not sure if this meets your needs, but bitlash might help you solve your problem.