Go Down

Topic: arduino and enc28j60 (Read 767 times) previous topic - next topic

sotisanis

hello. i have an arduino and a enc28j60 module.
i would like to create a web server and i read the input from arduino. can you give an example but with digital input, no analog input

PaulS

Quote
hello. i have an arduino and a enc28j60 module.
i would like to create a web server and i read the input from arduino. can you give an example but with digital input, no analog input

How does this relate to Storage?

The analog input example can easily be changed to use digitalRead(), instead of analogRead(), if you change the pin numbers appropriately.

sotisanis

can i put in the arduino jpg photo,
when digitalRead= HIGH on =true
off= false
when digitalRead=LOW off=true
on=true
?

PaulS

Quote
can i put in the arduino jpg photo,
when digitalRead= HIGH on =true
off= false
when digitalRead=LOW off=true
on=true
?

What Arduino jpg photo?

I suspect that you want if, not when, in the rest of the pseudo-code. Some elses, too.


PaulS

Quote
can i put this photo in my code

No. You can have your server serve up that picture (not all that easy to do) or you can have your server simply embed that image link in the page that it returns, and the browser will go fetch the picture from that location.

Finding a similar picture, in a different color perhaps, and having one represent on and the other represent off would be better.

Go Up