Skip to content

Commit 7506dbd

Browse files
committed
Added plots for current and voltage
1 parent 085a42f commit 7506dbd

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

decimalTOBinary.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
void decToBinary(int n)
2+
{
3+
int binaryNum[32];
4+
int i = 0;
5+
while (n > 0) {
6+
binaryNum[i] = n % 2;
7+
n = n / 2;
8+
i++;
9+
}
10+
}

main.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<!DOCTYPE html>
22
<html>
3-
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/907271/charts/1?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60&type=line&update=15"></iframe>
3+
4+
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/907271/charts/2?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60&type=line&update=15"></iframe>
5+
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/907271/charts/3?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60&type=line&update=15"></iframe>
6+
47
<body>
5-
8+
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/907271/charts/1?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60&type=line&update=15"></iframe>
69
<p>Enter the value of volatge, then click "Submit" to submit the value:</p>
710

811
<form id="frm1">

0 commit comments

Comments
 (0)