@@ -66,9 +66,9 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
66
66
public void onResume () {
67
67
super .onResume ();
68
68
imgLayout .setImageDrawable (ResourcesCompat .getDrawable (getResources (),
69
- topside ? R .drawable .pslab_v6_bottom : R .drawable .pslab_v6_top , null ));
69
+ topside ? R .drawable .pslab_v6_top : R .drawable .pslab_v6_bottom , null ));
70
70
colorMap .setImageDrawable (ResourcesCompat .getDrawable (getResources (),
71
- topside ? R .drawable .pslab_v6_bottom_colormap : R .drawable .pslab_v6_top_colormap , null ));
71
+ topside ? R .drawable .pslab_v6_top_colormap : R .drawable .pslab_v6_bottom_colormap , null ));
72
72
imgLayout .setOnTouchListener (this );
73
73
populatePinDetails ();
74
74
}
@@ -119,7 +119,7 @@ private void populatePinDetails() {
119
119
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pv1 ), getString (R .string .pv1_description ), getColor (R .color .pv1 )));
120
120
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pv2 ), getString (R .string .pv2_description ), getColor (R .color .pv2 )));
121
121
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pv3 ), getString (R .string .pv3_description ), getColor (R .color .pv3 )));
122
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pcs ),getString (R .string .pcs_description ),getColor (R .color .pcs )));
122
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pcs ), getString (R .string .pcs_description ), getColor (R .color .pcs )));
123
123
124
124
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .chip_select ), getString (R .string .chip_select_description ), getColor (R .color .chip_select )));
125
125
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .cs1 ), getString (R .string .cs1_description ), getColor (R .color .cs1 )));
@@ -133,9 +133,9 @@ private void populatePinDetails() {
133
133
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pin_vdd_name ), getString (R .string .pin_vdd_description ), getColor (R .color .vdd )));
134
134
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .current_3ma ), getString (R .string .current_3ma_description ), getColor (R .color .current_3ma )));
135
135
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .plus_5v ), getString (R .string .plus_5v_description ), getColor (R .color .plus_5v )));
136
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .voltage_plus_minus_5_0v ),getString (R .string .voltage_plus_minus_5_0v_description ),getColor (R .color .plus_minus_5v )));
137
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .voltage_plus_3_3v ),getString (R .string .voltage_plus_3_3v_description ),getColor (R .color .plus_3_3v )));
138
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .voltage_0_3_3v ),getString (R .string .voltage_0_3_3v_description ),getColor (R .color .range_0_to_3_3v )));
136
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .voltage_plus_minus_5_0v ), getString (R .string .voltage_plus_minus_5_0v_description ), getColor (R .color .plus_minus_5v )));
137
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .voltage_plus_3_3v ), getString (R .string .voltage_plus_3_3v_description ), getColor (R .color .plus_3_3v )));
138
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .voltage_0_3_3v ), getString (R .string .voltage_0_3_3v_description ), getColor (R .color .range_0_to_3_3v )));
139
139
140
140
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pgc ), getString (R .string .pgc_description ), getColor (R .color .pgc )));
141
141
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .pgd ), getString (R .string .pgd_description ), getColor (R .color .pgd )));
@@ -149,19 +149,20 @@ private void populatePinDetails() {
149
149
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .si1 ), getString (R .string .pin_si1_description ), getColor (R .color .si1 )));
150
150
pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .si2 ), getString (R .string .pin_si2_description ), getColor (R .color .si2 )));
151
151
152
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .vol ),getString (R .string .vol_description ),getColor (R .color .vol )));
153
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .res ),getString (R .string .res_description ),getColor (R .color .res )));
154
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .cap ),getString (R .string .cap_v6_description ),getColor (R .color .cap )));
155
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .frequency ),getString (R .string .frequency_v6_description ),getColor (R .color .fqy )));
156
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .mic ),getString (R .string .mic_description ),getColor (R .color .mic )));
157
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .c3g ),getString (R .string .c3g_description ),getColor (R .color .c3g )));
152
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .vol ), getString (R .string .vol_description ), getColor (R .color .vol )));
153
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .res ), getString (R .string .res_description ), getColor (R .color .res )));
154
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .cap ), getString (R .string .cap_v6_description ), getColor (R .color .cap )));
155
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .frequency ), getString (R .string .frequency_v6_description ), getColor (R .color .fqy )));
156
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .mic ), getString (R .string .mic_description ), getColor (R .color .mic )));
157
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .c3g ), getString (R .string .c3g_description ), getColor (R .color .c3g )));
158
158
159
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq1 ),getString (R .string .sq1_description ),getColor (R .color .sq1 )));
160
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq2 ),getString (R .string .sq2_description ),getColor (R .color .sq2 )));
161
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq3 ),getString (R .string .sq3_description ),getColor (R .color .sq3 )));
162
- pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq4 ),getString (R .string .sq4_description ),getColor (R .color .sq4 )));
159
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq1 ), getString (R .string .sq1_description ), getColor (R .color .sq1 )));
160
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq2 ), getString (R .string .sq2_description ), getColor (R .color .sq2 )));
161
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq3 ), getString (R .string .sq3_description ), getColor (R .color .sq3 )));
162
+ pinDetails_v6 .add (new PinDetails_v6 (getString (R .string .sq4 ), getString (R .string .sq4_description ), getColor (R .color .sq4 )));
163
163
164
164
}
165
+
165
166
private int getColor (int colorId ) {
166
167
final Context context = getContext ();
167
168
return context == null ? 0 : context .getColor (colorId );
@@ -269,4 +270,4 @@ private void midPoint(PointF point, MotionEvent event) {
269
270
float y = event .getY (0 ) + event .getY (1 );
270
271
point .set (x / 2 , y / 2 );
271
272
}
272
- }
273
+ }
0 commit comments