Skip to content

Commit d235cdd

Browse files
committed
Add back in highlighting on ETH
1 parent 59313ed commit d235cdd

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

modules/P1AM-ETH/P1AM-ETH.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,19 @@ <h2></h2>
4040
<h3>Code Examples</h3>
4141
<div class="line"></div>
4242
<p><i> <a href=https://www.Arduino.cc/en/Tutorial/WebServer>The webserver example</a> redefines the function of pins A3 and A4 which are used by the Base Controller. To use the webserver example provided by Arduino with the P1AM-100 you must first add the following if statement after the start of the for loop that increments through analog channels. </i></p>
43-
<pre><code class="cpp">for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
44-
if(analogChannel != 3 || analogChannel != 4) { //add this line to skip over A3 and A4 when calling analogRead on Arduino pin analog inputs
45-
int sensorReading = analogRead(analogChannel);
46-
client.print("analog input ");
47-
client.print(analogChannel);
48-
client.print(" is ");
49-
client.print(sensorReading);
50-
client.println("&lt;br /&gt;");
51-
}
52-
}
53-
</code></pre>
54-
43+
<div class="code-block">
44+
<pre><code class="cpp">for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
45+
&nbsp;&nbsp;&nbsp;&nbsp; if(analogChannel != 3 || analogChannel != 4) { //add this line to skip over A3 and A4 when calling analogRead on Arduino pin analog inputs
46+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int sensorReading = analogRead(analogChannel);
47+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client.print("analog input ");
48+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client.print(analogChannel);
49+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client.print(" is ");
50+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client.print(sensorReading);
51+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client.println("&lt;br /&gt;");
52+
&nbsp;&nbsp;&nbsp;&nbsp; }
53+
}
54+
</code></pre>
55+
</div>
5556
<p><b>ViewMarq</b></p>
5657
The ViewMarq library allows easy connectivity between the P1AM-100, P1AM-ETH, and a ViewMarq LED message sign.
5758
Find the code and examples in the Arduino Library Manager or

0 commit comments

Comments
 (0)