Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Blink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
ajk1e20
Blink
Commits
4aa33828
Commit
4aa33828
authored
3 years ago
by
ajk1e20
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
9fe326ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
blink/blink.c
+23
-0
23 additions, 0 deletions
blink/blink.c
with
23 additions
and
0 deletions
blink/blink.c
0 → 100644
+
23
−
0
View file @
4aa33828
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include
"pico/stdlib.h"
int
main
()
{
#ifndef PICO_DEFAULT_LED_PIN
#warning blink example requires a board with a regular LED
#else
const
uint
LED_PIN
=
PICO_DEFAULT_LED_PIN
;
gpio_init
(
LED_PIN
);
gpio_set_dir
(
LED_PIN
,
GPIO_OUT
);
while
(
true
)
{
gpio_put
(
LED_PIN
,
1
);
sleep_ms
(
1000
);
gpio_put
(
LED_PIN
,
0
);
sleep_ms
(
1000
);
}
#endif
}
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