forked from Abhishek1106kr/First_program-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlowchart.JSON
91 lines (90 loc) · 1.82 KB
/
Flowchart.JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"title": "DS18B20 Heated Body Detection Flowchart",
"nodes": [
{
"id": "start",
"label": "Start",
"type": "start"
},
{
"id": "init_sensor",
"label": "Initialize DS18B20 Sensor",
"type": "process"
},
{
"id": "read_temperature",
"label": "Read Temperature",
"type": "process"
},
{
"id": "check_threshold",
"label": "Is Temperature > Threshold?",
"type": "decision"
},
{
"id": "increment_counter",
"label": "Increment Body Counter",
"type": "process"
},
{
"id": "print_count",
"label": "Print Current Count",
"type": "process"
},
{
"id": "wait_1s",
"label": "Wait 1 Second",
"type": "process"
},
{
"id": "no_body_detected",
"label": "No Body Detected (Print Temp)",
"type": "process"
},
{
"id": "end",
"label": "End",
"type": "end"
}
],
"links": [
{
"from": "start",
"to": "init_sensor"
},
{
"from": "init_sensor",
"to": "read_temperature"
},
{
"from": "read_temperature",
"to": "check_threshold"
},
{
"from": "check_threshold",
"to": "increment_counter",
"label": "Yes"
},
{
"from": "increment_counter",
"to": "print_count"
},
{
"from": "print_count",
"to": "wait_1s"
},
{
"from": "wait_1s",
"to": "read_temperature"
},
{
"from": "check_threshold",
"to": "no_body_detected",
"label": "No"
},
{
"from": "no_body_detected",
"to": "wait_1s"
}
]
}