File tree Expand file tree Collapse file tree 6 files changed +50
-12
lines changed
examples/phoenix-arduino-test Expand file tree Collapse file tree 6 files changed +50
-12
lines changed Original file line number Diff line number Diff line change
1
+ # Create a .development file in the repository root to edit the library
2
+ /.development
Original file line number Diff line number Diff line change @@ -29,18 +29,18 @@ const size_t numButtonGroups = 3;
29
29
const hc165_config_t hc165_configs[numButtonGroups] = {
30
30
{
31
31
.name = " handle" ,
32
- .ploadPin = 22 ,
33
- .clockDataPin = 23 ,
32
+ .ploadPin = 11 ,
33
+ .clockDataPin = 12 ,
34
34
},
35
35
{
36
36
.name = " wing" ,
37
- .ploadPin = 24 ,
38
- .clockDataPin = 25 ,
37
+ .ploadPin = 3 ,
38
+ .clockDataPin = 2 ,
39
39
},
40
40
{
41
41
.name = " thrttl" ,
42
- .ploadPin = 26 ,
43
- .clockDataPin = 27 ,
42
+ .ploadPin = 7 ,
43
+ .clockDataPin = 6 ,
44
44
},
45
45
};
46
46
@@ -63,8 +63,8 @@ void setup()
63
63
analogReference (DEFAULT);
64
64
pinMode (A0, INPUT);
65
65
pinMode (A1, INPUT);
66
- pinMode (A8 , INPUT);
67
- pinMode (A9 , INPUT);
66
+ pinMode (A4 , INPUT);
67
+ pinMode (A5 , INPUT);
68
68
}
69
69
70
70
/*
@@ -124,11 +124,12 @@ void loop()
124
124
Serial.print (" y:" );
125
125
Serial.print (get_potentiometer_resistance (analogRead (A1)));
126
126
Serial.print (" r:" );
127
- Serial.print (get_potentiometer_resistance (analogRead (A8 )));
127
+ Serial.print (get_potentiometer_resistance (analogRead (A4 )));
128
128
Serial.print (" t:" );
129
- Serial.print (get_potentiometer_resistance (analogRead (A9 )));
129
+ Serial.print (get_potentiometer_resistance (analogRead (A5 )));
130
130
Serial.print (" \r\n " );
131
131
}
132
132
133
133
delay (POLL_DELAY_MSEC);
134
- }
134
+ }
135
+
Original file line number Diff line number Diff line change
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
+ #######################################
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -118,4 +118,5 @@ void hc165_collection_print(const hc165_collection_t& collection)
118
118
}
119
119
Serial.print (" \r\n " );
120
120
}
121
+
121
122
Original file line number Diff line number Diff line change @@ -49,4 +49,5 @@ bool hc165_collection_changed(const hc165_collection_t& collection);
49
49
50
50
void hc165_collection_print (const hc165_collection_t & collection );
51
51
52
- #endif /* HC165_H */
52
+ #endif /* HC165_H */
53
+
You can’t perform that action at this time.
0 commit comments