Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-nRF5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-nRF5
Commits
101e4a48
Commit
101e4a48
authored
Sep 10, 2017
by
Sandeep Mistry
Committed by
GitHub
Sep 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #188 from dsanders11/pwm-polarity
Use falling edge polarity for PWM to match standard Arduino
parents
d21e2d4c
b619597a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cores/nRF5/wiring_analog_nRF52.c
cores/nRF5/wiring_analog_nRF52.c
+1
-1
No files found.
cores/nRF5/wiring_analog_nRF52.c
View file @
101e4a48
...
...
@@ -222,7 +222,7 @@ void analogWrite( uint32_t ulPin, uint32_t ulValue )
for
(
int
i
=
0
;
i
<
PWM_COUNT
;
i
++
)
{
if
(
pwmChannelPins
[
i
]
==
0xFFFFFFFF
||
pwmChannelPins
[
i
]
==
ulPin
)
{
pwmChannelPins
[
i
]
=
ulPin
;
pwmChannelSequence
[
i
]
=
ulValue
;
pwmChannelSequence
[
i
]
=
ulValue
|
bit
(
15
)
;
NRF_PWM_Type
*
pwm
=
pwms
[
i
];
...
...
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