Pages: [1]   Go Down
Author Topic: ENC28J60 controlling all outputs and itputs.  (Read 347 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using enc 28j60 ethernet shield with library ethercard. I've got code from https://github.com/lucadentella/enc28j60_tutorial/blob/master/_8_WebLeds/_8_WebLeds.ino. I know how to add more led's but i don't know how to read values from analog itputs. Anyone can help ?
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you look at source code of the webpage in your browser, you see the html code that was transmitted by the Arduino.
You can add other text to that webpage between the <body> and the </body> tags.

Code:
bfill.emit_p(PSTR("Hello World"));

You have to check the library for the possible options for bfill.emit... functions. Perhaps you have to use bfill.emit_raw with a string. The value of analogRead() can be turned into a string with the "dstrtof()" function.
Logged

Pages: [1]   Go Up
Jump to: