Skip to content

Commit 727daa9

Browse files
committed
follow Arduino 1.5 library specification
Must now be cloned into your user libraries directory, on windows the default is: ~/Documents/Arduino/libraries/ https://github.com/arduino/arduino/wiki/arduino-ide-1.5:-library-specification
1 parent ba0a087 commit 727daa9

File tree

6 files changed

+50
-12
lines changed

6 files changed

+50
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Create a .development file in the repository root to edit the library
2+
/.development

phoenix-arduino.ino renamed to examples/phoenix-arduino-test/phoenix-arduino-test.ino

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ const size_t numButtonGroups = 3;
2929
const hc165_config_t hc165_configs[numButtonGroups] = {
3030
{
3131
.name = "handle",
32-
.ploadPin = 22,
33-
.clockDataPin = 23,
32+
.ploadPin = 11,
33+
.clockDataPin = 12,
3434
},
3535
{
3636
.name = " wing",
37-
.ploadPin = 24,
38-
.clockDataPin = 25,
37+
.ploadPin = 3,
38+
.clockDataPin = 2,
3939
},
4040
{
4141
.name = "thrttl",
42-
.ploadPin = 26,
43-
.clockDataPin = 27,
42+
.ploadPin = 7,
43+
.clockDataPin = 6,
4444
},
4545
};
4646

@@ -63,8 +63,8 @@ void setup()
6363
analogReference(DEFAULT);
6464
pinMode(A0, INPUT);
6565
pinMode(A1, INPUT);
66-
pinMode(A8, INPUT);
67-
pinMode(A9, INPUT);
66+
pinMode(A4, INPUT);
67+
pinMode(A5, INPUT);
6868
}
6969

7070
/*
@@ -124,11 +124,12 @@ void loop()
124124
Serial.print(" y:");
125125
Serial.print(get_potentiometer_resistance(analogRead(A1)));
126126
Serial.print(" r:");
127-
Serial.print(get_potentiometer_resistance(analogRead(A8)));
127+
Serial.print(get_potentiometer_resistance(analogRead(A4)));
128128
Serial.print(" t:");
129-
Serial.print(get_potentiometer_resistance(analogRead(A9)));
129+
Serial.print(get_potentiometer_resistance(analogRead(A5)));
130130
Serial.print("\r\n");
131131
}
132132

133133
delay(POLL_DELAY_MSEC);
134-
}
134+
}
135+

keywords.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#######################################
2+
# Syntax Coloring Map For phoenix-arduino
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
Test KEYWORD1
10+
11+
#######################################
12+
# Methods and Functions (KEYWORD2)
13+
#######################################
14+
15+
doSomething KEYWORD2
16+
17+
#######################################
18+
# Instances (KEYWORD2)
19+
#######################################
20+
21+
#######################################
22+
# Constants (LITERAL1)
23+
#######################################

library.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=phoenix-arduino
2+
version=1.0
3+
author=Fred Fettinger <fred.fettinger@gmail.com>
4+
maintainer=Fred Fettinger <fred.fettinger@gmail.com>
5+
sentence=Turn a Gravis Phoenix into a USB joystick with 4 axes and 24 buttons.
6+
paragraph=Replaces the main logic board in the Gravis Phoenix with an Arduino.
7+
category=Other
8+
url=https://github.com/BinaryMan32/phoenix-arduino
9+
architectures=avr
10+
includes=hc165.h

hc165.cpp renamed to src/hc165.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ void hc165_collection_print(const hc165_collection_t& collection)
118118
}
119119
Serial.print("\r\n");
120120
}
121+
121122

hc165.h renamed to src/hc165.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ bool hc165_collection_changed(const hc165_collection_t& collection);
4949

5050
void hc165_collection_print(const hc165_collection_t& collection);
5151

52-
#endif /* HC165_H */
52+
#endif /* HC165_H */
53+

0 commit comments

Comments
 (0)