Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
OpenSource
Ardupilot
Commits
a429c78d
Commit
a429c78d
authored
13 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
ArduCopter - LEDS - set new output pins to OUTPUT to support COPTER_LEDS.
Code by Robert Lefebvre
parent
663eda6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ArduCopter/system.pde
+11
-10
11 additions, 10 deletions
ArduCopter/system.pde
with
11 additions
and
10 deletions
ArduCopter/system.pde
+
11
−
10
View file @
a429c78d
...
...
@@ -130,16 +130,17 @@ static void init_ardupilot()
#if CONFIG_RELAY == ENABLED
DDRL
|=
B00000100
;
// Set Port L, pin 2 to output for the relay
#endif
// XXX set Analog out 14 to output
// 76543210
//DDRK |= B01010000;
#if MOTOR_LEDS == 1
pinMode
(
FR_LED
,
OUTPUT
);
// GPS status LED
pinMode
(
RE_LED
,
OUTPUT
);
// GPS status LED
pinMode
(
RI_LED
,
OUTPUT
);
// GPS status LED
pinMode
(
LE_LED
,
OUTPUT
);
// GPS status LED
#endif
#if COPTER_LEDS == ENABLED
pinMode
(
COPTER_LED_1
,
OUTPUT
);
//Motor LED
pinMode
(
COPTER_LED_2
,
OUTPUT
);
//Motor LED
pinMode
(
COPTER_LED_3
,
OUTPUT
);
//Motor LED
pinMode
(
COPTER_LED_4
,
OUTPUT
);
//Motor LED
pinMode
(
COPTER_LED_5
,
OUTPUT
);
//Motor or Aux LED
pinMode
(
COPTER_LED_6
,
OUTPUT
);
//Motor or Aux LED
pinMode
(
COPTER_LED_7
,
OUTPUT
);
//Motor or GPS LED
pinMode
(
COPTER_LED_8
,
OUTPUT
);
//Motor or GPS LED
#endif
#if PIEZO == 1
pinMode
(
PIEZO_PIN
,
OUTPUT
);
...
...
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