Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cm2305
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Dean Jukes
cm2305
Commits
5774510a
Commit
5774510a
authored
4 months ago
by
Ethan Walters
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://git.cardiff.ac.uk/c23072833/cm2305
parents
780a72ef
7af0e88b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
physical/lcd_display.py
+1
-1
1 addition, 1 deletion
physical/lcd_display.py
physical/node-red/node-red-flow.json
+9
-9
9 additions, 9 deletions
physical/node-red/node-red-flow.json
pi/requirements.txt
+2
-0
2 additions, 0 deletions
pi/requirements.txt
with
12 additions
and
10 deletions
physical/lcd_display.py
+
1
−
1
View file @
5774510a
#!/usr/bin/env python3
import
time
import
sys
import
smbus
import
smbus2
as
smbus
import
RPi.GPIO
as
GPIO
# Determine the Raspberry Pi revision and assign the correct I2C bus.
...
...
This diff is collapsed.
Click to expand it.
physical/node-red/node-red-flow.json
+
9
−
9
View file @
5774510a
...
...
@@ -113,7 +113,7 @@
"z"
:
"82313dad63d1abd7"
,
"name"
:
""
,
"pauseType"
:
"delay"
,
"timeout"
:
"3"
,
"timeout"
:
"3
.5
"
,
"timeoutUnits"
:
"seconds"
,
"rate"
:
"1"
,
"nbRateUnits"
:
"1"
,
...
...
@@ -124,7 +124,7 @@
"drop"
:
false
,
"allowrate"
:
false
,
"outputs"
:
1
,
"x"
:
12
6
0
,
"x"
:
12
7
0
,
"y"
:
220
,
"wires"
:
[
[
...
...
@@ -368,7 +368,7 @@
"z"
:
"82313dad63d1abd7"
,
"name"
:
""
,
"pauseType"
:
"delay"
,
"timeout"
:
"3"
,
"timeout"
:
"3
.5
"
,
"timeoutUnits"
:
"seconds"
,
"rate"
:
"1"
,
"nbRateUnits"
:
"1"
,
...
...
@@ -379,7 +379,7 @@
"drop"
:
false
,
"allowrate"
:
false
,
"outputs"
:
1
,
"x"
:
12
6
0
,
"x"
:
12
7
0
,
"y"
:
460
,
"wires"
:
[
[
...
...
@@ -757,7 +757,7 @@
"type"
:
"function"
,
"z"
:
"82313dad63d1abd7"
,
"name"
:
"StopSensingCommand"
,
"func"
:
"// Send
\"
SERVO [angle]
\"
to Ardu
in
o
\n
msg.payload =
\"
STOP SENSING
\\
n
\"
;
\n
return msg;
\n
"
,
"func"
:
"// Send
command to stop motion sens
in
g
\n
msg.payload =
\"
STOP SENSING
\\
n
\"
;
\n
return msg;
\n
"
,
"outputs"
:
1
,
"timeout"
:
0
,
"noerr"
:
0
,
...
...
@@ -787,7 +787,7 @@
"type"
:
"function"
,
"z"
:
"82313dad63d1abd7"
,
"name"
:
"StopSensingCommand"
,
"func"
:
"// Send
\"
SERVO [angle]
\"
to Ardu
in
o
\n
msg.payload =
\"
STOP SENSING
\\
n
\"
;
\n
return msg;
\n
"
,
"func"
:
"// Send
command to stop motion sens
in
g
\n
msg.payload =
\"
STOP SENSING
\\
n
\"
;
\n
return msg;
\n
"
,
"outputs"
:
1
,
"timeout"
:
0
,
"noerr"
:
0
,
...
...
@@ -807,7 +807,7 @@
"type"
:
"function"
,
"z"
:
"82313dad63d1abd7"
,
"name"
:
"StartSensingCommand"
,
"func"
:
"// Send
\"
SERVO [angle]
\"
to Arduino
\n
msg.payload =
\"
START SENSING
\\
n
\"
;
\n
return msg;
\n
"
,
"func"
:
"// Send
command to start motion sensing
\n
msg.payload =
\"
START SENSING
\\
n
\"
;
\n
return msg;
\n
"
,
"outputs"
:
1
,
"timeout"
:
0
,
"noerr"
:
0
,
...
...
@@ -838,7 +838,7 @@
"z"
:
"82313dad63d1abd7"
,
"name"
:
""
,
"pauseType"
:
"delay"
,
"timeout"
:
"5"
,
"timeout"
:
"
3.
5"
,
"timeoutUnits"
:
"seconds"
,
"rate"
:
"1"
,
"nbRateUnits"
:
"1"
,
...
...
@@ -849,7 +849,7 @@
"drop"
:
false
,
"allowrate"
:
false
,
"outputs"
:
1
,
"x"
:
3
8
0
,
"x"
:
3
9
0
,
"y"
:
420
,
"wires"
:
[
[
...
...
This diff is collapsed.
Click to expand it.
pi/requirements.txt
+
2
−
0
View file @
5774510a
...
...
@@ -37,3 +37,5 @@ typing-inspect==0.9.0
typing_extensions==4.13.0
urllib3==2.3.0
yarl==1.18.3
smbus2=0.5.0
RPi.GPIO==0.7.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment