Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
thk_led
Manage
Activity
Members
Labels
Plan
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
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
thk_libs
microcontrollers
thk_led
Commits
e9aec3d1
Commit
e9aec3d1
authored
2 years ago
by
Tom Tiltmann
Browse files
Options
Downloads
Patches
Plain Diff
blink() kann jetzt ganz an/ausschalten
parent
c0174623
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
led_controller.h
+23
-15
23 additions, 15 deletions
led_controller.h
with
23 additions
and
15 deletions
led_controller.h
+
23
−
15
View file @
e9aec3d1
...
...
@@ -22,6 +22,14 @@ public:
void
blink
(
uint16_t
interval_off
,
uint16_t
interval_on
)
{
// 1. Fall: Keine Zeitintervall für den Zustand AUS-> LED ist also dauerhaft angeschaltet!
if
(
interval_off
==
0
)
digitalWrite
(
PIN
,
HIGH
);
// 2. Fall: Keine Zeitintervall für den Zustand EIN-> LED ist also dauerhaft ausgeschaltet!
else
if
(
interval_on
==
0
)
digitalWrite
(
PIN
,
LOW
);
// 3. Fall: Es gibt Zeitintervalle EIN und AUS:
else
switch
(
digitalRead
(
PIN
))
{
case
HIGH
:
...
...
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