Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
avrkurs
avrkurs
Commits
6d7fe9d0
Commit
6d7fe9d0
authored
Mar 10, 2017
by
spookysys
Browse files
Merge
https://git.omegav.no/avrkurs/attinykurs
parents
0913809d
567c7c38
Changes
1
Show whitespace changes
Inline
Side-by-side
Session2/PWM/main.c
View file @
6d7fe9d0
/*
* PWM-LF.c
*
* Created: 29.01.2017 23:43:39
* Author : Petter
*/
#define F_CPU 3333333UL
#define F_CPU 3333333UL
...
@@ -20,7 +14,10 @@
...
@@ -20,7 +14,10 @@
#define SW2 6 // Port A
#define SW2 6 // Port A
#define SW3 7 // Port A
#define SW3 7 // Port A
/*
In this exercise, you will use PWM to control thwe brightness of LEDs
Once we have PWM set up, controling the brightness is super easy!
*/
int
main
(
void
)
int
main
(
void
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment