Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Robot-Sensor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
René Ebeling
Robot-Sensor
Commits
4721645c
Commit
4721645c
authored
2 months ago
by
René Ebeling
Browse files
Options
Downloads
Patches
Plain Diff
changed arduino sketch
parent
ed686ed8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Arduino/Final_18_vl53l7cx_clean_both_I2C_with_STMlibrary_PCF8575/Final_18_vl53l7cx_clean_both_I2C_with_STMlibrary_PCF8575.ino
+10
-10
10 additions, 10 deletions
...al_18_vl53l7cx_clean_both_I2C_with_STMlibrary_PCF8575.ino
with
10 additions
and
10 deletions
Arduino/Final_18_vl53l7cx_clean_both_I2C_with_STMlibrary_PCF8575/Final_18_vl53l7cx_clean_both_I2C_with_STMlibrary_PCF8575.ino
+
10
−
10
View file @
4721645c
...
...
@@ -178,13 +178,13 @@ void setup() {
Serial
.
println
(
"Initialized "
+
String
(
sensor_count
)
+
" Sensors"
);
}
void
loop1
(){
Serial
.
println
()
delay
(
500
);
}
//
void loop1(){
//
Serial.println()
;
//
delay(500);
//
}
void
loop
()
{
count
++
;
long
timestamp
=
micros
();
//
long timestamp = micros();
// Declare the result data variables for each sensor
VL53L7CX_ResultsData
Results0
;
VL53L7CX_ResultsData
Results1
;
...
...
@@ -227,11 +227,11 @@ void loop() {
serializeJson
(
doc
,
Serial
);
Serial
.
println
();
long
loopduration
=
micros
()
-
timestamp
;
allduration
=
allduration
+
loopduration
;
long
averageloopduration
=
allduration
/
count
;
Serial
.
println
(
averageloopduration
);
Serial
.
println
(
count
);
//
long loopduration = micros() - timestamp;
//
allduration = allduration + loopduration;
//
long averageloopduration = allduration/count;
//
Serial.println(averageloopduration);
//
Serial.println(count);
}
void
i2cScanner
(
TwoWire
DEV_I2C
)
{
...
...
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