Pages: [1]   Go Down
Author Topic: arduino and enc28j60  (Read 622 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 547
Posts: 45985
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 547
Posts: 45985
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

photo example http://www.clker.com/cliparts/3/e/7/1/119709197585381818TzeenieWheenie_Power_On_Off_Switch_red_2.svg.med.png
can i put this photo in my code
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 547
Posts: 45985
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: