Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
maciej.naskret
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Academany
Fab Academy
2020
Fab Academy 2020 Labs
Powered by Orange - Warsaw
Powered by Orange - Warsaw students
maciej.naskret
Commits
0869943b
Commit
0869943b
authored
4 years ago
by
Maciej Naskręt
Browse files
Options
Downloads
Patches
Plain Diff
week
parent
0891ae2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#198285
passed
4 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
week_11.html
+20
-21
20 additions, 21 deletions
week_11.html
with
20 additions
and
21 deletions
week_11.html
+
20
−
21
View file @
0869943b
...
...
@@ -132,36 +132,35 @@ Free for personal and commercial use under the CCA 3.0 license (html5up.net/lice
<span
class=
"image main"
><img
src=
"images/assig/week11/hero_shot.jpg"
style=
"width:60%;height:60%;padding-bottom:0;"
><br>
Arduino code
</p>
<pre>
<code>
Arduino code
int led = 7;
float photo = A7;
void setup()
{
pinMode(led, OUTPUT); // Declare the LED as an output
pinMode(photo, INPUT); //declare the photo as an input
}
</p>
<pre>
<code>
void loop()
{
float photo = analogRead(A3)
;
const int redPin = 7;
const int greenPin = 6;
const int bluePin = 5
;
if (photo > 0)
{
digitalWrite(led, HIGH);
} else {
digitalWrite(led, LOW);
void setup() {}
}
void loop() {
analogWrite(redPin, random(0,255));
analogWrite(greenPin, random(0,255));
analogWrite(bluePin, random(0,255));
delay(500);
}
}
</pre>
</code>
<br><br>
<iframe
width=
"560"
height=
"315"
src=
"https://www.youtube.com/embed/RlJEDVejdmM"
frameborder=
"0"
allow=
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<br><br>
<p><h3><a
href=
"https://drive.google.com/drive/folders/1s6BoQJIU1qz_aRZVKfWgthQgMH4MEY93?usp=sharing"
>
all files from projects
</a></h3>
</p>
</div>
...
...
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