Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
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
Model registry
Analyze
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
Avionics
Software Development
Skyward Boardcore
Wiki
LED Driver
Changes
Page history
New page
Templates
Clone repository
[style] minor style fixes
authored
4 years ago
by
Luca Conterio
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LED-Driver.md
+2
-2
2 additions, 2 deletions
LED-Driver.md
with
2 additions
and
2 deletions
LED-Driver.md
View page @
ad6bddc5
...
...
@@ -140,7 +140,7 @@ void SimpleLed::switchToState(bool newState)
As you can see,
`PD14`
is set as an
`output`
pin in the constructor and its digital value can be set to
`high`
or
`low`
.
You can find more information about how to use the GPIO and what pins you can use, in the
[
GPIO Usage
](
GPIO-Usage-&-Used-Pins
)
page.
##
Write an
entrypoint
##
Create your
entrypoint
To write a program that uses this driver, an entrypoint is needed as before: in
`src/entrypoints`
add a file called
`test-led-driver.cpp`
and write:
...
...
@@ -162,7 +162,7 @@ int main()
}
```
##
Add everything to
SBS
##
Compile with
SBS
Just as before we have to add what we wrote to
`sbs.conf`
. This time though
we will also have to compile
`SimpleLed.cpp`
with our entrypoint. The way to do this is:
...
...
This diff is collapsed.
Click to expand it.