Firenet

Check-in [afc44e73c5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update with capacitor added to firing ckt
Timelines: family | ancestors | descendants | both | NEWNET
Files: files | file ages | folders
SHA1:afc44e73c5b5de183cf3b07768ae16dd89fbf8d5
User & Date: jim 2013-12-01 10:43:00
Context
2014-01-19
19:45
Add video of test run check-in: b6ce4dc97b user: jim tags: NEWNET
2013-12-01
10:43
Update with capacitor added to firing ckt check-in: afc44e73c5 user: jim tags: NEWNET
2013-03-29
12:50
Update for move check-in: 102039b6fa user: jim tags: NEWNET
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Deleted Arduino/diag/fireDiag/Firediag.pde.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
//**********************************************************************
/*
  Firenet FireDiag program
  
  This program is used to to test the firing circuit
  It can:
  	(a) Enable/Disable ARM relay
  	(b) Fire a channel
  	(c) Set firing parameters 
  
  28-Oct-2012	Initial version
   1-Nov-2012   Change firing loop to only check for firing when
   				a/d is set [83c43c7cd5]
*/
//**********************************************************************/

#include "EEPROM.h"
#include "debug.h"
#include "newnet.h"
#include "eerom.h"

#if 0
	#pragma mark -
	#pragma mark Global Data
#endif

// MODULE GLOBAL VARIABLES

FIRE_LIST fire[FIRE_CHANNELS];
EVENT_QUEUE events[FIRE_CHANNELS];
int board_address;            	// Board address value
PACKET p;						// Received packet
NODE_STATE state;
int fire_time;
bool test_mode;
int backoff_time;
#define STATIC_BUF_SZ	40
char buf[STATIC_BUF_SZ];		// General buffer for use in routines
					// Clear or don't expect constant data when using

#if 0
	#pragma mark -
	#pragma mark Arudino Routines
#endif

void setup();
void loop();

#if 0
	#pragma mark -
	#pragma mark Support routines
#endif

// **** Message Handling ****
static int check_net(void);
static void handle_net( char data, PACKET *pkt );
static int gen_packet(unsigned char to, int len, char *data,char *buf );
void set_response( unsigned char to );


// ***** TESTING CODE ***
static int get_message(int len,char *buffer);
static int get_input( char *prompt,int len,char *buffer );
char *state_name( int state );

// ***** Firing Channel code *****
//static void check_fire(FIRE_LIST *fl);
static void check_device(FIRE_LIST *fl);
void fire_op( int ch );
void next_event(void);
int store_in_queue( char ch,long ft );
void print_queue(void);

#if 0
	#pragma mark -
	#pragma mark Handler Routines
#endif

static void arm_action( PACKET *pkt );
static void fire_action( PACKET *pkt );
static void delay_action( PACKET *pkt );
static void pgm_action( PACKET *pkt );
static void status_action( PACKET *pkt );
static void sync_action( PACKET *pkt );
static void version_action( PACKET *pkt );
static void channel_action( PACKET *pkt );

static void address_action(PACKET *pkt );
static void fire_time_action(PACKET *pkt );
static void test_mode_action(PACKET *pkt );
static void backoff_time_action( PACKET *pkt );

static void getdata_action( PACKET *pkt );

// EEPROM  functions

//static void check_eerom();
static int get_address();
static int set_address( int addr );
static int get_fire_time();
static int set_fire_time( int addr );
static bool get_test_mode();
static void set_test_mode( bool addr );
static int get_backoff_time();
static int set_backoff_time( int bt );

#if 0
	#pragma mark -
	#pragma mark Main Routines
#endif

/***********************************************************************
*
*  void setup()		- Startup routine - CALL ONCE
*
*	INPUT:	NONE
*
*	OUTPUT:	NONE
*
*  16-May-2010  Add in ADDRESS setup
*
**********************************************************************/

void setup() 
{
    int i;
    //unsigned char addr,caddr;
    
  // Open the serial port at 38400 bps:
  
  Serial.begin(38400);
  DEBUG_PRINT("\r\nFiring Test PGM V[ ");
  DEBUG_PRINT(__DATE__);
  DEBUG_PRINT(" ");
  DEBUG_PRINT(__TIME__);
  DEBUG_PRINTLN("]");
  //DEBUG_PRINTLN("-- USE FIRNET PACKET --");
  
  // Check EEPROM
  
  check_eeprom();
  
  // Build the channel list
  
  fire[0].fire = FIRE0;
  fire[0].ad   = FIRE0_AD;
  fire[1].fire = FIRE1;
  fire[1].ad   = FIRE1_AD;
  fire[2].fire = FIRE2;
  fire[2].ad   = FIRE2_AD;
  fire[3].fire = FIRE3;
  fire[3].ad   = FIRE3_AD;
  fire[4].fire = FIRE4;
  fire[4].ad   = FIRE4_AD;
  fire[5].fire = FIRE5;
  fire[5].ad   = FIRE5_AD;
  
  // Get board address, fire time & test mode
  
  board_address = get_address();
  fire_time = get_fire_time();
  test_mode = get_test_mode();
  backoff_time = get_backoff_time();
  //backoff_time = RESP_BACKOFF;
  
  DEBUG_PRINTLN("-------------------------------------------------------------------");
  DEBUG_PRINT("SETTINGS ADDR [");
  DEBUG_PRINT_DEC(board_address);
  DEBUG_PRINT("] FIRE Time [");
  DEBUG_PRINT_DEC(fire_time);
  DEBUG_PRINT("] TEST Mode [");
  DEBUG_PRINT_DEC(test_mode);
  DEBUG_PRINT("] Backoff Time [");
  DEBUG_PRINT_DEC(backoff_time);
  DEBUG_PRINTLN("]");
  DEBUG_PRINTLN("-------------------------------------------------------------------");

  // Set the channel directions & Read A/D & event queue
  
  state.in_event = 0;
  state.event_count = 0;
  state.event_next = 0;
  
  for( i=0; i<FIRE_CHANNELS; i++ )
  {
	digitalWrite(fire[i].fire,0);
	pinMode(fire[i].fire,OUTPUT);
	
	// Set for nothing connected an non-fired
	
	fire[i].pres = 0;
	fire[i].fired = 0;          // Not fired yet
	fire[i].ch_ad = 0;			// [230cd6fbad] no A/D value yet
	
  }

  digitalWrite(RELAY,0);
  pinMode(RELAY,OUTPUT);
  digitalWrite(LED,0);
  pinMode(LED,OUTPUT);
  digitalWrite(TX_CNTL,0);
  pinMode(TX_CNTL,OUTPUT);
    
  // Set up globals
  
  memset(&p,'\0',sizeof(PACKET));
  memset(&state,'\0',sizeof(NODE_STATE));
  p.state = NO_PACKET;
  
}

/***********************************************************************
*
*  void loop()		- Main action routine - CALL continuously
*
*	INPUT:	NONE
*
*	OUTPUT:	NONE
*
**********************************************************************/

void loop()
{
    int n;
    int buf_psn = 0;
    long now;
    char val;
    int len;
    //char ch;
    int fired = 0;
    bool fire_check = false;	// [83c43c7cd5]

#if 0
	#pragma mark -
	#pragma mark LOOP PKT PROCESS
#endif

	if( Serial.available() > 0 )
	{
#ifdef FAKE_NETWORK
		// ************** TESTING CODE FOR MANUAL ENTERING OF PACKETS
		if( len = get_message(40,buf) )
		{
			Serial.print(" MSG: [");
			Serial.print(buf);
			Serial.println("]");
            Serial.println("");
            check_net();      // Tidy up
            
			// Reset after handling packet
			
			buf_psn = 0;
			p.state = NO_PACKET;
		 }
		 
		 // Process received data
		 // Normally this would be 1 character at a time
		 // but in this case we have a buffer (buf) which
		 // is filled with characters up to a NUL
		 
		 while( buf_psn <= len )
		 {
		 	handle_net( buf[buf_psn++], &p );
		 }
		 // *******************************************************
#else
		// ********************************* STD CHARACTER HANDLER
		while( Serial.available() > 0 )
		{
			ch = Serial.read();
			handle_net(ch,&p );
			
			if( p.state == RCVED_PACKET )
				break;
		}
		// *******************************************************
#endif
		 // If packet found then handle
		 
		 if( p.state == RCVED_PACKET )
		 {
		 	DEBUG_PRINT("** PACKET REC LEN: ");
		 	DEBUG_PRINT_DEC(p.len);
		 	DEBUG_PRINT(" DATA ");
		 	//DEBUG_PRINTLN(p.data);
		 				
			// Switch on packet type and handle
			
			switch( p.data[0] )
			{
				case ARM_CMD:	arm_action( &p );
								break;			

				case FIRE_CMD:	fire_action( &p );
								break;
								
				case DLY_CMD:	delay_action( &p );
								break;
								
				case PGM_CMD:	pgm_action( &p );
								break;
								
				case STATUS_CMD:status_action( &p );
								break;
								
				case SYNC_CMD:	sync_action( &p );
								break;
								
				case VER_CMD:	version_action( &p );
								break;
								
				case CH_CMD:	channel_action( &p );
								break;

				case SET_AD_CMD:address_action( &p );
								break;	
								
				case SET_FT_CMD:fire_time_action( &p );
								break;
								
				case SET_TM_CMD:test_mode_action( &p );
								break;
								
				case BKOFF_CMD:	backoff_time_action( &p );
								break;
								
				case GET_DATA_CMD:	getdata_action( &p );
								break;
								
				default:	Serial.println("** Unknown Command **");
							break;
			}
			
			// Finished with packet
			
			p.state = NO_PACKET;
		 }
	}
	
#if 0
	#pragma mark -
	#pragma mark LOOP MSG RESPONSE
#endif
	
	// Handle message responses after firing
	
	if( state.in_resp && !state.in_fire)
	{
		if( state.now >= state.resp_time )
		{
			digitalWrite(TX_CNTL,1);		// Enable TX
			delay(1);			// Delay to enable XMIT
			
			Serial.println(state.response);	// Send the response
			state.in_resp = 0;				// Clear response
			
			len = strlen(state.response);
			if( len > 15 )
			{
				// Add extra delay [7bcdf98e54]
				delay(DEF_TXEN_DLY);			// Hold enable while XMIT
			}
			delay(DEF_TXEN_DLY);			// Hold enable while XMIT
			digitalWrite(TX_CNTL,0);
		}
	}

#if 0
	#pragma mark -
	#pragma mark LOOP BLINK
#endif
	
	// Process state
	// Get current time in ms and check for what to do
	
	now = millis();							// Handle blink
	state.now = now - state.time_offset;	// Node time, corrected for sync offset
	if( state.in_blink )
	{
		if( now >= state.next_blink )
		{
			state.next_blink += BLINK_TIME;
			val = digitalRead( LED );
			val = val ^ 0x1;
			digitalWrite(LED,val);
		}
	}

#if 0
	#pragma mark -
	#pragma mark LOOP FIRE DELAY
#endif
	
	if( state.in_delay )					// Handle delay
	{
		if( state.now >= state.delay_time )
		{
		
			DEBUG_PRINT("DELAY HIT NOW [");
			DEBUG_PRINT_DEC(state.now);
			DEBUG_PRINT("] DT [");
			DEBUG_PRINT_DEC(state.delay_time);
			DEBUG_PRINT("] OFFSET [");
			DEBUG_PRINT_DEC(state.time_offset);
			DEBUG_PRINTLN("]");
			
			// Exit delay and go to fire
			
			state.in_delay = 0;
			// [a1b444e30a] Added to better support Delay fires
            fire_op( state.delay_channel );
            //-------------------------------------------------
            DEBUG_PRINT("DELAY FIRE [");
            DEBUG_PRINT_DEC( state.fire_channel);
            DEBUG_PRINTLN("]");
                        
		}
	}

#if 0
	#pragma mark -
	#pragma mark LOOP FIRE
#endif
	
	if( state.in_fire )					// Check for firing done
	{
		// [9e81c1a523] Adaptive - See if it's fired already		
		// Read out the A/D on that channel & set fired status
		// fake it on test mode (show as fired)
		
		if( test_mode )
		{
		
			fire[state.fire_channel].pres = 0;		// Assume fired
			fire[state.fire_channel].ch_ad = DEVICE_PRESENT + 0x10;
			fire_check = true;		// [83c43c7cd5]
		}
		else
		{
			// Time to check
			
			n = (int) state.now - state.adaptive_time;
			if( n > FIRE_CHECK_TIME )
			{
				digitalWrite( fire[state.fire_channel].fire,0);		// Disable fire
				delay( FIRE_CHECK_WAIT);							// Wait
				fire[state.fire_channel].ch_ad = 					// Measure presence
						analogRead( fire[state.fire_channel].ad );
				
				DEBUG_PRINT("ADAPT A/D[");
				DEBUG_PRINT_HEX(fire[state.fire_channel].ch_ad);
				DEBUG_PRINTLN("]");
				
				state.adaptive_time = state.now;					// Reset time
				digitalWrite( fire[state.fire_channel].fire,1);		// Enable fire
				fire_check = true;		// [83c43c7cd5]
			}
		}
		
		// Now check for fired status, save the current time
		// for later analysis
		
		fire[state.fire_channel].fire_time = state.now;	// Save fire time
		if( fire_check )		// [83c43c7cd5]
		{
			if( fire[state.fire_channel].ch_ad < DEVICE_PRESENT )
			{
				fired = 1;									// Mark as fired
				fire[state.fire_channel].fired = 1;			// Mark as fired
				fire[state.fire_channel].pres = 0;			// Nothing connected
				DEBUG_PRINT("FIRE EARLY STOP [");
				DEBUG_PRINT_HEX(fire[state.fire_channel].pres);
				DEBUG_PRINTLN("]");
			}
			else
			{
				fired = 0;									// Mark as not fired
				fire[state.fire_channel].pres = 1;			// Item as connected
			}
			fire_check = false;
		}
		
		// If fired tidy up

		if( (fired == 1) || (state.now >= state.fire_time) )
		{
			state.in_fire = 0;
			digitalWrite( fire[state.fire_channel].fire,0);
			
			DEBUG_PRINT("FIRED NOW FIRE_DATA [");
			DEBUG_PRINT_DEC( fired );
			DEBUG_PRINT(" ");
			DEBUG_PRINT(state.now);
			DEBUG_PRINT(" ");
			DEBUG_PRINT(state.fire_time);
			DEBUG_PRINT("] FIRE_TIME [");
			
			// Compute firing time MAX time - (now - firetime)
			
			fire[state.fire_channel].fire_time = fire_time - (state.now - state.fire_time);
			DEBUG_PRINT_DEC( fire[state.fire_channel].fire_time );
			DEBUG_PRINTLN("]");
			DEBUG_PRINTLN("FIRE DONE");	
			
			// Handle next event if set
			
			if( state.in_event )
			{
				// Send off a response
				
				buf[0] = 'R';
				buf[1] = 'P';
				buf[2] = state.fire_channel + 0x30;
				buf[3] = '\0';
				gen_packet( state.control,3,buf,&(state.response[0]));
				set_response(BCAST_ADDRESS);		// Send BCAST to stagger return
				DEBUG_PRINT("EVENT RESP [");
				DEBUG_PRINT(state.response);
				DEBUG_PRINTLN("]");
				
				// Move to next
				next_event();
			}
		}
	}
}

#if 0
	#pragma mark -
	#pragma mark Handler Routines
#endif

/***********************************************************************
*
*  void arm_action( PACKET *pkt )	- Turn on/off ARM relay
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Arm relay changed state
*
**********************************************************************/

static void arm_action( PACKET *pkt )
{
	char success = 0;
	
	DEBUG_PRINT("ARM Action ");
	DEBUG_PRINTLN(pkt->data);

	if( pkt->data[1] == 'A' )
	{
		// On arm action, flip on ARM relay
		// Start blinking
		
		DEBUG_PRINTLN("ARMED");
		digitalWrite(RELAY,1);
		state.in_blink = 1;
		state.next_blink = state.now;
		state.armed = 1;
		success = 1;
		
		// Check the devices
		
		delay( 100 );			// Wait 100 ms before check
		check_device( fire );
	}
	
	if( pkt->data[1] == 'D' )
	{
		// On Disarm, turn off blink, LED and relay
		
		DEBUG_PRINTLN("DISARMED");
		digitalWrite( RELAY,0);
		digitalWrite( LED,0);
		state.in_blink = 0;
		state.armed = 0;
		success = 1;
	}
		
	// Set response on success
	
	if( success )
	{
		gen_packet( pkt->from,2,"RA",&(state.response[0]));
		set_response(pkt->to);
		
		DEBUG_PRINT("RESPONSE [");
		DEBUG_PRINT(state.response);
		DEBUG_PRINTLN("]");
	}
}

/***********************************************************************
*
*  void fire_action( PACKET *pkt )	- Fire squib
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Fire channel
*
**********************************************************************/

static void fire_action( PACKET *pkt )
{
    int ch;
    
	DEBUG_PRINT("FIRE Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// Must be armed to fire
	
	if( state.armed )
	{
        // If FIRE, check if not fired yet and then
        // if not fire it
        
        ch = pkt->data[1] & 0xf;
        if( ch >= 0 && ch < FIRE_CHANNELS )
        {
            if( fire[ch].fired == 0 )
            {
                fire_op( ch );
                
				 // Set response on success
				gen_packet( pkt->from,2,"RF",&(state.response[0]));
				set_response(pkt->to);
				DEBUG_PRINT("RESPONSE [");
				DEBUG_PRINT(state.response);
				DEBUG_PRINTLN("]");
            }
        }
	}
	else
	{
		DEBUG_PRINTLN("** NOT ARMED **");
	}
}

/***********************************************************************
*
*  void delay_action( PACKET *pkt )	- Delay Fire squib
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Fire channel after delay
*
*	12-Nov-2011 [[a1b444e30a] Allow up to max in packet for delay time
*
**********************************************************************/

static void delay_action( PACKET *pkt )
{
        int i;
        char ch;
        
	DEBUG_PRINT("Delay FIRE Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// (0) Must be armed to work
	
	if( state.armed )
	{

		// (1) Make sure we are not in a delay now, if so just bail
		
		if( state.in_delay == 0 )
		{
			state.delay_channel = 0xf & pkt->data[1];  // Channel
			state.delay_time = 0;
			
			// (2) Form up delay time
			// Allow up to max in packet
			
			for( i=0; i<pkt->len; i++ )
			{
			   ch = pkt->data[2+i];
			   if( ch == '\0')
				 break;
				 
			   // Otherwise add it in
			   
			   state.delay_time = (0xf & ch ) + (10 * state.delay_time);
			}
			
			DEBUG_PRINT("Delay CH ");
			DEBUG_PRINT_DEC( state.delay_channel);
			DEBUG_PRINT(" Delay: ");
			DEBUG_PRINT_DEC(state.delay_time);
			DEBUG_PRINTLN(" ");
			
			// (3) Start delay action
			
			state.in_delay = 1;
	
			// Set response on success
			gen_packet( pkt->from,2,"RD",&(state.response[0]));
			set_response(pkt->to);
			DEBUG_PRINT("RESPONSE [");
			DEBUG_PRINT(state.response);
			DEBUG_PRINTLN("]");
		}
	}
	else
	{
		DEBUG_PRINTLN("** NOT ARMED **");
	}
}

/***********************************************************************
*
*  void pgm_action( PACKET *pkt )	- Store events in queue
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Event stored in queue 
*
*	12-Nov-2011 [[a1b444e30a] Allow up to max in packet for delay time
*
**********************************************************************/

static void pgm_action( PACKET *pkt )
{
	int i;
	char ch;
	char data;
	long ft;
        
	DEBUG_PRINT("PGM EVENT Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// (1) Make sure we are not in a event handling now, if so just bail
	
	if( state.in_event == 0 )
	{
		ch = 0xf & pkt->data[1];  // Channel
		ft = 0;
		
		// (2) Form up delay time
		// Allow up to max in packet
		
		for( i=0; i<pkt->len; i++ )
		{
		   data = pkt->data[2+i];
		   if( data == '\0')
			 break;
			 
		   // Otherwise add it in
		   
		   ft = (0xf & data ) + (10 * ft);
		}
		
		DEBUG_PRINT("Event CH ");
		DEBUG_PRINT_DEC( ch );
		DEBUG_PRINT(" FT: ");
		DEBUG_PRINT_DEC(ft);
		DEBUG_PRINTLN(" ");
		
		// (3) Store in queue if possible
		
		if( store_in_queue( ch,ft ) == 0 )
		{
			gen_packet( pkt->from,2,"RP",&(state.response[0]));
			// Save control address
			state.control = pkt->from;	// store controller
			set_response(pkt->to);
			DEBUG_PRINT("RESPONSE [");
			DEBUG_PRINT(state.response);
			DEBUG_PRINTLN("]");
			
			
			
			
		}
		else
		{
			DEBUG_PRINT("QUEUE FULL");
		}
	}

}

/***********************************************************************
*
*  void status_action( PACKET *pkt )	- Return Status
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Return status
*
*  	16-Jan-2011 [e4208b8f56] Change response format
*	23-Jan-2011	Shorten response don't send NUL
*
**********************************************************************/

static void status_action( PACKET *pkt )
{
    int n,i;
    char data[8];
    
	DEBUG_PRINT("Status Action ");
	DEBUG_PRINTLN(pkt->data);

        // (1) Fill data buffer with STATUS information
        // SR[A/D][Fired][Unfired]
        
        data[0] = 'R';
        data[1] = 'S';
        if( state.armed == 1 )
          data[2] = 'A';
        else
          data[2] = 'D';
          
        // Build the fired bits with 5 on the left and 0 on the right
        
        check_device(fire);			// Get current status
        
        n = 1;
        data[3] = 0x40;
        data[4] = 0x40;
        
        for( i=0; i<FIRE_CHANNELS; i++ )
        {
          if( fire[i].fired )        // Or in fired bit
            data[3] = data[3] | n;
            
          if( fire[i].pres )
            data[4] = data[4] | n;    // Presence bit
            
          n = n << 1;              // Shift to next bit
        }
           
       data[5] = '\0'; 
            

        n = gen_packet( pkt->from,5,data,&(state.response[0]));
        DEBUG_PRINT("Status Packet [");
        DEBUG_PRINT(state.response);
        DEBUG_PRINT(" ] Size ");
        DEBUG_PRINT_DEC(n);
        DEBUG_PRINT(" DATA [");
        DEBUG_PRINT_HEX(data[3]);
        DEBUG_PRINT(" ");
        DEBUG_PRINT_HEX(data[4]);
        DEBUG_PRINTLN("]");
        
        // Set up for response

		set_response( pkt->to );
}

/***********************************************************************
*
*  void sync_action( PACKET *pkt )	- Sync board clock
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Board clock set to 0
*
**********************************************************************/

static void sync_action( PACKET *pkt )
{
	DEBUG_PRINT("Sync Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// Set the current time offset in ms
	
	state.time_offset = millis();
	
	// Correct state times
	
	state.next_blink 	-= state.time_offset;
	state.delay_time 	-= state.time_offset;
	state.fire_time 	-= state.time_offset;
	state.now 			= 0;
	
	DEBUG_PRINT("Time Offset [");
	DEBUG_PRINT_DEC(state.time_offset);
	DEBUG_PRINTLN("]");
	
	// If ZP is sent the start event processing
	
	if( pkt->data[1] == 'P' )
	{
		state.in_event = 1;
		next_event();
		gen_packet( pkt->from,2,"RZP",&(state.response[0]));
	}
	else
		gen_packet( pkt->from,2,"RZ",&(state.response[0]));
	
	// Set response on success
	
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
	set_response(pkt->to);
}

/***********************************************************************
*
*  void version_action( PACKET *pkt )	- Return Board version
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Return version string
*
*	27-Jan-2011	Remove :'s in time string
*
**********************************************************************/

static void version_action( PACKET *pkt )
{
	char *buffer;
	int n;
	int i;
	
	DEBUG_PRINT("Version Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// Fill the buffer with	__DATE__ and __TIME__
	
	buffer = (char *)&buf[0];
	for( i=0; i< STATIC_BUF_SZ; i++ )
		buffer[i] = '\0';
		
	if( test_mode )
	{
		strcat(buffer,"RVX");
	}
	else
	{
		strcat(buffer,"RV");
	}
	strcat(buffer,__DATE__);
	strcat(buffer," ");
	strcat(buffer,__TIME__);
	n = strlen(buffer);
	
	// Remove :'s in the time string
	
	for( i=0; i<n; i++ )
	{
		switch(buffer[i] )
		{
			case ':':	buffer[i] = '-';
						break;
						
			default:	break;
		}
	}
	
	// Set response on success
	gen_packet( pkt->from,n,buffer,&(state.response[0]));
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
	set_response(pkt->to);

}

/***********************************************************************
*
*  void channel_action( PACKET *pkt )	- Return Firing channel data
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Return RC<fired status><Channel A/D value>
*
*	27-Jan-2011	Remove :'s in time string
*
**********************************************************************/

static void channel_action( PACKET *pkt )
{
	int ch;
	int ad;
	char *buffer;
	int psn;
	//int val;
	char *bufp;
	
	// Build response
	
	buffer = (char *)&buf[0];
	
	buffer[0] = 'R';
	buffer[1] = 'C';

	
	//  Input data is C<channel #> extract that and get data
	// if not fire it
	
	ch = pkt->data[1] & 0xf;
	if( ch >= 0 && ch < FIRE_CHANNELS )
	{
		
		if( fire[ch].fired == 1 )
			buffer[2] = 1;		// Fired
		else
			buffer[2] = '0';	//Unfired
			
		// Get A/D value
		
		ad = analogRead( fire[ch].ad );
		
		// A/D value ranges from 0 to 1023
		
		bufp = (char *)&(buffer[3]);
		psn = 3 + num_to_string(ad,4,bufp);	// Convert A/D to 4 char string
	}
	else
	{
		// Failure packet
		
		buffer[2] = '0';
		buffer[3] = '0';
		psn = 4;
	}
		
	// Send
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
	set_response(pkt->to);
}

/***********************************************************************
*
*  void address_action( PACKET *pkt )	- Change board address
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change board address
*
**********************************************************************/

static void address_action( PACKET *pkt )
{
    int address = 0;
    char *buffer;
    int psn;
	char *bufp;
        
	DEBUG_PRINT("Address Action ");
	DEBUG_PRINTLN(pkt->data);
	
	buffer = (char *)&buf[0];
	
	// If length of packet == 1 then just return current address
	
	if( pkt->len > 1 )
	{
		// Get the address as the second and third bytes
		
		address = 0xf & pkt->data[1];
		if( pkt->data[2] != '\0' )
		{
			address = (pkt->data[2] & 0xf) + 10 * address;
		}
		
		if( address >= MIN_ADDRESS && address < MAX_ADDRESS )
		{
			set_address( address );
		}
	}
	
	buffer[0] = 'R';
	buffer[1] = 'W';
	bufp = (char *)&buffer[2];
	psn = 2 + num_to_string(board_address,2,bufp);
	
	// In all cases return current address
		
	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");

}


/***********************************************************************
*
*  void fire_time_action( PACKET *pkt )	- Change board firing time
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change board firing time
*
**********************************************************************/

static void fire_time_action( PACKET *pkt )
{
   	int ft = 0;
   	int i;
    char *buffer;
    int psn;
    char *bufp;
        
	DEBUG_PRINT("Fire Time Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];

	// Only set address if length of packet > 1 
	
	if( pkt->len > 1 )
	{
		// Get the Firing time as the 2nd through 6th bytes
		
		for( i=1; i<5; i++ )
		{
			ft = (0xf & pkt->data[i]) + (10 * ft);
	
		}
		
		set_fire_time( ft );
		fire_time = get_fire_time();
	}

	// Build the return value, put the current time
	// in the return
	
	buffer[0] = 'R';
	buffer[1] = 'T';
	
	bufp = (char *)&(buffer[2]);
	psn = 2 + num_to_string(fire_time,5,bufp);
	
	DEBUG_PRINT("Set Fire Time to [");
	DEBUG_PRINT_DEC(ft);
	DEBUG_PRINT("] EEPROM [");
	DEBUG_PRINT_DEC(i);
	DEBUG_PRINTLN("]");
	
	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
}

/***********************************************************************
*
*  void test_mode_action( PACKET *pkt )	- Change test mode
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change test mode
*			Data = 0	=> test mode off
*				== 1	=> test mode on
*
**********************************************************************/

static void test_mode_action( PACKET *pkt )
{
   	bool tmode = false;
   	bool tmode_value = 0;
    char *buffer;
    int psn;
    char *bufp;

        
	DEBUG_PRINT("Test Mode Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];
	
	// Only set if packet lenght > 1 )
	
	if( pkt->len > 1 )
	{

		// Get Test mode as the data value
		
		if( pkt->data[1] == '1' )
			tmode = true;
		
		
		set_test_mode( tmode );
		tmode_value = get_test_mode();
	}
	
	// Show current value
	
	buffer[0] = 'R';
	buffer[1] = 'M';
	
	bufp = (char *)&(buffer[2]);
	psn = 2 + num_to_string(test_mode,1,bufp);
	
	DEBUG_PRINT("Set Test Mode to [");
	DEBUG_PRINT_DEC(tmode);
	DEBUG_PRINT("] EEPROM [");
	DEBUG_PRINT_DEC(tmode_value);
	DEBUG_PRINTLN("]");

	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
}

/***********************************************************************
*
*  void backoff_time_action( PACKET *pkt )	- Change board msg backoff time
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change board return backoff time
*
**********************************************************************/

static void backoff_time_action( PACKET *pkt )
{
   	int bt = 0;
   	int i = 0;
    char *buffer;
    int psn;
    char *bufp;

        
	DEBUG_PRINT("Backoff Time Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];
	
	// Only set if packet length > 1
	
	if( pkt->len > 1 )
	{
		// Get the address as the 2nd through length
		
		for( i=1; i<pkt->len; i++ )
		{
			bt = (0xf & pkt->data[i]) + (10 * bt);
	
		}
		
		set_backoff_time( bt );
		i = get_backoff_time();
	}
	else
		bt = backoff_time;
	
	// Return result
	
	buffer[0] = 'R';
	buffer[1] = 'B';
	bufp = (char *)&(buffer[2]);
	psn = 2 + num_to_string(backoff_time,-1,bufp);
	
	DEBUG_PRINT("Set Backoff Time to [");
	DEBUG_PRINT_DEC(bt);
	DEBUG_PRINT("] EEPROM [");
	DEBUG_PRINT_DEC(i);
	DEBUG_PRINTLN("]");

	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
}

/***********************************************************************
*
*  void getdata_action( PACKET *pkt )	- Get data from board
*
*	INPUT:  pkt	- Input packet
*					Data contains type of data to return
*					(Ignored for now)
*
*	OUTPUT:	Returns response with data
*
**********************************************************************/

static void getdata_action( PACKET *pkt )
{
   	//int bt = 0;
   	int i;
    char *buffer;
    int psn;
    char *buft;

        
	DEBUG_PRINT("Get Data Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];
	
	// Ignore input data in packet (for now)
	
	// Return result
	
	buffer[0] = 'R';
	buffer[1] = GET_DATA_CMD;
	
	// Now fill buffer with the 6 firing times for this run
	
	psn = 2;						// Start buffer psn
	DEBUG_PRINTLN("FIRE TIMES");
	for( i=0; i<FIRE_CHANNELS; i++ )
	{
		DEBUG_PRINT("CHANNEL [");
		DEBUG_PRINT_DEC(i);
		DEBUG_PRINT("] TIME [");
		DEBUG_PRINT_DEC(fire[i].fire_time);
		DEBUG_PRINT("] PSN [");
		// Store each firng time into buffer
		buft = (char *)&(buffer[psn]);

		psn += num_to_string(fire[i].fire_time,
								1,
								buft);
		if( psn >= 31 )			// Buffer FULL
		{
			buffer[31] = '\0';
			DEBUG_PRINT_DEC(psn);
			DEBUG_PRINT("] BUF[");
			DEBUG_PRINT(buf);
			DEBUG_PRINTLN("]");
			break;
		}	
		DEBUG_PRINT_DEC(psn);
		DEBUG_PRINT("] BUF[");
		DEBUG_PRINT(buf);
		DEBUG_PRINTLN("]");
		buffer[psn++] = ' ';		// Overwrite NUL
	}
	
	buffer[psn] = '\0';				// Terminate buffer
	DEBUG_PRINT("Result [");
	DEBUG_PRINT(buffer);
	DEBUG_PRINTLN("]");

	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");

}

#if 0
	#pragma mark -
	#pragma mark Support Routines
#endif

/***********************************************************************
*
*  void check_device(FIRE_LIST *fl)	- Check for presence of devices on
*									  firing channels
*	INPUT:  fl	- Firing list of devices
*
*	OUTPUT:	NONE
*
**********************************************************************/

static void check_device(FIRE_LIST *fl)
{
	int i;
	int adval;
	
	DEBUG_PRINTLN("CHECK DEVICE Action ");
	DEBUG_PRINTLN("D A/D P F");
	
	// Scan the channels for device present
	
	for( i=0; i<FIRE_CHANNELS; i++ )
	{	
		// If in test mode fake device connected
		if( test_mode == 1 )
		{
			adval = DEVICE_PRESENT + 0x10;	// FAKE the A/D value
		}
		else
		{
			adval = analogRead( fire[i].ad );
		}
		fire[i].ch_ad = adval;		// [230cd6fbad] Save into FIRE_LIST structure
		
		// Set device presence based on A/D value
		// [7cc38ceff4] Update FIRE status
		
		if( adval < DEVICE_PRESENT )
		{
			fire[i].pres = 0;			// Nothing connected
			fire[i].fired = 1;			// Mark as fired
		}
		else
		{
			fire[i].pres = 1;			// Item connected
			fire[i].fired = 0;			// Mark as NOT fired
		}
			
		DEBUG_PRINT_DEC(i);
		DEBUG_PRINT(" ");
		DEBUG_PRINT_HEX(fire[i].ch_ad);
		DEBUG_PRINT(" ");
		DEBUG_PRINT_DEC(fire[i].pres );
		DEBUG_PRINT(" ");
		DEBUG_PRINT_DEC(fire[i].fired );
		DEBUG_PRINTLN("");
	}
}

/***********************************************************************
*
*  void fire_op( int ch )	- Fire operation
*
*	INPUT:  ch	- Channel to be fired
*
*	OUTPUT:	NONE	- Fire state set up
*
*	12-Nov-2011 [a1b444e30a] Added to better support Delay fires
*
**********************************************************************/

void fire_op( int ch )
{
	state.fire_channel = ch;
	state.fire_time = state.now + fire_time;
	state.adaptive_time = state.now;		// Get adaptive firing time
	state.in_fire = 1;
	digitalWrite(fire[ch].fire,1);    // FIRE !!!
}

/***********************************************************************
*
*  void next_event()	- Set up for next event
*
*	INPUT:  NONE	- Use state
*
*	OUTPUT:	Delay firing started and set for next event or terminate
*			event handling
*
**********************************************************************/

void next_event(void)
{
	// Set up for next event 
	if( state.event_next < state.event_count )
	{
		state.in_delay = 1;
		state.delay_time = events[state.event_next].ft;
		state.delay_channel = events[state.event_next].ch;
		DEBUG_PRINT("Entering NEXT event CH [");
		DEBUG_PRINT_DEC(state.delay_channel);
		DEBUG_PRINT("] TIME [");
		DEBUG_PRINT_DEC(state.delay_time);
		DEBUG_PRINT(" NOW [");
		DEBUG_PRINT_DEC(state.now);
		DEBUG_PRINT("] EVENT [");
		DEBUG_PRINT_DEC(state.event_next);
		DEBUG_PRINTLN("]");
		state.event_next++;
	}
	else
	{
		DEBUG_PRINTLN("** END OF EVENTS **");
		state.in_event = 0;
	}
}

/***********************************************************************
*
* 	int store_in_queue( char ch, long ft )	- Store data in firing queue
*
*	INPUT:  ch		- Firing channel
*			long	- Firing time (ms)
*
*	OUTPUT:	0 If inserted, <> 0 if not
*
*	Called in init() and if EERROM version out of date then update
*	eeprom to current values
*
**********************************************************************/

int store_in_queue( char ch, long ft )
{
	int rtnval = -1;	// Set for failure
	int i;
	int qpsn;
	
	DEBUG_PRINT("STORE IN QUEUE CH[");
	DEBUG_PRINT_DEC(ch);
	DEBUG_PRINT("] FT [");
	DEBUG_PRINT_DEC(ft);
	DEBUG_PRINTLN("]");
	
	print_queue();
	
	// (1) Is there room ?
	
	if( state.event_count < FIRE_CHANNELS )
	{
		// (2) Event count 0  special case just inserted it
		
		if( state.event_count == 0 )
		{
			events[state.event_count].ch = ch;
			events[state.event_count].ft = ft;
			state.event_count++;
			rtnval = 0;				// SUCCESS
		}
		else
		{
			// (3) Determine where it fits in queue
			
			for( i=0; i<state.event_count; i++ )
			{
				if( ft <= events[i].ft )
					break;
			}
			
			qpsn = i;
			
			// (4) Two cases
			//	(a) Beyond end of queue, just stick it in
			//	(b) Inside queue, move up queue and stick it in
			
			if( qpsn >= state.event_count )
			{
				// Case (a) stick in new MT slot at end
				
				events[state.event_count].ch = ch;
				events[state.event_count].ft = ft;
				state.event_count++;
				rtnval = 0;				// SUCCESS
				
				DEBUG_PRINTLN("- INSERT AT END -");
				print_queue();
			}
			else
			{
				// Case (b) Move all the items above qpsn up one into MT slot
				// and insert new at qpsn
				
				for( i=state.event_count-1; i>=qpsn; i--)
				{
					events[i+1].ch = events[i].ch;
					events[i+1].ft = events[i].ft;
				}
				events[qpsn].ch = ch;
				events[qpsn].ft = ft;
				
				state.event_count++;
				rtnval = 0;
				
				DEBUG_PRINT("- INSERT AT [");
				DEBUG_PRINT_DEC(qpsn);
				DEBUG_PRINTLN("] -");
				print_queue();
			}
		}
	}
	
	return rtnval;
		
}

/***********************************************************************
*
* 	void print_queue(void)
*
*	INPUT:  NONE
*
*	OUTPUT:	NONE
*
*	Print out current event queue
*
**********************************************************************/

void print_queue(void)
{

#if DEBUG_ON
	int i;

	if( state.event_count == 0 )
	{
		DEBUG_PRINTLN("EVENT QUEUE MT");
	}
	else
	{
		DEBUG_PRINTLN("- EVENT QUEUE - ");
		for( i=0; i<state.event_count; i++ )
		{
			DEBUG_PRINT("Event[");
			DEBUG_PRINT_DEC(i);
			DEBUG_PRINT("] CH[");
			DEBUG_PRINT_DEC(events[i].ch);
			DEBUG_PRINT("] FT [");
			DEBUG_PRINT_DEC(events[i].ft);
			DEBUG_PRINTLN("]");
		}
		DEBUG_PRINTLN("----------------");
	}
#endif
}

#if 0
	#pragma mark -
	#pragma mark EEPROM Support Routines
#endif

/***********************************************************************
*
* 	void check_eeprom()
*
*	INPUT:  NONE
*
*	OUTPUT:	NONE
*
*	Called in init() and if EERROM version out of date then update
*	eeprom to current values
*
**********************************************************************/

static void check_eeprom()
{
	unsigned char verh,verl;
	unsigned int ver;
	
	// Read the eeprom version
	// from EERPROM
	
	verh = EEPROM.read( ROMVER_LCNH );
	verl = EEPROM.read( ROMVER_LCNL );
	ver = (unsigned int)(0xff & verh );
	ver = (ver<<8) + (unsigned int)(0xff & verl);
	
	DEBUG_PRINT("EEPROM VERSION ");
	DEBUG_PRINT_HEX( ver );
	
	// Do we need an update ?
	
	if( ver != ROMVER )
	{
		DEBUG_PRINTLN(" MISMATCH - UPDATE EEPROM");
		
		// Update 	ROM VERSION
		//			FIRE TIME
		//			BACKOFF TIME
		
		ver = ROMVER;
		DEBUG_PRINT("NEW VERSION [");
		DEBUG_PRINT_HEX( ver );
		
		
		verh = 0xff & (ver >> 8);
		verl = 0xff & ver;
		DEBUG_PRINT(" ");
		DEBUG_PRINT_HEX( verh );
		DEBUG_PRINT(" ");
		DEBUG_PRINT_HEX( verl );
		DEBUG_PRINTLN("]");
		
		EEPROM.write(ROMVER_LCNH,verh);
		EEPROM.write(ROMVER_LCNL,verl);
		
		set_fire_time(DEF_FIRE_TIME);
		set_backoff_time( RESP_BACKOFF );
		
		DEBUG_PRINTLN("-- EEROM UPDATED --");	
	}
	else
	{
		DEBUG_PRINTLN(" MATCH USE EEPROM");
	}
}

/***********************************************************************
*
*  int get_test_mode()	- Get test mode value
*
*	INPUT:  NONE
*
*	OUTPUT:	TRUE if in test mode, FALSE if not
*
**********************************************************************/

static bool get_test_mode()
{
	unsigned char tmode,ctmode;
	bool rtnval = false;
	
	// (1) Read tmode and the compliment value
	// from EERPROM
	
	tmode = EEPROM.read( TEST_MODE_LCN );
	ctmode = EEPROM.read( CTEST_MODE_LCN );
	ctmode = 0xff & ~ctmode;
	
	// (2) Is this correct 
	
	if( ctmode == tmode )
	{
		// Yes, return state of tmode
		
		if( tmode > 0 )
			rtnval = true;
	}
	
	
	DEBUG_PRINT("Test Mode [");
	DEBUG_PRINT_DEC(rtnval);
	DEBUG_PRINTLN("]");
	
	return( rtnval );
}
		
/***********************************************************************
*
*  int set_test_mode(bool mode)	- set Test mode
*
*	INPUT:  tmode	- TRUE or FALSE	
*
*	OUTPUT:	NONE
*
**********************************************************************/

		
static void set_test_mode( bool mode )
{
	unsigned char tmode,ctmode;
	
	// (1) Build the tmode and compliment
	
	if( mode )
	{
		tmode = 0xff;
		ctmode = 0;
	}
	else
	{
		tmode = 0;
		ctmode = 0xff;
	}
	
	// (2) Now write them to eerom
	
	EEPROM.write(TEST_MODE_LCN,tmode);
	EEPROM.write(CTEST_MODE_LCN,ctmode);
}

 
/***********************************************************************
*
*  int get_address()	- Get board address
*
*	INPUT:  NONE
*
*	OUTPUT:	Board address, if none set to default address
*
**********************************************************************/

static int get_address()
{
	unsigned char addr,caddr;
	int address;
	
	// (1) Read the address and the compliment value
	// from EERPROM
	
	addr = EEPROM.read( ADDR_LCN );
	caddr = EEPROM.read( CADDR_LCN );
	caddr = 0xff & ~caddr;
	
	// (2) Is this correct 
	
	if( caddr == addr &&
		addr >= ADDR_MIN &&
		addr <= ADDR_MAX)
	{
		address = 0xff & addr;
	}
	else
	{
		// (3) Failure, set to default address
		
		address = set_address( DEF_ADDR );
	}
	
	DEBUG_PRINT("Board Address [");
	DEBUG_PRINT_DEC(address);
	DEBUG_PRINTLN("]");
	
	return( address );
}
		
/***********************************************************************
*
*  int set_address(int address)	- set board address
*
*	INPUT:  address
*
*	OUTPUT:	Board address
*
**********************************************************************/

		
static int set_address( int address )
{
	unsigned char addr,caddr;
	
	// (1) Build the address and compliment
	
	addr = 0x3f & address;
	caddr = 0xff & ~addr;
	
	// (2) Now write them to eerom
	
	EEPROM.write(ADDR_LCN,addr);
	EEPROM.write(CADDR_LCN,caddr);
	
	return( address );
}

/***********************************************************************
*
*  int get_fire_time()	- Get board firing time (in ms)
*
*	INPUT:  NONE
*
*	OUTPUT:	Returns firing time (if none returns default)
*
**********************************************************************/

static int get_fire_time()
{
	unsigned int ft,cft;
	unsigned val;
	
	// (1) Read the address and the compliment value
	// from EERPROM
	
	val = EEPROM.read( FIRE_TIME_MSB );
	ft = val << 8;
	val = 0xff & EEPROM.read( FIRE_TIME_LSB );
	ft = ft | val;
	
	val = EEPROM.read( FIRE_TIME_CMSB );
	cft = val << 8;
	val = 0xff & EEPROM.read( FIRE_TIME_CLSB );
	cft = cft | val;
	cft = ~cft;
	
	// (2) Is this correct 
	
	if( ft != cft )
	{
		// (3) Failure, set to default time
		
		DEBUG_PRINTLN("** DEFAULT FIRE TIME **");
		ft = set_fire_time( DEF_FIRE_TIME );
	}
	
	DEBUG_PRINT("FIRE TIME [");
	DEBUG_PRINT_DEC(ft);
	DEBUG_PRINTLN("]");
	
	return( ft );
}

/***********************************************************************
*
*  int set_fire_time(int firet)	- set board firing time
*
*	INPUT:  ft	- Firing time in ms
*
*	OUTPUT:	Board firing time
*
**********************************************************************/

		
static int set_fire_time( int firet )
{
	unsigned int ft,cft;
	unsigned char part;
	
	// (1) Build the address and compliment
	
	ft = firet;
	cft = ~firet;
	
	// (2) Now write them to eerom
	
	part = ft >> 8;
	EEPROM.write(FIRE_TIME_MSB,part);
	part = 0xff & ft;
	EEPROM.write(FIRE_TIME_LSB,part);

	part = cft >> 8;
	EEPROM.write(FIRE_TIME_CMSB,part);
	part = 0xff & cft;
	EEPROM.write(FIRE_TIME_CLSB,part);
	
	// (3) Read value from EEPROM
	
	ft = get_fire_time();
	
	return( ft );
}

/***********************************************************************
*
*  int get_backoff_time()	- Get board backoff time (in ms)
*
*	INPUT:  NONE
*
*	OUTPUT:	Returns backoff time (if none returns default)
*
**********************************************************************/

static int get_backoff_time()
{
	unsigned int bt,cbt;
	//unsigned val;
	
	// (1) Read the address and the compliment value
	// from EERPROM
	
	bt = EEPROM.read( BACKOFF_TIME_LCN );	
	cbt = EEPROM.read( BACKOFF_TIME_LCNC );
	cbt = 0xff & ~cbt;
	
	// (2) Is this correct 
	
	if( bt != cbt )
	{
		// (3) Failure, set to default time
		
		DEBUG_PRINTLN("** DEFAULT BACKOFF TIME **");
		bt = set_backoff_time( RESP_BACKOFF );
	}
	
	DEBUG_PRINT("BACKOFF TIME [");
	DEBUG_PRINT_DEC(bt);
	DEBUG_PRINTLN("]");
	
	return( bt );
}

/***********************************************************************
*
*  int set_backoff_time(int firet)	- set board backoff time
*
*	INPUT:  bt	- Backoff time in ms (0-255)
*
*	OUTPUT:	Board backoff time
*
**********************************************************************/

		
static int set_backoff_time( int backt )
{
	unsigned int bt,cbt;
	//unsigned char part;
	
	// (1) Build the address and compliment
	
	bt = backt;
	cbt = 0xff & ~backt;
	
	// (2) Now write them to eerom
	
	EEPROM.write(BACKOFF_TIME_LCN,bt);
	EEPROM.write(BACKOFF_TIME_LCNC,cbt);
	
	// (3) Read value from EEPROM
	
	bt = get_backoff_time();
	
	return( bt );
}

#if 0
	#pragma mark -
	#pragma mark PACKET HANDLER
#endif

/***********************************************************************
*
*  void handle_net( char data, PACKET *pkt )
*
*	INPUT: 	data	- Packet character
*			pkt		- Packet data structure
*
*	OUTPUT:		NONE
*
**********************************************************************/

static void handle_net( char data, PACKET *pkt )
{
	
//	DEBUG_PRINT("State: [");
//	DEBUG_PRINT(state_name(pkt->state));
//	DEBUG_PRINTLN("]");

	if( pkt->state == NO_PACKET )
	{
		pkt->len = 0;
		memset(pkt->data,'\0',PHY_DATA_SIZE);
		pkt->state = DATA_PACKET;
	}
	
	// (1) Switch depending on state
	
	switch( pkt->state )
	{
		case NO_PACKET:		if( data == MSG_HDR )
							{
								pkt->len = 0;
								memset(pkt->data,'\0',PHY_DATA_SIZE);
								pkt->state = TO_PACKET_A;
							}
							break;
							
		case TO_PACKET_A:	pkt->to = 10 * (data & 0xf);
							pkt->cksum = data;
							if( pkt->to > MAX_ADDRESS )
								pkt->state = NO_PACKET;
							else
								pkt->state = TO_PACKET_B;
							break;
							
		case TO_PACKET_B:	pkt->to = pkt->to + (data & 0xf);
							if( pkt->to > MAX_ADDRESS )
							{
								pkt->state = NO_PACKET;
							}
							else
							{
								if( pkt->to != BCAST_ADDRESS &&
									pkt->to != board_address )
								{
									pkt->state = NO_PACKET;
								}
								else
								{
									pkt->state = FROM_PACKET_A;
									pkt->cksum += data;
								}
							}
							break;
							
		case FROM_PACKET_A:	pkt->from = 10 * (data & 0xf);
							pkt->cksum += data;
							pkt->state = FROM_PACKET_B;
							break;
							
		case FROM_PACKET_B:	pkt->from = pkt->from + (data & 0xf);
							pkt->cksum += data;
							pkt->state = DATA_PACKET;
							break;
							
		case DATA_PACKET:	if( data == MSG_TRLR )
							{
								pkt->state = RCVED_PACKET;
								pkt->to = 1;
								pkt->from = 30;
							}
							else
							{
								pkt->cksum += data;
								pkt->data[pkt->len++] = data;
							}
							break;
							
		case CKSUM_PACKET_A:	pkt->pcksum = 10 * (data & 0xf);
								pkt->state = CKSUM_PACKET_B;
								break;
								
		case CKSUM_PACKET_B:	pkt->pcksum = pkt->pcksum + (data & 0xf);
								// Now compare modulo 100 cksums
								pkt->pcksum = pkt->pcksum % 100;
								pkt->cksum = pkt->cksum % 100;
								
								// Show packet state
								if( pkt->cksum == pkt->pcksum )
								{
									pkt->state = RCVED_PACKET;
								}
								else
								{
									pkt->state = NO_PACKET;		// FAILURE
									DEBUG_PRINTLN("");
									DEBUG_PRINT("** CKSUM FAIL CK[");
									DEBUG_PRINT_DEC(pkt->pcksum);
									DEBUG_PRINT("] SB[");
									DEBUG_PRINT_DEC(pkt->cksum);
									DEBUG_PRINTLN("}");
								}
									
		case RCVED_PACKET:		// Do nothing here...
								break;
	}
	
}


/***********************************************************************
*
*  int gen_packet(unsigned char to,int len,char *data,char *buf)
*
*	INPUT: 	to		- TO address of packet
*			len		- Length of data
*			data	- Data to be sent
*			buf		- Put packet here
*
*	OUTPUT: # Bytes in generated packet
*
**********************************************************************/

static int gen_packet(unsigned char to, int len, char *data,char *buf )
{
	unsigned char part;
	int psn = 0;
	int cksum;
	int i;
	
	// (1) Put in header character
	
	buf[psn++] = MSG_HDR;
	
	// (2) Put in TO
	
	part = 0x30 + (to/10);
	buf[psn++] = part;
	cksum = part;
	part = 0x30 + (to%10);
	buf[psn++] = part;
	cksum = cksum + part;
	
	// (3) Put in from
	
	part = 0x30 + (board_address/10);
	buf[psn++] = part;
	cksum = cksum + part;
	part = 0x30 + (board_address%10);
	buf[psn++] = part;
	cksum = cksum + part;
	
	// (4) Put in data
	
	for( i=0; i<len; i++)
	{
		buf[psn++] = data[i];
		cksum = cksum + data[i];
	}
	
	// (5) Put in end marker
	
	buf[psn++] = MSG_TRLR;
	
	// (6) Put in checksum
	
	cksum = cksum % CKSUM_MODULO;
	part = 0x30 + (cksum/10);
	buf[psn++] = part;
	part = 0x30 + (cksum%10);
	buf[psn++] = part;
	buf[psn] = '\0';			// Put in END MARKER
	
	return( psn );
}
	
/***********************************************************************
*
*  void set_response( unsigned char to )	- Setup for a response
*
*	INPUT:  to	- Address of original packet
*
*	OUTPUT:	NONE
*			Mark response ready
*			Calculate time to send response, if BCAST hold off time
*
**********************************************************************/

void set_response( unsigned char to )
{
	int wait = 0;
	
	// We are in a response
	
	state.in_resp = 1;		// Do a response
	
	// If broadcast then backoff otherwise just send NOW
	
	if( to == BCAST_ADDRESS )
	{
		wait = (board_address-1) * backoff_time;
		
		DEBUG_PRINT("RESP WAIT [");
		DEBUG_PRINT(wait);
		DEBUG_PRINTLN("]");

		state.resp_time = state.now + wait;
		
		DEBUG_PRINT("NOW RESP TIME [");
		DEBUG_PRINT(state.now);
		DEBUG_PRINT(" ");
		DEBUG_PRINT(state.resp_time);
		DEBUG_PRINTLN("]");
	}
	else
	{
		state.resp_time = state.now;
	}
}

#if 0
	#pragma mark -
	#pragma mark TEST NETWORK ROUTINES
#endif

/***********************************************************************
*
*  int check_net()
*
*	INPUT: 	NONE
*
*	OUTPUT: 1-	NETWORK DATA detected
*
**********************************************************************/

static int check_net()
{
	int ch;
	int rtnval = 0;
	
	// (1) Check for data, if any, eat it
	
	while( Serial.available() > 0 )
	{
		ch = Serial.read();
		rtnval = 1;
	}
	
	return( rtnval );
}

/***********************************************************************
*
*  int get_message(int len,char *buffer)
*
*	INPUT: 	len	- Length of buffer to use	
*            buffer	- Return data here
*
*	OUTPUT:		1 = MSG received
*
**********************************************************************/

static int get_message(int len,char *buffer)
{
	int rtn;
	int i;
	int val;
	
	// (1) Get the message
	
	rtn = get_input("NEWNET MSG: ",len,buffer);
	if( rtn > 0 )
	{
		Serial.print("MESSAGE [");
		for( i=0; i<rtn; i++ )
		{
			val = 0xff & buffer[i];
			Serial.print(val,HEX);
		}
		Serial.print(" ");
		Serial.print(buffer);
		Serial.print("]");
		Serial.print(" LEN: ");
		Serial.println(rtn,DEC);
	}
	
	return( rtn );
}

#define CR	0x0D
#define LF	0x0A
#define BS	0x08
#define DEL	0x7f
//#define SP	0x20
#define BEL	0x07

/***********************************************************************
*
*  int get_input( int len,char *buffer )
*
*	INPUT:  len    - # Characters in buffer	
*                buffer	- Return data here
*
*	OUTPUT:	# characters in return buffer
*
**********************************************************************/

static int get_input(char *prompt,int len, char *buffer )
{
	int psn = 0;
	int ch;
	int flag = 1;
	int rtnval = 0;
        int i;

	// (1) Clear buffer & serial input
	
	for( i=0;i<len; i++ )
	  buffer[i] = '\0';
	 
	while( Serial.available() > 0)
	{
		ch = Serial.read();
	}

	// (2) Output prompt
        
	Serial.write(prompt);
	
	// (3) Loop forever getting input
	// Exit on buffer full
	
	while( flag )
	{
		if( Serial.available() > 0)
		{
			ch = Serial.read();
	
			
			switch( 0xff & ch )
			{
				// We have a line.....
				case  CR:
				case  LF:	// Terminate buffer
							flag = 0;
							rtnval = 1;
							buffer[psn++] = ';';
							buffer[psn] = '\0';
							Serial.write("\r\n");
							break;
				
				
				case '0':	// NUMBER, just put into buffer
				case '1':
				case '2':
				case '3':
				case '4':
				case '5':
				case '6':
				case '7':
				case '8':
				case '9':	buffer[psn] = 0xff & ch;
							psn = psn + 1;
							break;
							
				case BS:	// Handle BS & DEL characters
				case DEL:
							if( psn > 0 )
							{
								// We have data so BS over it and then
								// remove from buffer
								
								Serial.write(BS);
								Serial.write(SP);
								Serial.write(BS);
								
								psn = psn - 1;
							}
							else
							{
								// At start of buffer just send BEL
								
								Serial.write(BEL);
							}
							break;
							
				case ';':	// Put ; in with no change
							buffer[psn] = ch & 0xDF;  // UPPER CASE
							psn = psn + 1;
							break;
							
				default:	// Just put all the letters in
							buffer[psn] = ch & 0xDF;  // UPPER CASE
							psn = psn + 1;
							break;
			}
			// Echo input character
			Serial.write(ch);
			
			// Check here for buffer overrun 
			// bail if so
			if( psn >= len )
				flag = 0;
		}
	}
	
	rtnval = psn;
	return( rtnval );
}

#if 0
	#pragma mark -
	#pragma mark STRING Routines
#endif

/***********************************************************************
*
*  int num_to_string( int val,int min_size,char *buffer)	- Convert 16 bit integer to 
*											  base 10 value
*	INPUT:  val		- Value to convert (- or +)
*			min_size- Minimum size of returned value (i.e. lz here if < min size)
*			buffer	- String returned here (NUL terminated, LZ suppressed)
*
*	OUTPUT:	# Bytes in result (not counting NUL)
*
**********************************************************************/

int num_to_string( int val,int min_size,char *buffer)
{
	bool lz = false;
	int buf_psn = 0;
	int digit;
	int part, divisor;
	
	// Is number negative, make positive
	
	if( val < 0 )
	{
		val = -1 * val;
		buffer[buf_psn++] = '-';	// Negative sign...
	}
		
	// If min_size < 5 then then set to search value
	
	if( min_size <= 5 && min_size > 0)
		min_size = 5 - min_size;
	else
		min_size = 6;		// No min size
		
	// Now convert max value = 0x7FFF -> 32767

	divisor = 10000;
	for( digit = 0; digit<5; digit++)
	{
		// Disable zero suppression when at min size
		// if set
		
		if( digit >= min_size )
			lz = true;				// Remove zero suppression when at min size

		part = val/divisor;
		if( lz || part > 0 )
		{
			buffer[buf_psn++] = 0x30 + part;
			lz = true;				// No more LZ suppress
		}
		val = val - part*divisor;
		divisor = divisor/10;
	}
	
	// Put in trailing NULL and return size
	
	buffer[buf_psn] = '\0';
	return buf_psn;
}
		

#if 0
	#pragma mark -
	#pragma DEBUG SUPPORT
#endif


/***********************************************************************
*
*  char *state_name( int state )	- Return state name
*
*	INPUT:  state	State #
*
*	OUTPUT:	String with state name
*
**********************************************************************/

char *state_name( int state )
{
	char *rtnval = "UNKNOWN";

#if DEBUG_ON

	switch( state )
	{
		case NO_PACKET:		rtnval = "NO_PACKET";
							break;
						
		case TO_PACKET_A:	rtnval = "TO_PACKET_A";
							break;

		case TO_PACKET_B:	rtnval = "TO_PACKET_B";
							break;
							
		case FROM_PACKET_A:	rtnval = "FROM_PACKET_A";
							break;
							
		case FROM_PACKET_B:	rtnval = "FROM_PACKET_B";
							break;
							
		case DATA_PACKET:	rtnval = "DATA_PACKET";
							break;
							
		case CKSUM_PACKET_A:	rtnval = "CKSUM_PACKET_A";
							break;
							
		case CKSUM_PACKET_B:	rtnval = "CKSUM_PACKET_B";
							break;
	
		case RCVED_PACKET:	rtnval = "RCVED_PACKET";
							break;
	}
#endif
	
	return rtnval;
}
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<




































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Added Arduino/diag/fireDiag/Firediag/Firediag.ino.



































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
//**********************************************************************
/*
  Firenet FireDiag program
  
  This program is used to to test the firing circuit
  It can:
  	(a) Enable/Disable ARM relay
  	(b) Fire a channel
  	(c) Set firing parameters 
  
  28-Oct-2012	Initial version
   1-Nov-2012   Change firing loop to only check for firing when
   				a/d is set [83c43c7cd5]
*/
//**********************************************************************/

#include "EEPROM.h"
#include "debug.h"
#include "newnet.h"
#include "eerom.h"

#if 0
	#pragma mark -
	#pragma mark Global Data
#endif

// MODULE GLOBAL VARIABLES

FIRE_LIST fire[FIRE_CHANNELS];
EVENT_QUEUE events[FIRE_CHANNELS];
int board_address;            	// Board address value
PACKET p;						// Received packet
NODE_STATE state;
int fire_time;
bool test_mode;
int backoff_time;
#define STATIC_BUF_SZ	40
char buf[STATIC_BUF_SZ];		// General buffer for use in routines
					// Clear or don't expect constant data when using

#if 0
	#pragma mark -
	#pragma mark Arudino Routines
#endif

void setup();
void loop();

#if 0
	#pragma mark -
	#pragma mark Support routines
#endif

// **** Message Handling ****
static int check_net(void);
static void handle_net( char data, PACKET *pkt );
static int gen_packet(unsigned char to, int len, char *data,char *buf );
void set_response( unsigned char to );


// ***** TESTING CODE ***
static int get_message(int len,char *buffer);
static int get_input( char *prompt,int len,char *buffer );
char *state_name( int state );

// ***** Firing Channel code *****
//static void check_fire(FIRE_LIST *fl);
static void check_device(FIRE_LIST *fl);
void fire_op( int ch );
void next_event(void);
int store_in_queue( char ch,long ft );
void print_queue(void);

#if 0
	#pragma mark -
	#pragma mark Handler Routines
#endif

static void arm_action( PACKET *pkt );
static void fire_action( PACKET *pkt );
static void delay_action( PACKET *pkt );
static void pgm_action( PACKET *pkt );
static void status_action( PACKET *pkt );
static void sync_action( PACKET *pkt );
static void version_action( PACKET *pkt );
static void channel_action( PACKET *pkt );

static void address_action(PACKET *pkt );
static void fire_time_action(PACKET *pkt );
static void test_mode_action(PACKET *pkt );
static void backoff_time_action( PACKET *pkt );

static void getdata_action( PACKET *pkt );

// EEPROM  functions

//static void check_eerom();
static int get_address();
static int set_address( int addr );
static int get_fire_time();
static int set_fire_time( int addr );
static bool get_test_mode();
static void set_test_mode( bool addr );
static int get_backoff_time();
static int set_backoff_time( int bt );

#if 0
	#pragma mark -
	#pragma mark Main Routines
#endif

/***********************************************************************
*
*  void setup()		- Startup routine - CALL ONCE
*
*	INPUT:	NONE
*
*	OUTPUT:	NONE
*
*  16-May-2010  Add in ADDRESS setup
*
**********************************************************************/

void setup() 
{
    int i;
    //unsigned char addr,caddr;
    
  // Open the serial port at 38400 bps:
  
  Serial.begin(38400);
  DEBUG_PRINT("\r\nFiring Test PGM V[ ");
  DEBUG_PRINT(__DATE__);
  DEBUG_PRINT(" ");
  DEBUG_PRINT(__TIME__);
  DEBUG_PRINTLN("]");
  //DEBUG_PRINTLN("-- USE FIRNET PACKET --");
  
  // Check EEPROM
  
  check_eeprom();
  
  // Build the channel list
  
  fire[0].fire = FIRE0;
  fire[0].ad   = FIRE0_AD;
  fire[1].fire = FIRE1;
  fire[1].ad   = FIRE1_AD;
  fire[2].fire = FIRE2;
  fire[2].ad   = FIRE2_AD;
  fire[3].fire = FIRE3;
  fire[3].ad   = FIRE3_AD;
  fire[4].fire = FIRE4;
  fire[4].ad   = FIRE4_AD;
  fire[5].fire = FIRE5;
  fire[5].ad   = FIRE5_AD;
  
  // Get board address, fire time & test mode
  
  board_address = get_address();
  fire_time = get_fire_time();
  test_mode = get_test_mode();
  backoff_time = get_backoff_time();
  //backoff_time = RESP_BACKOFF;
  
  DEBUG_PRINTLN("-------------------------------------------------------------------");
  DEBUG_PRINT("SETTINGS ADDR [");
  DEBUG_PRINT_DEC(board_address);
  DEBUG_PRINT("] FIRE Time [");
  DEBUG_PRINT_DEC(fire_time);
  DEBUG_PRINT("] TEST Mode [");
  DEBUG_PRINT_DEC(test_mode);
  DEBUG_PRINT("] Backoff Time [");
  DEBUG_PRINT_DEC(backoff_time);
  DEBUG_PRINTLN("]");
  DEBUG_PRINTLN("-------------------------------------------------------------------");

  // Set the channel directions & Read A/D & event queue
  
  state.in_event = 0;
  state.event_count = 0;
  state.event_next = 0;
  
  for( i=0; i<FIRE_CHANNELS; i++ )
  {
	digitalWrite(fire[i].fire,0);
	pinMode(fire[i].fire,OUTPUT);
	
	// Set for nothing connected an non-fired
	
	fire[i].pres = 0;
	fire[i].fired = 0;          // Not fired yet
	fire[i].ch_ad = 0;			// [230cd6fbad] no A/D value yet
	
  }

  digitalWrite(RELAY,0);
  pinMode(RELAY,OUTPUT);
  digitalWrite(LED,0);
  pinMode(LED,OUTPUT);
  digitalWrite(TX_CNTL,0);
  pinMode(TX_CNTL,OUTPUT);
    
  // Set up globals
  
  memset(&p,'\0',sizeof(PACKET));
  memset(&state,'\0',sizeof(NODE_STATE));
  p.state = NO_PACKET;
  
}

/***********************************************************************
*
*  void loop()		- Main action routine - CALL continuously
*
*	INPUT:	NONE
*
*	OUTPUT:	NONE
*
**********************************************************************/

void loop()
{
    int n;
    int buf_psn = 0;
    long now;
    char val;
    int len;
    //char ch;
    int fired = 0;
    bool fire_check = false;	// [83c43c7cd5]

#if 0
	#pragma mark -
	#pragma mark LOOP PKT PROCESS
#endif

	if( Serial.available() > 0 )
	{
#ifdef FAKE_NETWORK
		// ************** TESTING CODE FOR MANUAL ENTERING OF PACKETS
		if( len = get_message(40,buf) )
		{
			Serial.print(" MSG: [");
			Serial.print(buf);
			Serial.println("]");
            Serial.println("");
            check_net();      // Tidy up
            
			// Reset after handling packet
			
			buf_psn = 0;
			p.state = NO_PACKET;
		 }
		 
		 // Process received data
		 // Normally this would be 1 character at a time
		 // but in this case we have a buffer (buf) which
		 // is filled with characters up to a NUL
		 
		 while( buf_psn <= len )
		 {
		 	handle_net( buf[buf_psn++], &p );
		 }
		 // *******************************************************
#else
		// ********************************* STD CHARACTER HANDLER
		while( Serial.available() > 0 )
		{
			ch = Serial.read();
			handle_net(ch,&p );
			
			if( p.state == RCVED_PACKET )
				break;
		}
		// *******************************************************
#endif
		 // If packet found then handle
		 
		 if( p.state == RCVED_PACKET )
		 {
		 	DEBUG_PRINT("** PACKET REC LEN: ");
		 	DEBUG_PRINT_DEC(p.len);
		 	DEBUG_PRINT(" DATA ");
		 	//DEBUG_PRINTLN(p.data);
		 				
			// Switch on packet type and handle
			
			switch( p.data[0] )
			{
				case ARM_CMD:	arm_action( &p );
								break;			

				case FIRE_CMD:	fire_action( &p );
								break;
								
				case DLY_CMD:	delay_action( &p );
								break;
								
				case PGM_CMD:	pgm_action( &p );
								break;
								
				case STATUS_CMD:status_action( &p );
								break;
								
				case SYNC_CMD:	sync_action( &p );
								break;
								
				case VER_CMD:	version_action( &p );
								break;
								
				case CH_CMD:	channel_action( &p );
								break;

				case SET_AD_CMD:address_action( &p );
								break;	
								
				case SET_FT_CMD:fire_time_action( &p );
								break;
								
				case SET_TM_CMD:test_mode_action( &p );
								break;
								
				case BKOFF_CMD:	backoff_time_action( &p );
								break;
								
				case GET_DATA_CMD:	getdata_action( &p );
								break;
								
				default:	Serial.println("** Unknown Command **");
							break;
			}
			
			// Finished with packet
			
			p.state = NO_PACKET;
		 }
	}
	
#if 0
	#pragma mark -
	#pragma mark LOOP MSG RESPONSE
#endif
	
	// Handle message responses after firing
	
	if( state.in_resp && !state.in_fire)
	{
		if( state.now >= state.resp_time )
		{
			digitalWrite(TX_CNTL,1);		// Enable TX
			delay(1);			// Delay to enable XMIT
			
			Serial.println(state.response);	// Send the response
			state.in_resp = 0;				// Clear response
			
			len = strlen(state.response);
			if( len > 15 )
			{
				// Add extra delay [7bcdf98e54]
				delay(DEF_TXEN_DLY);			// Hold enable while XMIT
			}
			delay(DEF_TXEN_DLY);			// Hold enable while XMIT
			digitalWrite(TX_CNTL,0);
		}
	}

#if 0
	#pragma mark -
	#pragma mark LOOP BLINK
#endif
	
	// Process state
	// Get current time in ms and check for what to do
	
	now = millis();							// Handle blink
	state.now = now - state.time_offset;	// Node time, corrected for sync offset
	if( state.in_blink )
	{
		if( now >= state.next_blink )
		{
			state.next_blink += BLINK_TIME;
			val = digitalRead( LED );
			val = val ^ 0x1;
			digitalWrite(LED,val);
		}
	}

#if 0
	#pragma mark -
	#pragma mark LOOP FIRE DELAY
#endif
	
	if( state.in_delay )					// Handle delay
	{
		if( state.now >= state.delay_time )
		{
		
			DEBUG_PRINT("DELAY HIT NOW [");
			DEBUG_PRINT_DEC(state.now);
			DEBUG_PRINT("] DT [");
			DEBUG_PRINT_DEC(state.delay_time);
			DEBUG_PRINT("] OFFSET [");
			DEBUG_PRINT_DEC(state.time_offset);
			DEBUG_PRINTLN("]");
			
			// Exit delay and go to fire
			
			state.in_delay = 0;
			// [a1b444e30a] Added to better support Delay fires
			fire_op( state.delay_channel );
			//-------------------------------------------------
			DEBUG_PRINT("DELAY FIRE [");
			DEBUG_PRINT_DEC( state.fire_channel);
			DEBUG_PRINTLN("]");
		}
	}

#if 0
	#pragma mark -
	#pragma mark LOOP FIRE
#endif
	
	if( state.in_fire )					// Check for firing done
	{
		// [9e81c1a523] Adaptive - See if it's fired already		
		// Read out the A/D on that channel & set fired status
		// fake it on test mode (show as fired)
		
		if( test_mode )
		{
		
			fire[state.fire_channel].pres = 0;		// Assume fired
			fire[state.fire_channel].ch_ad = DEVICE_PRESENT + 0x10;
			fire_check = true;		// [83c43c7cd5]
		}
		else
		{
			// Time to check
			
			n = (int) state.now - state.adaptive_time;
			if( n > FIRE_CHECK_TIME )
			{
				digitalWrite( fire[state.fire_channel].fire,0);		// Disable fire
				delay( FIRE_CHECK_WAIT);							// Wait
				fire[state.fire_channel].ch_ad = 					// Measure presence
				analogRead( fire[state.fire_channel].ad );
				
				DEBUG_PRINT("ADAPT A/D[");
				DEBUG_PRINT_HEX(fire[state.fire_channel].ch_ad);
				DEBUG_PRINTLN("]");
				
				state.adaptive_time = state.now;					// Reset time
				digitalWrite( fire[state.fire_channel].fire,1);		// Enable fire
				fire_check = true;		// [83c43c7cd5]
			}
		}
		
		// Now check for fired status, save the current time
		// for later analysis
		
		fire[state.fire_channel].fire_time = state.now;	// Save fire time
		if( fire_check )		// [83c43c7cd5]
		{
			if( fire[state.fire_channel].ch_ad < DEVICE_PRESENT )
			{
				fired = 1;									// Mark as fired
				fire[state.fire_channel].fired = 1;			// Mark as fired
				fire[state.fire_channel].pres = 0;			// Nothing connected
				DEBUG_PRINT("FIRE EARLY STOP [");
				DEBUG_PRINT_HEX(fire[state.fire_channel].pres);
				DEBUG_PRINTLN("]");
			}
			else
			{
				fired = 0;									// Mark as not fired
				fire[state.fire_channel].pres = 1;			// Item as connected
			}
			fire_check = false;
		}
		
		// If fired tidy up

		if( (fired == 1) || (state.now >= state.fire_time) )
		{
			state.in_fire = 0;
			digitalWrite( fire[state.fire_channel].fire,0);
			
			DEBUG_PRINT("FIRED NOW FIRE_DATA [");
			DEBUG_PRINT_DEC( fired );
			DEBUG_PRINT(" ");
			DEBUG_PRINT(state.now);
			DEBUG_PRINT(" ");
			DEBUG_PRINT(state.fire_time);
			DEBUG_PRINT("] FIRE_TIME [");
			
			// Compute firing time MAX time - (now - firetime)
			
			fire[state.fire_channel].fire_time = fire_time - (state.now - state.fire_time);
			DEBUG_PRINT_DEC( fire[state.fire_channel].fire_time );
			DEBUG_PRINTLN("]");
			DEBUG_PRINTLN("FIRE DONE");	
			
			// Handle next event if set
			
			if( state.in_event )
			{
				// Send off a response
				
				buf[0] = 'R';
				buf[1] = 'P';
				buf[2] = state.fire_channel + 0x30;
				buf[3] = '\0';
				gen_packet( state.control,3,buf,&(state.response[0]));
				set_response(BCAST_ADDRESS);		// Send BCAST to stagger return
				DEBUG_PRINT("EVENT RESP [");
				DEBUG_PRINT(state.response);
				DEBUG_PRINTLN("]");
				
				// Move to next
				next_event();
			}
		}
	}
}

#if 0
	#pragma mark -
	#pragma mark Handler Routines
#endif

/***********************************************************************
*
*  void arm_action( PACKET *pkt )	- Turn on/off ARM relay
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Arm relay changed state
*
**********************************************************************/

static void arm_action( PACKET *pkt )
{
	char success = 0;
	
	DEBUG_PRINT("ARM Action ");
	DEBUG_PRINTLN(pkt->data);

	if( pkt->data[1] == 'A' )
	{
		// On arm action, flip on ARM relay
		// Start blinking
		
		DEBUG_PRINTLN("ARMED");
		digitalWrite(RELAY,1);
		state.in_blink = 1;
		state.next_blink = state.now;
		state.armed = 1;
		success = 1;
		
		// Check the devices
		
		delay( 100 );			// Wait 100 ms before check
		check_device( fire );
	}
	
	if( pkt->data[1] == 'D' )
	{
		// On Disarm, turn off blink, LED and relay
		
		DEBUG_PRINTLN("DISARMED");
		digitalWrite( RELAY,0);
		digitalWrite( LED,0);
		state.in_blink = 0;
		state.armed = 0;
		success = 1;
	}
		
	// Set response on success
	
	if( success )
	{
		gen_packet( pkt->from,2,"RA",&(state.response[0]));
		set_response(pkt->to);
		
		DEBUG_PRINT("RESPONSE [");
		DEBUG_PRINT(state.response);
		DEBUG_PRINTLN("]");
	}
}

/***********************************************************************
*
*  void fire_action( PACKET *pkt )	- Fire squib
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Fire channel
*
**********************************************************************/

static void fire_action( PACKET *pkt )
{
    int ch;
    
	DEBUG_PRINT("FIRE Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// Must be armed to fire
	
	if( state.armed )
	{
        // If FIRE, check if not fired yet and then
        // if not fire it
        
        ch = pkt->data[1] & 0xf;
        if( ch >= 0 && ch < FIRE_CHANNELS )
        {
            if( fire[ch].fired == 0 )
            {
                fire_op( ch );
                
				 // Set response on success
				gen_packet( pkt->from,2,"RF",&(state.response[0]));
				set_response(pkt->to);
				DEBUG_PRINT("RESPONSE [");
				DEBUG_PRINT(state.response);
				DEBUG_PRINTLN("]");
            }
        }
	}
	else
	{
		DEBUG_PRINTLN("** NOT ARMED **");
	}
}

/***********************************************************************
*
*  void delay_action( PACKET *pkt )	- Delay Fire squib
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Fire channel after delay
*
*	12-Nov-2011 [[a1b444e30a] Allow up to max in packet for delay time
*
**********************************************************************/

static void delay_action( PACKET *pkt )
{
        int i;
        char ch;
        
	DEBUG_PRINT("Delay FIRE Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// (0) Must be armed to work
	
	if( state.armed )
	{

		// (1) Make sure we are not in a delay now, if so just bail
		
		if( state.in_delay == 0 )
		{
			state.delay_channel = 0xf & pkt->data[1];  // Channel
			state.delay_time = 0;
			
			// (2) Form up delay time
			// Allow up to max in packet
			
			for( i=0; i<pkt->len; i++ )
			{
			   ch = pkt->data[2+i];
			   if( ch == '\0')
				 break;
				 
			   // Otherwise add it in
			   
			   state.delay_time = (0xf & ch ) + (10 * state.delay_time);
			}
			
			DEBUG_PRINT("Delay CH ");
			DEBUG_PRINT_DEC( state.delay_channel);
			DEBUG_PRINT(" Delay: ");
			DEBUG_PRINT_DEC(state.delay_time);
			DEBUG_PRINTLN(" ");
			
			// (3) Start delay action
			
			state.in_delay = 1;
	
			// Set response on success
			gen_packet( pkt->from,2,"RD",&(state.response[0]));
			set_response(pkt->to);
			DEBUG_PRINT("RESPONSE [");
			DEBUG_PRINT(state.response);
			DEBUG_PRINTLN("]");
		}
	}
	else
	{
		DEBUG_PRINTLN("** NOT ARMED **");
	}
}

/***********************************************************************
*
*  void pgm_action( PACKET *pkt )	- Store events in queue
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Event stored in queue 
*
*	12-Nov-2011 [[a1b444e30a] Allow up to max in packet for delay time
*
**********************************************************************/

static void pgm_action( PACKET *pkt )
{
	int i;
	char ch;
	char data;
	long ft;
        
	DEBUG_PRINT("PGM EVENT Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// (1) Make sure we are not in a event handling now, if so just bail
	
	if( state.in_event == 0 )
	{
		ch = 0xf & pkt->data[1];  // Channel
		ft = 0;
		
		// (2) Form up delay time
		// Allow up to max in packet
		
		for( i=0; i<pkt->len; i++ )
		{
		   data = pkt->data[2+i];
		   if( data == '\0')
			 break;
			 
		   // Otherwise add it in
		   
		   ft = (0xf & data ) + (10 * ft);
		}
		
		DEBUG_PRINT("Event CH ");
		DEBUG_PRINT_DEC( ch );
		DEBUG_PRINT(" FT: ");
		DEBUG_PRINT_DEC(ft);
		DEBUG_PRINTLN(" ");
		
		// (3) Store in queue if possible
		
		if( store_in_queue( ch,ft ) == 0 )
		{
			gen_packet( pkt->from,2,"RP",&(state.response[0]));
			// Save control address
			state.control = pkt->from;	// store controller
			set_response(pkt->to);
			DEBUG_PRINT("RESPONSE [");
			DEBUG_PRINT(state.response);
			DEBUG_PRINTLN("]");
			
			
			
			
		}
		else
		{
			DEBUG_PRINT("QUEUE FULL");
		}
	}

}

/***********************************************************************
*
*  void status_action( PACKET *pkt )	- Return Status
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Return status
*
*  	16-Jan-2011 [e4208b8f56] Change response format
*	23-Jan-2011	Shorten response don't send NUL
*
**********************************************************************/

static void status_action( PACKET *pkt )
{
    int n,i;
    char data[8];
    
	DEBUG_PRINT("Status Action ");
	DEBUG_PRINTLN(pkt->data);

        // (1) Fill data buffer with STATUS information
        // SR[A/D][Fired][Unfired]
        
        data[0] = 'R';
        data[1] = 'S';
        if( state.armed == 1 )
          data[2] = 'A';
        else
          data[2] = 'D';
          
        // Build the fired bits with 5 on the left and 0 on the right
        
        check_device(fire);			// Get current status
        
        n = 1;
        data[3] = 0x40;
        data[4] = 0x40;
        
        for( i=0; i<FIRE_CHANNELS; i++ )
        {
          if( fire[i].fired )        // Or in fired bit
            data[3] = data[3] | n;
            
          if( fire[i].pres )
            data[4] = data[4] | n;    // Presence bit
            
          n = n << 1;              // Shift to next bit
        }
           
       data[5] = '\0'; 
            

        n = gen_packet( pkt->from,5,data,&(state.response[0]));
        DEBUG_PRINT("Status Packet [");
        DEBUG_PRINT(state.response);
        DEBUG_PRINT(" ] Size ");
        DEBUG_PRINT_DEC(n);
        DEBUG_PRINT(" DATA [");
        DEBUG_PRINT_HEX(data[3]);
        DEBUG_PRINT(" ");
        DEBUG_PRINT_HEX(data[4]);
        DEBUG_PRINTLN("]");
        
        // Set up for response

		set_response( pkt->to );
}

/***********************************************************************
*
*  void sync_action( PACKET *pkt )	- Sync board clock
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Board clock set to 0
*
**********************************************************************/

static void sync_action( PACKET *pkt )
{
	DEBUG_PRINT("Sync Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// Set the current time offset in ms
	
	state.time_offset = millis();
	
	// Correct state times
	
	state.next_blink 	-= state.time_offset;
	state.delay_time 	-= state.time_offset;
	state.fire_time 	-= state.time_offset;
	state.now 			= 0;
	
	DEBUG_PRINT("Time Offset [");
	DEBUG_PRINT_DEC(state.time_offset);
	DEBUG_PRINTLN("]");
	
	// If ZP is sent the start event processing
	
	if( pkt->data[1] == 'P' )
	{
		state.in_event = 1;
		next_event();
		gen_packet( pkt->from,2,"RZP",&(state.response[0]));
	}
	else
		gen_packet( pkt->from,2,"RZ",&(state.response[0]));
	
	// Set response on success
	
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
	set_response(pkt->to);
}

/***********************************************************************
*
*  void version_action( PACKET *pkt )	- Return Board version
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Return version string
*
*	27-Jan-2011	Remove :'s in time string
*
**********************************************************************/

static void version_action( PACKET *pkt )
{
	char *buffer;
	int n;
	int i;
	
	DEBUG_PRINT("Version Action ");
	DEBUG_PRINTLN(pkt->data);
	
	// Fill the buffer with	__DATE__ and __TIME__
	
	buffer = (char *)&buf[0];
	for( i=0; i< STATIC_BUF_SZ; i++ )
		buffer[i] = '\0';
		
	if( test_mode )
	{
		strcat(buffer,"RVX");
	}
	else
	{
		strcat(buffer,"RV");
	}
	strcat(buffer,__DATE__);
	strcat(buffer," ");
	strcat(buffer,__TIME__);
	n = strlen(buffer);
	
	// Remove :'s in the time string
	
	for( i=0; i<n; i++ )
	{
		switch(buffer[i] )
		{
			case ':':	buffer[i] = '-';
						break;
						
			default:	break;
		}
	}
	
	// Set response on success
	gen_packet( pkt->from,n,buffer,&(state.response[0]));
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
	set_response(pkt->to);

}

/***********************************************************************
*
*  void channel_action( PACKET *pkt )	- Return Firing channel data
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Return RC<fired status><Channel A/D value>
*
*	27-Jan-2011	Remove :'s in time string
*
**********************************************************************/

static void channel_action( PACKET *pkt )
{
	int ch;
	int ad;
	char *buffer;
	int psn;
	//int val;
	char *bufp;
	
	// Build response
	
	buffer = (char *)&buf[0];
	
	buffer[0] = 'R';
	buffer[1] = 'C';

	
	//  Input data is C<channel #> extract that and get data
	// if not fire it
	
	ch = pkt->data[1] & 0xf;
	if( ch >= 0 && ch < FIRE_CHANNELS )
	{
		
		if( fire[ch].fired == 1 )
			buffer[2] = 1;		// Fired
		else
			buffer[2] = '0';	//Unfired
			
		// Get A/D value
		
		ad = analogRead( fire[ch].ad );
		
		// A/D value ranges from 0 to 1023
		
		bufp = (char *)&(buffer[3]);
		psn = 3 + num_to_string(ad,4,bufp);	// Convert A/D to 4 char string
	}
	else
	{
		// Failure packet
		
		buffer[2] = '0';
		buffer[3] = '0';
		psn = 4;
	}
		
	// Send
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
	set_response(pkt->to);
}

/***********************************************************************
*
*  void address_action( PACKET *pkt )	- Change board address
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change board address
*
**********************************************************************/

static void address_action( PACKET *pkt )
{
    int address = 0;
    char *buffer;
    int psn;
	char *bufp;
        
	DEBUG_PRINT("Address Action ");
	DEBUG_PRINTLN(pkt->data);
	
	buffer = (char *)&buf[0];
	
	// If length of packet == 1 then just return current address
	
	if( pkt->len > 1 )
	{
		// Get the address as the second and third bytes
		
		address = 0xf & pkt->data[1];
		if( pkt->data[2] != '\0' )
		{
			address = (pkt->data[2] & 0xf) + 10 * address;
		}
		
		if( address >= MIN_ADDRESS && address < MAX_ADDRESS )
		{
			set_address( address );
		}
	}
	
	buffer[0] = 'R';
	buffer[1] = 'W';
	bufp = (char *)&buffer[2];
	psn = 2 + num_to_string(board_address,2,bufp);
	
	// In all cases return current address
		
	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");

}


/***********************************************************************
*
*  void fire_time_action( PACKET *pkt )	- Change board firing time
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change board firing time
*
**********************************************************************/

static void fire_time_action( PACKET *pkt )
{
   	int ft = 0;
   	int i;
    char *buffer;
    int psn;
    char *bufp;
        
	DEBUG_PRINT("Fire Time Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];

	// Only set address if length of packet > 1 
	
	if( pkt->len > 1 )
	{
		// Get the Firing time as the 2nd through 6th bytes
		
		for( i=1; i<5; i++ )
		{
			ft = (0xf & pkt->data[i]) + (10 * ft);
	
		}
		
		set_fire_time( ft );
		fire_time = get_fire_time();
	}

	// Build the return value, put the current time
	// in the return
	
	buffer[0] = 'R';
	buffer[1] = 'T';
	
	bufp = (char *)&(buffer[2]);
	psn = 2 + num_to_string(fire_time,5,bufp);
	
	DEBUG_PRINT("Set Fire Time to [");
	DEBUG_PRINT_DEC(ft);
	DEBUG_PRINT("] EEPROM [");
	DEBUG_PRINT_DEC(i);
	DEBUG_PRINTLN("]");
	
	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
}

/***********************************************************************
*
*  void test_mode_action( PACKET *pkt )	- Change test mode
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change test mode
*			Data = 0	=> test mode off
*				== 1	=> test mode on
*
**********************************************************************/

static void test_mode_action( PACKET *pkt )
{
   	bool tmode = false;
   	bool tmode_value = 0;
    char *buffer;
    int psn;
    char *bufp;

        
	DEBUG_PRINT("Test Mode Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];
	
	// Only set if packet lenght > 1 )
	
	if( pkt->len > 1 )
	{

		// Get Test mode as the data value
		
		if( pkt->data[1] == '1' )
			tmode = true;
		
		
		set_test_mode( tmode );
		tmode_value = get_test_mode();
	}
	
	// Show current value
	
	buffer[0] = 'R';
	buffer[1] = 'M';
	
	bufp = (char *)&(buffer[2]);
	psn = 2 + num_to_string(test_mode,1,bufp);
	
	DEBUG_PRINT("Set Test Mode to [");
	DEBUG_PRINT_DEC(tmode);
	DEBUG_PRINT("] EEPROM [");
	DEBUG_PRINT_DEC(tmode_value);
	DEBUG_PRINTLN("]");

	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
}

/***********************************************************************
*
*  void backoff_time_action( PACKET *pkt )	- Change board msg backoff time
*
*	INPUT:  pkt	- Input packet
*
*	OUTPUT:	Change board return backoff time
*
**********************************************************************/

static void backoff_time_action( PACKET *pkt )
{
   	int bt = 0;
   	int i = 0;
    char *buffer;
    int psn;
    char *bufp;

        
	DEBUG_PRINT("Backoff Time Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];
	
	// Only set if packet length > 1
	
	if( pkt->len > 1 )
	{
		// Get the address as the 2nd through length
		
		for( i=1; i<pkt->len; i++ )
		{
			bt = (0xf & pkt->data[i]) + (10 * bt);
	
		}
		
		set_backoff_time( bt );
		i = get_backoff_time();
	}
	else
		bt = backoff_time;
	
	// Return result
	
	buffer[0] = 'R';
	buffer[1] = 'B';
	bufp = (char *)&(buffer[2]);
	psn = 2 + num_to_string(backoff_time,-1,bufp);
	
	DEBUG_PRINT("Set Backoff Time to [");
	DEBUG_PRINT_DEC(bt);
	DEBUG_PRINT("] EEPROM [");
	DEBUG_PRINT_DEC(i);
	DEBUG_PRINTLN("]");

	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");
}

/***********************************************************************
*
*  void getdata_action( PACKET *pkt )	- Get data from board
*
*	INPUT:  pkt	- Input packet
*					Data contains type of data to return
*					(Ignored for now)
*
*	OUTPUT:	Returns response with data
*
**********************************************************************/

static void getdata_action( PACKET *pkt )
{
   	//int bt = 0;
   	int i;
    char *buffer;
    int psn;
    char *buft;

        
	DEBUG_PRINT("Get Data Action ");
	DEBUG_PRINTLN(pkt->data);
	buffer = (char *)&buf[0];
	
	// Ignore input data in packet (for now)
	
	// Return result
	
	buffer[0] = 'R';
	buffer[1] = GET_DATA_CMD;
	
	// Now fill buffer with the 6 firing times for this run
	
	psn = 2;						// Start buffer psn
	DEBUG_PRINTLN("FIRE TIMES");
	for( i=0; i<FIRE_CHANNELS; i++ )
	{
		DEBUG_PRINT("CHANNEL [");
		DEBUG_PRINT_DEC(i);
		DEBUG_PRINT("] TIME [");
		DEBUG_PRINT_DEC(fire[i].fire_time);
		DEBUG_PRINT("] PSN [");
		// Store each firng time into buffer
		buft = (char *)&(buffer[psn]);

		psn += num_to_string(fire[i].fire_time,
								1,
								buft);
		if( psn >= 31 )			// Buffer FULL
		{
			buffer[31] = '\0';
			DEBUG_PRINT_DEC(psn);
			DEBUG_PRINT("] BUF[");
			DEBUG_PRINT(buf);
			DEBUG_PRINTLN("]");
			break;
		}	
		DEBUG_PRINT_DEC(psn);
		DEBUG_PRINT("] BUF[");
		DEBUG_PRINT(buf);
		DEBUG_PRINTLN("]");
		buffer[psn++] = ' ';		// Overwrite NUL
	}
	
	buffer[psn] = '\0';				// Terminate buffer
	DEBUG_PRINT("Result [");
	DEBUG_PRINT(buffer);
	DEBUG_PRINTLN("]");

	// Set response on success
	gen_packet( pkt->from,psn,buffer,&(state.response[0]));
	set_response(pkt->to);
	DEBUG_PRINT("RESPONSE [");
	DEBUG_PRINT(state.response);
	DEBUG_PRINTLN("]");

}

#if 0
	#pragma mark -
	#pragma mark Support Routines
#endif

/***********************************************************************
*
*  void check_device(FIRE_LIST *fl)	- Check for presence of devices on
*									  firing channels
*	INPUT:  fl	- Firing list of devices
*
*	OUTPUT:	NONE
*
**********************************************************************/

static void check_device(FIRE_LIST *fl)
{
	int i;
	int adval;
	
	DEBUG_PRINTLN("CHECK DEVICE Action ");
	DEBUG_PRINTLN("D A/D P F");
	
	// Scan the channels for device present
	
	for( i=0; i<FIRE_CHANNELS; i++ )
	{	
		// If in test mode fake device connected
		if( test_mode == 1 )
		{
			adval = DEVICE_PRESENT + 0x10;	// FAKE the A/D value
		}
		else
		{
			adval = analogRead( fire[i].ad );
		}
		fire[i].ch_ad = adval;		// [230cd6fbad] Save into FIRE_LIST structure
		
		// Set device presence based on A/D value
		// [7cc38ceff4] Update FIRE status
		
		if( adval < DEVICE_PRESENT )
		{
			fire[i].pres = 0;			// Nothing connected
			fire[i].fired = 1;			// Mark as fired
		}
		else
		{
			fire[i].pres = 1;			// Item connected
			fire[i].fired = 0;			// Mark as NOT fired
		}
			
		DEBUG_PRINT_DEC(i);
		DEBUG_PRINT(" ");
		DEBUG_PRINT_HEX(fire[i].ch_ad);
		DEBUG_PRINT(" ");
		DEBUG_PRINT_DEC(fire[i].pres );
		DEBUG_PRINT(" ");
		DEBUG_PRINT_DEC(fire[i].fired );
		DEBUG_PRINTLN("");
	}
}

/***********************************************************************
*
*  void fire_op( int ch )	- Fire operation
*
*	INPUT:  ch	- Channel to be fired
*
*	OUTPUT:	NONE	- Fire state set up
*
*	12-Nov-2011 [a1b444e30a] Added to better support Delay fires
*
**********************************************************************/

void fire_op( int ch )
{
	state.fire_channel = ch;
	state.fire_time = state.now + fire_time;
	state.adaptive_time = state.now;		// Get adaptive firing time
	state.in_fire = 1;
	digitalWrite(fire[ch].fire,1);    // FIRE !!!
}

/***********************************************************************
*
*  void next_event()	- Set up for next event
*
*	INPUT:  NONE	- Use state
*
*	OUTPUT:	Delay firing started and set for next event or terminate
*			event handling
*
**********************************************************************/

void next_event(void)
{
	// Set up for next event 
	if( state.event_next < state.event_count )
	{
		state.in_delay = 1;
		state.delay_time = events[state.event_next].ft;
		state.delay_channel = events[state.event_next].ch;
		DEBUG_PRINT("Entering NEXT event CH [");
		DEBUG_PRINT_DEC(state.delay_channel);
		DEBUG_PRINT("] TIME [");
		DEBUG_PRINT_DEC(state.delay_time);
		DEBUG_PRINT(" NOW [");
		DEBUG_PRINT_DEC(state.now);
		DEBUG_PRINT("] EVENT [");
		DEBUG_PRINT_DEC(state.event_next);
		DEBUG_PRINTLN("]");
		state.event_next++;
	}
	else
	{
		DEBUG_PRINTLN("** END OF EVENTS **");
		state.in_event = 0;
	}
}

/***********************************************************************
*
* 	int store_in_queue( char ch, long ft )	- Store data in firing queue
*
*	INPUT:  ch		- Firing channel
*			long	- Firing time (ms)
*
*	OUTPUT:	0 If inserted, <> 0 if not
*
*	Called in init() and if EERROM version out of date then update
*	eeprom to current values
*
**********************************************************************/

int store_in_queue( char ch, long ft )
{
	int rtnval = -1;	// Set for failure
	int i;
	int qpsn;
	
	DEBUG_PRINT("STORE IN QUEUE CH[");
	DEBUG_PRINT_DEC(ch);
	DEBUG_PRINT("] FT [");
	DEBUG_PRINT_DEC(ft);
	DEBUG_PRINTLN("]");
	
	print_queue();
	
	// (1) Is there room ?
	
	if( state.event_count < FIRE_CHANNELS )
	{
		// (2) Event count 0  special case just inserted it
		
		if( state.event_count == 0 )
		{
			events[state.event_count].ch = ch;
			events[state.event_count].ft = ft;
			state.event_count++;
			rtnval = 0;				// SUCCESS
		}
		else
		{
			// (3) Determine where it fits in queue
			
			for( i=0; i<state.event_count; i++ )
			{
				if( ft <= events[i].ft )
					break;
			}
			
			qpsn = i;
			
			// (4) Two cases
			//	(a) Beyond end of queue, just stick it in
			//	(b) Inside queue, move up queue and stick it in
			
			if( qpsn >= state.event_count )
			{
				// Case (a) stick in new MT slot at end
				
				events[state.event_count].ch = ch;
				events[state.event_count].ft = ft;
				state.event_count++;
				rtnval = 0;				// SUCCESS
				
				DEBUG_PRINTLN("- INSERT AT END -");
				print_queue();
			}
			else
			{
				// Case (b) Move all the items above qpsn up one into MT slot
				// and insert new at qpsn
				
				for( i=state.event_count-1; i>=qpsn; i--)
				{
					events[i+1].ch = events[i].ch;
					events[i+1].ft = events[i].ft;
				}
				events[qpsn].ch = ch;
				events[qpsn].ft = ft;
				
				state.event_count++;
				rtnval = 0;
				
				DEBUG_PRINT("- INSERT AT [");
				DEBUG_PRINT_DEC(qpsn);
				DEBUG_PRINTLN("] -");
				print_queue();
			}
		}
	}
	
	return rtnval;
		
}

/***********************************************************************
*
* 	void print_queue(void)
*
*	INPUT:  NONE
*
*	OUTPUT:	NONE
*
*	Print out current event queue
*
**********************************************************************/

void print_queue(void)
{

#if DEBUG_ON
	int i;

	if( state.event_count == 0 )
	{
		DEBUG_PRINTLN("EVENT QUEUE MT");
	}
	else
	{
		DEBUG_PRINTLN("- EVENT QUEUE - ");
		for( i=0; i<state.event_count; i++ )
		{
			DEBUG_PRINT("Event[");
			DEBUG_PRINT_DEC(i);
			DEBUG_PRINT("] CH[");
			DEBUG_PRINT_DEC(events[i].ch);
			DEBUG_PRINT("] FT [");
			DEBUG_PRINT_DEC(events[i].ft);
			DEBUG_PRINTLN("]");
		}
		DEBUG_PRINTLN("----------------");
	}
#endif
}

#if 0
	#pragma mark -
	#pragma mark EEPROM Support Routines
#endif

/***********************************************************************
*
* 	void check_eeprom()
*
*	INPUT:  NONE
*
*	OUTPUT:	NONE
*
*	Called in init() and if EERROM version out of date then update
*	eeprom to current values
*
**********************************************************************/

static void check_eeprom()
{
	unsigned char verh,verl;
	unsigned int ver;
	
	// Read the eeprom version
	// from EERPROM
	
	verh = EEPROM.read( ROMVER_LCNH );
	verl = EEPROM.read( ROMVER_LCNL );
	ver = (unsigned int)(0xff & verh );
	ver = (ver<<8) + (unsigned int)(0xff & verl);
	
	DEBUG_PRINT("EEPROM VERSION ");
	DEBUG_PRINT_HEX( ver );
	
	// Do we need an update ?
	
	if( ver != ROMVER )
	{
		DEBUG_PRINTLN(" MISMATCH - UPDATE EEPROM");
		
		// Update 	ROM VERSION
		//			FIRE TIME
		//			BACKOFF TIME
		
		ver = ROMVER;
		DEBUG_PRINT("NEW VERSION [");
		DEBUG_PRINT_HEX( ver );
		
		
		verh = 0xff & (ver >> 8);
		verl = 0xff & ver;
		DEBUG_PRINT(" ");
		DEBUG_PRINT_HEX( verh );
		DEBUG_PRINT(" ");
		DEBUG_PRINT_HEX( verl );
		DEBUG_PRINTLN("]");
		
		EEPROM.write(ROMVER_LCNH,verh);
		EEPROM.write(ROMVER_LCNL,verl);
		
		set_fire_time(DEF_FIRE_TIME);
		set_backoff_time( RESP_BACKOFF );
		
		DEBUG_PRINTLN("-- EEROM UPDATED --");	
	}
	else
	{
		DEBUG_PRINTLN(" MATCH USE EEPROM");
	}
}

/***********************************************************************
*
*  int get_test_mode()	- Get test mode value
*
*	INPUT:  NONE
*
*	OUTPUT:	TRUE if in test mode, FALSE if not
*
**********************************************************************/

static bool get_test_mode()
{
	unsigned char tmode,ctmode;
	bool rtnval = false;
	
	// (1) Read tmode and the compliment value
	// from EERPROM
	
	tmode = EEPROM.read( TEST_MODE_LCN );
	ctmode = EEPROM.read( CTEST_MODE_LCN );
	ctmode = 0xff & ~ctmode;
	
	// (2) Is this correct 
	
	if( ctmode == tmode )
	{
		// Yes, return state of tmode
		
		if( tmode > 0 )
			rtnval = true;
	}
	
	
	DEBUG_PRINT("Test Mode [");
	DEBUG_PRINT_DEC(rtnval);
	DEBUG_PRINTLN("]");
	
	return( rtnval );
}
		
/***********************************************************************
*
*  int set_test_mode(bool mode)	- set Test mode
*
*	INPUT:  tmode	- TRUE or FALSE	
*
*	OUTPUT:	NONE
*
**********************************************************************/

		
static void set_test_mode( bool mode )
{
	unsigned char tmode,ctmode;
	
	// (1) Build the tmode and compliment
	
	if( mode )
	{
		tmode = 0xff;
		ctmode = 0;
	}
	else
	{
		tmode = 0;
		ctmode = 0xff;
	}
	
	// (2) Now write them to eerom
	
	EEPROM.write(TEST_MODE_LCN,tmode);
	EEPROM.write(CTEST_MODE_LCN,ctmode);
}

 
/***********************************************************************
*
*  int get_address()	- Get board address
*
*	INPUT:  NONE
*
*	OUTPUT:	Board address, if none set to default address
*
**********************************************************************/

static int get_address()
{
	unsigned char addr,caddr;
	int address;
	
	// (1) Read the address and the compliment value
	// from EERPROM
	
	addr = EEPROM.read( ADDR_LCN );
	caddr = EEPROM.read( CADDR_LCN );
	caddr = 0xff & ~caddr;
	
	// (2) Is this correct 
	
	if( caddr == addr &&
		addr >= ADDR_MIN &&
		addr <= ADDR_MAX)
	{
		address = 0xff & addr;
	}
	else
	{
		// (3) Failure, set to default address
		
		address = set_address( DEF_ADDR );
	}
	
	DEBUG_PRINT("Board Address [");
	DEBUG_PRINT_DEC(address);
	DEBUG_PRINTLN("]");
	
	return( address );
}
		
/***********************************************************************
*
*  int set_address(int address)	- set board address
*
*	INPUT:  address
*
*	OUTPUT:	Board address
*
**********************************************************************/

		
static int set_address( int address )
{
	unsigned char addr,caddr;
	
	// (1) Build the address and compliment
	
	addr = 0x3f & address;
	caddr = 0xff & ~addr;
	
	// (2) Now write them to eerom
	
	EEPROM.write(ADDR_LCN,addr);
	EEPROM.write(CADDR_LCN,caddr);
	
	return( address );
}

/***********************************************************************
*
*  int get_fire_time()	- Get board firing time (in ms)
*
*	INPUT:  NONE
*
*	OUTPUT:	Returns firing time (if none returns default)
*
**********************************************************************/

static int get_fire_time()
{
	unsigned int ft,cft;
	unsigned val;
	
	// (1) Read the address and the compliment value
	// from EERPROM
	
	val = EEPROM.read( FIRE_TIME_MSB );
	ft = val << 8;
	val = 0xff & EEPROM.read( FIRE_TIME_LSB );
	ft = ft | val;
	
	val = EEPROM.read( FIRE_TIME_CMSB );
	cft = val << 8;
	val = 0xff & EEPROM.read( FIRE_TIME_CLSB );
	cft = cft | val;
	cft = ~cft;
	
	// (2) Is this correct 
	
	if( ft != cft )
	{
		// (3) Failure, set to default time
		
		DEBUG_PRINTLN("** DEFAULT FIRE TIME **");
		ft = set_fire_time( DEF_FIRE_TIME );
	}
	
	DEBUG_PRINT("FIRE TIME [");
	DEBUG_PRINT_DEC(ft);
	DEBUG_PRINTLN("]");
	
	return( ft );
}

/***********************************************************************
*
*  int set_fire_time(int firet)	- set board firing time
*
*	INPUT:  ft	- Firing time in ms
*
*	OUTPUT:	Board firing time
*
**********************************************************************/

		
static int set_fire_time( int firet )
{
	unsigned int ft,cft;
	unsigned char part;
	
	// (1) Build the address and compliment
	
	ft = firet;
	cft = ~firet;
	
	// (2) Now write them to eerom
	
	part = ft >> 8;
	EEPROM.write(FIRE_TIME_MSB,part);
	part = 0xff & ft;
	EEPROM.write(FIRE_TIME_LSB,part);

	part = cft >> 8;
	EEPROM.write(FIRE_TIME_CMSB,part);
	part = 0xff & cft;
	EEPROM.write(FIRE_TIME_CLSB,part);
	
	// (3) Read value from EEPROM
	
	ft = get_fire_time();
	
	return( ft );
}

/***********************************************************************
*
*  int get_backoff_time()	- Get board backoff time (in ms)
*
*	INPUT:  NONE
*
*	OUTPUT:	Returns backoff time (if none returns default)
*
**********************************************************************/

static int get_backoff_time()
{
	unsigned int bt,cbt;
	//unsigned val;
	
	// (1) Read the address and the compliment value
	// from EERPROM
	
	bt = EEPROM.read( BACKOFF_TIME_LCN );	
	cbt = EEPROM.read( BACKOFF_TIME_LCNC );
	cbt = 0xff & ~cbt;
	
	// (2) Is this correct 
	
	if( bt != cbt )
	{
		// (3) Failure, set to default time
		
		DEBUG_PRINTLN("** DEFAULT BACKOFF TIME **");
		bt = set_backoff_time( RESP_BACKOFF );
	}
	
	DEBUG_PRINT("BACKOFF TIME [");
	DEBUG_PRINT_DEC(bt);
	DEBUG_PRINTLN("]");
	
	return( bt );
}

/***********************************************************************
*
*  int set_backoff_time(int firet)	- set board backoff time
*
*	INPUT:  bt	- Backoff time in ms (0-255)
*
*	OUTPUT:	Board backoff time
*
**********************************************************************/

		
static int set_backoff_time( int backt )
{
	unsigned int bt,cbt;
	//unsigned char part;
	
	// (1) Build the address and compliment
	
	bt = backt;
	cbt = 0xff & ~backt;
	
	// (2) Now write them to eerom
	
	EEPROM.write(BACKOFF_TIME_LCN,bt);
	EEPROM.write(BACKOFF_TIME_LCNC,cbt);
	
	// (3) Read value from EEPROM
	
	bt = get_backoff_time();
	
	return( bt );
}

#if 0
	#pragma mark -
	#pragma mark PACKET HANDLER
#endif

/***********************************************************************
*
*  void handle_net( char data, PACKET *pkt )
*
*	INPUT: 	data	- Packet character
*			pkt		- Packet data structure
*
*	OUTPUT:		NONE
*
**********************************************************************/

static void handle_net( char data, PACKET *pkt )
{
	
//	DEBUG_PRINT("State: [");
//	DEBUG_PRINT(state_name(pkt->state));
//	DEBUG_PRINTLN("]");

	if( pkt->state == NO_PACKET )
	{
		pkt->len = 0;
		memset(pkt->data,'\0',PHY_DATA_SIZE);
		pkt->state = DATA_PACKET;
	}
	
	// (1) Switch depending on state
	
	switch( pkt->state )
	{
		case NO_PACKET:		if( data == MSG_HDR )
							{
								pkt->len = 0;
								memset(pkt->data,'\0',PHY_DATA_SIZE);
								pkt->state = TO_PACKET_A;
							}
							break;
							
		case TO_PACKET_A:	pkt->to = 10 * (data & 0xf);
							pkt->cksum = data;
							if( pkt->to > MAX_ADDRESS )
								pkt->state = NO_PACKET;
							else
								pkt->state = TO_PACKET_B;
							break;
							
		case TO_PACKET_B:	pkt->to = pkt->to + (data & 0xf);
							if( pkt->to > MAX_ADDRESS )
							{
								pkt->state = NO_PACKET;
							}
							else
							{
								if( pkt->to != BCAST_ADDRESS &&
									pkt->to != board_address )
								{
									pkt->state = NO_PACKET;
								}
								else
								{
									pkt->state = FROM_PACKET_A;
									pkt->cksum += data;
								}
							}
							break;
							
		case FROM_PACKET_A:	pkt->from = 10 * (data & 0xf);
							pkt->cksum += data;
							pkt->state = FROM_PACKET_B;
							break;
							
		case FROM_PACKET_B:	pkt->from = pkt->from + (data & 0xf);
							pkt->cksum += data;
							pkt->state = DATA_PACKET;
							break;
							
		case DATA_PACKET:	if( data == MSG_TRLR )
							{
								pkt->state = RCVED_PACKET;
								pkt->to = 1;
								pkt->from = 30;
							}
							else
							{
								pkt->cksum += data;
								pkt->data[pkt->len++] = data;
							}
							break;
							
		case CKSUM_PACKET_A:	pkt->pcksum = 10 * (data & 0xf);
								pkt->state = CKSUM_PACKET_B;
								break;
								
		case CKSUM_PACKET_B:	pkt->pcksum = pkt->pcksum + (data & 0xf);
								// Now compare modulo 100 cksums
								pkt->pcksum = pkt->pcksum % 100;
								pkt->cksum = pkt->cksum % 100;
								
								// Show packet state
								if( pkt->cksum == pkt->pcksum )
								{
									pkt->state = RCVED_PACKET;
								}
								else
								{
									pkt->state = NO_PACKET;		// FAILURE
									DEBUG_PRINTLN("");
									DEBUG_PRINT("** CKSUM FAIL CK[");
									DEBUG_PRINT_DEC(pkt->pcksum);
									DEBUG_PRINT("] SB[");
									DEBUG_PRINT_DEC(pkt->cksum);
									DEBUG_PRINTLN("}");
								}
									
		case RCVED_PACKET:		// Do nothing here...
								break;
	}
	
}


/***********************************************************************
*
*  int gen_packet(unsigned char to,int len,char *data,char *buf)
*
*	INPUT: 	to		- TO address of packet
*			len		- Length of data
*			data	- Data to be sent
*			buf		- Put packet here
*
*	OUTPUT: # Bytes in generated packet
*
**********************************************************************/

static int gen_packet(unsigned char to, int len, char *data,char *buf )
{
	unsigned char part;
	int psn = 0;
	int cksum;
	int i;
	
	// (1) Put in header character
	
	buf[psn++] = MSG_HDR;
	
	// (2) Put in TO
	
	part = 0x30 + (to/10);
	buf[psn++] = part;
	cksum = part;
	part = 0x30 + (to%10);
	buf[psn++] = part;
	cksum = cksum + part;
	
	// (3) Put in from
	
	part = 0x30 + (board_address/10);
	buf[psn++] = part;
	cksum = cksum + part;
	part = 0x30 + (board_address%10);
	buf[psn++] = part;
	cksum = cksum + part;
	
	// (4) Put in data
	
	for( i=0; i<len; i++)
	{
		buf[psn++] = data[i];
		cksum = cksum + data[i];
	}
	
	// (5) Put in end marker
	
	buf[psn++] = MSG_TRLR;
	
	// (6) Put in checksum
	
	cksum = cksum % CKSUM_MODULO;
	part = 0x30 + (cksum/10);
	buf[psn++] = part;
	part = 0x30 + (cksum%10);
	buf[psn++] = part;
	buf[psn] = '\0';			// Put in END MARKER
	
	return( psn );
}
	
/***********************************************************************
*
*  void set_response( unsigned char to )	- Setup for a response
*
*	INPUT:  to	- Address of original packet
*
*	OUTPUT:	NONE
*			Mark response ready
*			Calculate time to send response, if BCAST hold off time
*
**********************************************************************/

void set_response( unsigned char to )
{
	int wait = 0;
	
	// We are in a response
	
	state.in_resp = 1;		// Do a response
	
	// If broadcast then backoff otherwise just send NOW
	
	if( to == BCAST_ADDRESS )
	{
		wait = (board_address-1) * backoff_time;
		
		DEBUG_PRINT("RESP WAIT [");
		DEBUG_PRINT(wait);
		DEBUG_PRINTLN("]");

		state.resp_time = state.now + wait;
		
		DEBUG_PRINT("NOW RESP TIME [");
		DEBUG_PRINT(state.now);
		DEBUG_PRINT(" ");
		DEBUG_PRINT(state.resp_time);
		DEBUG_PRINTLN("]");
	}
	else
	{
		state.resp_time = state.now;
	}
}

#if 0
	#pragma mark -
	#pragma mark TEST NETWORK ROUTINES
#endif

/***********************************************************************
*
*  int check_net()
*
*	INPUT: 	NONE
*
*	OUTPUT: 1-	NETWORK DATA detected
*
**********************************************************************/

static int check_net()
{
	int ch;
	int rtnval = 0;
	
	// (1) Check for data, if any, eat it
	
	while( Serial.available() > 0 )
	{
		ch = Serial.read();
		rtnval = 1;
	}
	
	return( rtnval );
}

/***********************************************************************
*
*  int get_message(int len,char *buffer)
*
*	INPUT: 	len	- Length of buffer to use	
*            buffer	- Return data here
*
*	OUTPUT:		1 = MSG received
*
**********************************************************************/

static int get_message(int len,char *buffer)
{
	int rtn;
	int i;
	int val;
	
	// (1) Get the message
	
	rtn = get_input("NEWNET MSG: ",len,buffer);
	if( rtn > 0 )
	{
		Serial.print("MESSAGE [");
		for( i=0; i<rtn; i++ )
		{
			val = 0xff & buffer[i];
			Serial.print(val,HEX);
		}
		Serial.print(" ");
		Serial.print(buffer);
		Serial.print("]");
		Serial.print(" LEN: ");
		Serial.println(rtn,DEC);
	}
	
	return( rtn );
}

#define CR	0x0D
#define LF	0x0A
#define BS	0x08
#define DEL	0x7f
//#define SP	0x20
#define BEL	0x07

/***********************************************************************
*
*  int get_input( int len,char *buffer )
*
*	INPUT:  len    - # Characters in buffer	
*                buffer	- Return data here
*
*	OUTPUT:	# characters in return buffer
*
**********************************************************************/

static int get_input(char *prompt,int len, char *buffer )
{
	int psn = 0;
	int ch;
	int flag = 1;
	int rtnval = 0;
        int i;

	// (1) Clear buffer & serial input
	
	for( i=0;i<len; i++ )
	  buffer[i] = '\0';
	 
	while( Serial.available() > 0)
	{
		ch = Serial.read();
	}

	// (2) Output prompt
        
	Serial.write(prompt);
	
	// (3) Loop forever getting input
	// Exit on buffer full
	
	while( flag )
	{
		if( Serial.available() > 0)
		{
			ch = Serial.read();
	
			
			switch( 0xff & ch )
			{
				// We have a line.....
				case  CR:
				case  LF:	// Terminate buffer
							flag = 0;
							rtnval = 1;
							buffer[psn++] = ';';
							buffer[psn] = '\0';
							Serial.write("\r\n");
							break;
				
				
				case '0':	// NUMBER, just put into buffer
				case '1':
				case '2':
				case '3':
				case '4':
				case '5':
				case '6':
				case '7':
				case '8':
				case '9':	buffer[psn] = 0xff & ch;
							psn = psn + 1;
							break;
							
				case BS:	// Handle BS & DEL characters
				case DEL:
							if( psn > 0 )
							{
								// We have data so BS over it and then
								// remove from buffer
								
								Serial.write(BS);
								Serial.write(SP);
								Serial.write(BS);
								
								psn = psn - 1;
							}
							else
							{
								// At start of buffer just send BEL
								
								Serial.write(BEL);
							}
							break;
							
				case ';':	// Put ; in with no change
							buffer[psn] = ch & 0xDF;  // UPPER CASE
							psn = psn + 1;
							break;
							
				default:	// Just put all the letters in
							buffer[psn] = ch & 0xDF;  // UPPER CASE
							psn = psn + 1;
							break;
			}
			// Echo input character
			Serial.write(ch);
			
			// Check here for buffer overrun 
			// bail if so
			if( psn >= len )
				flag = 0;
		}
	}
	
	rtnval = psn;
	return( rtnval );
}

#if 0
	#pragma mark -
	#pragma mark STRING Routines
#endif

/***********************************************************************
*
*  int num_to_string( int val,int min_size,char *buffer)	- Convert 16 bit integer to 
*											  base 10 value
*	INPUT:  val		- Value to convert (- or +)
*			min_size- Minimum size of returned value (i.e. lz here if < min size)
*			buffer	- String returned here (NUL terminated, LZ suppressed)
*
*	OUTPUT:	# Bytes in result (not counting NUL)
*
**********************************************************************/

int num_to_string( int val,int min_size,char *buffer)
{
	bool lz = false;
	int buf_psn = 0;
	int digit;
	int part, divisor;
	
	// Is number negative, make positive
	
	if( val < 0 )
	{
		val = -1 * val;
		buffer[buf_psn++] = '-';	// Negative sign...
	}
		
	// If min_size < 5 then then set to search value
	
	if( min_size <= 5 && min_size > 0)
		min_size = 5 - min_size;
	else
		min_size = 6;		// No min size
		
	// Now convert max value = 0x7FFF -> 32767

	divisor = 10000;
	for( digit = 0; digit<5; digit++)
	{
		// Disable zero suppression when at min size
		// if set
		
		if( digit >= min_size )
			lz = true;				// Remove zero suppression when at min size

		part = val/divisor;
		if( lz || part > 0 )
		{
			buffer[buf_psn++] = 0x30 + part;
			lz = true;				// No more LZ suppress
		}
		val = val - part*divisor;
		divisor = divisor/10;
	}
	
	// Put in trailing NULL and return size
	
	buffer[buf_psn] = '\0';
	return buf_psn;
}
		

#if 0
	#pragma mark -
	#pragma DEBUG SUPPORT
#endif


/***********************************************************************
*
*  char *state_name( int state )	- Return state name
*
*	INPUT:  state	State #
*
*	OUTPUT:	String with state name
*
**********************************************************************/

char *state_name( int state )
{
	char *rtnval = "UNKNOWN";

#if DEBUG_ON

	switch( state )
	{
		case NO_PACKET:		rtnval = "NO_PACKET";
							break;
						
		case TO_PACKET_A:	rtnval = "TO_PACKET_A";
							break;

		case TO_PACKET_B:	rtnval = "TO_PACKET_B";
							break;
							
		case FROM_PACKET_A:	rtnval = "FROM_PACKET_A";
							break;
							
		case FROM_PACKET_B:	rtnval = "FROM_PACKET_B";
							break;
							
		case DATA_PACKET:	rtnval = "DATA_PACKET";
							break;
							
		case CKSUM_PACKET_A:	rtnval = "CKSUM_PACKET_A";
							break;
							
		case CKSUM_PACKET_B:	rtnval = "CKSUM_PACKET_B";
							break;
	
		case RCVED_PACKET:	rtnval = "RCVED_PACKET";
							break;
	}
#endif
	
	return rtnval;
}

Added Arduino/diag/fireDiag/Firediag/debug.h.



















































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//**********************************************************************
/*
  DEBUG TOOLS
  
  26-May-2010 Initial Verson
   3-Jan-2011 Change to be all MACROS
  17-Jan-2011 [f38bf44b59] Add network control to debug print
*/
//**********************************************************************/

#ifndef DEBUG_F
#define DEBUG_F	1

#define DEBUG_ON		1		// Enables debug print
#define FAKE_NETWORK	1		// Enables line editing input

#ifdef DEBUG_ON
	#define DEBUG_PRINTLN(x)	digitalWrite(TX_CNTL,1);\
								Serial.println(x);\
								digitalWrite(TX_CNTL,0)
								
	#define DEBUG_PRINT(x)		digitalWrite(TX_CNTL,1);\
								Serial.print(x);\
								digitalWrite(TX_CNTL,0)
								
	#define DEBUG_PRINT_DEC(x)	digitalWrite(TX_CNTL,1);\
								Serial.print(x,DEC);\
								digitalWrite(TX_CNTL,0)
								
	#define DEBUG_PRINT_HEX(x)	digitalWrite(TX_CNTL,1);\
								Serial.print(x,HEX);\
								digitalWrite(TX_CNTL,0)
#else
	#define DEBUG_PRINTLN(x)
	#define DEBUG_PRINT(x)
	#define DEBUG_PRINT_DEC(x)
	#define DEBUG_PRINT_HEX(x)

#endif

#endif

Added Arduino/diag/fireDiag/Firediag/eerom.h.







































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//**********************************************************************
/*
  EEROM Definitions
  
 	16-Oct-2011	[1ac05cf7a5] Initial version
*/
//**********************************************************************/

#ifndef EEROM_H

// To cause an update to the EEROM data
// Increment this EROMVER
// This will cause EEROM to go to the new 
// defaults

#define EROMVER			(unsigned int)0x0

#define EROMVER_BASE	(unsigned int)0xA55A
#define ROMVER			EROMVER_BASE + EROMVER

 //******************************************
 // EEPROM DATA, 0 based ADDRESSES
 //	0-1		VERSION ID
 //	2-3		Unit ADDRESS value + compliment
 // 4-7		Firing time (4 bytes + compliment)
 // 8-9		Test mode + compliment
 //	10-11	Backoff time + compliment

// ROM VERSION DATA
#define ROMVER_LCNH		0
#define ROMVER_LCNL		1

 // ADDRESS DATA
#define ADDR_LCN    	2
#define CADDR_LCN   	3

// Firing time data
#define FIRE_TIME_MSB	4
#define FIRE_TIME_LSB	5
#define FIRE_TIME_CMSB	6
#define FIRE_TIME_CLSB	7

// Test mode data
#define TEST_MODE_LCN		8
#define CTEST_MODE_LCN		9

// Backoff time data
#define BACKOFF_TIME_LCN	10
#define BACKOFF_TIME_LCNC	11

#endif

Added Arduino/diag/fireDiag/Firediag/newnet.h.































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
//**********************************************************************
/*
  NETWORK DEFS
  
  26-May-2010 Initial Verson
  
	22-Jan-2011 [f2fa5910e4] Add delay for XMIT Enable/Disable
	23-Jan-2011 [0022f592fb] Add code to check status of firing stations
	 5-Feb-2011 [1da8774a51] Fix typo on Analog channel for firing channel 5
	18-Apr-2011 Add test mode to simulate actual firing [900924d040]
	30-Apr-2011 [e3d9606749] Change backoff time to 25 ms
				Also put backoff value in to EEPROM
	 1-May-2011	[092caa26e8] Add a RESET command
    14-May-2011	[c2029557fb] Check for device presense on arm
  	16-Jul-2011 [9e81c1a523] Add adaptive firing action & read out of
  				adaptive results
  	16-Oct-2011 [230cd6fbad] Incorrect use of presence flag in FIRE_LIST
  				structure add an A/D value to store and A/D value and
  				separate from use of presence bit in structure
  	13-Nov-2011 [fd8800dae4] Add PGM command to store firing events
  				Modify sizes of things so we don't run out of RAM
*/
//**********************************************************************/

#ifndef NEWNET_H
#define NEWNET_H	1

 //***
 // LOCAL CONSTANTS
 //***
#define DEF_ADDR	 	1
#define ADDR_MIN	 	1
#define ADDR_MAX    	32


//******************************************

#define FIRE0    2  // Fire Channel 0
#define FIRE0_AD 0

#define FIRE1    3  // Fire Channel 1
#define FIRE1_AD 1
 
#define FIRE2    4  // Fire Channel 2
#define FIRE2_AD 2

#define FIRE3    5  // Fire Channel 3
#define FIRE3_AD 3

#define FIRE4    6  // Fire Channel 4
#define FIRE4_AD 4

#define FIRE5    7  // Fire Channel 5
#define FIRE5_AD 5

 
typedef struct {
                char fire;  	// Fire control channel
                char ad;    	// Fire control A/D channel
                int ch_ad;		// Current A/D value
                char pres;  	// If present (i.e. < 0x80)
                char fired; 	// If if channel fired
                int fire_time;	// Firing time (adaptive result)
} FIRE_LIST;


#define RELAY    8  // Other controls
#define LED      9

#define TX_CNTL  13

#define DEVICE_PRESENT		0x80	// Above this device connected
#define FIRE_CHANNELS		6
#define DEF_FIRE_TIME		3000	// # ms to fire channel
#define  FIRE_CHECK_TIME	300		// Check fired every 100 ms
#define  FIRE_CHECK_WAIT	1		// Wait 1 ms for before pres measure

#define MSG_HDR		':'
#define MSG_TRLR	';'
#define DATA_SEP	','
#define PHY_DATA_SIZE	32		// Max size of data xfered
#define CKSUM_MODULO	100		// For address calc
#define BCAST_ADDRESS	0		// Broadcast address
#define MIN_ADDRESS		1
#define MAX_ADDRESS		32
#define DEF_TXEN_DLY		20				// TX enable disable delay time
#define RESP_BACKOFF	25+DEF_TXEN_DLY		// ms/address

#define BLINK_TIME	200			// 200 ms blink

#define PARENT_ADDRESS	MAX_ADDRESS

// Packet commands

// Operational commands
#define ARM_CMD			'A'
#define FIRE_CMD		'F'
#define DLY_CMD			'D'
#define STATUS_CMD		'S'
#define SYNC_CMD		'Z'
#define VER_CMD			'V'
#define CH_CMD			'C'
#define PGM_CMD			'P'
	
	
// Setup commands	
#define SET_AD_CMD		'W'
#define SET_FT_CMD		'T'
#define SET_TM_CMD		'M'
#define BKOFF_CMD		'B'
#define RESET_CMD		'X'

// Readout commands
#define GET_DATA_CMD	'R'

typedef enum {
				NO_PACKET,
				TO_PACKET_A,	// Getting TO address (first byte)
				TO_PACKET_B,	// Getting TO address (second byte)
				FROM_PACKET_A,	// Getting FROM address (first byte)
				FROM_PACKET_B,	// Getting FROM address (second byte)
				DATA_PACKET,	// Getting packet data
				CKSUM_PACKET_A,	// Getting packet cksum (first byte)
				CKSUM_PACKET_B,	// Getting packet cksum (second byte)
				RCVED_PACKET,	// Packet ready to use
			} PACKET_STATE;
			

typedef struct {
					// Received packet
					PACKET_STATE state;		// State of current received packet
					unsigned char to;
					unsigned char from;
					unsigned char len;
					char data[PHY_DATA_SIZE];	// Packet data
					short cksum;				// Accmulated cksum
					short pcksum;				// Packet checksum
										
					// Chunk handler 
					
					//unsigned char chunk_len;	// Length of current chunk
					//unsigned char chunk_end;	// End of current chunk
					//unsigned chunk_ptr;	// Psn in current chunk
				} PACKET;
				
typedef struct {
					char ch;			// Fire on this channel
					long ft;			// At this time
				} EVENT_QUEUE;
				
typedef struct {
					// Node State
					
					long now;					// Current offset time
					long time_offset;			// Offset time for Z action
					char armed;

					// Blink Data
					
					char in_blink;				// 1 if in blink
					long next_blink;			// Next blink time
					
					// Delay Data
					
					char in_delay;				// 1 if in a delay mode
					char delay_channel;
					long delay_time;			// Delay time (if any)
					
					// Fire Data
					
					char in_fire;				// 1 if in fire, 
					char fire_channel;			// Channel to fire
					long fire_time;				// End of fire time
					long adaptive_time;			// Used for adaptive firing time
					
					// Response data
					
					char in_resp;				// 1 If response in process
					long resp_time;				// Send response now
					char response[32];			// Response data buffer
					
					// Event programming
					
					char in_event;				// TRUE when in an event
					int event_count;			// # Events stored
					int event_next;				// Next event to be run
					unsigned char control;		// Source of PGM events
				} NODE_STATE;
#endif

void handle_packet( char data, PACKET *pkt );

Changes to Firenet.xcodeproj/project.pbxproj.

765
766
767
768
769
770
771

772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				COPY_PHASE_STRIP = NO;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_MODEL_TUNING = G5;
				GCC_OPTIMIZATION_LEVEL = 0;

				INSTALL_PATH = /usr/local/bin;
				PRODUCT_NAME = Firenet;
				SDKROOT = "";
			};
			name = Debug;
		};
		1DEB928708733DD80010E9CD /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				GCC_MODEL_TUNING = G5;
				INSTALL_PATH = /usr/local/bin;
				PRODUCT_NAME = Firenet;
				SDKROOT = "";
			};
			name = Release;
		};
		1DEB928A08733DD80010E9CD /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ARCHS = "$(NATIVE_ARCH_ACTUAL)";







>


|











|







765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				COPY_PHASE_STRIP = NO;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_MODEL_TUNING = G5;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_VERSION = "";
				INSTALL_PATH = /usr/local/bin;
				PRODUCT_NAME = Firenet;
				SDKROOT = macosx;
			};
			name = Debug;
		};
		1DEB928708733DD80010E9CD /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
				GCC_MODEL_TUNING = G5;
				INSTALL_PATH = /usr/local/bin;
				PRODUCT_NAME = Firenet;
				SDKROOT = macosx;
			};
			name = Release;
		};
		1DEB928A08733DD80010E9CD /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ARCHS = "$(NATIVE_ARCH_ACTUAL)";

Changes to Hardware/Board/Firenet/.DS_Store.

cannot compute difference between binary files

Changes to Hardware/Board/Firenet/Firenet.brd.

1
2
3
4
5
6
7
8
9
10
..
56
57
58
59
60
61
62

63



64
65
66


67
68
69
70
71
72
73
74
75
76
















77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
...
531
532
533
534
535
536
537







































538
539
540
541
542
543
544
...
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
...
792
793
794
795
796
797
798


799
800
801
802
803
804
805
...
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855



856






857
858
859
860
861
862
863
864
865


866
867
868
869
870
871
872
873
874




875
876
877




878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914









915
916

917
918


919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972








973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996



997
998

999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104


1105




1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122



1123
1124
1125
1126
1127
1128
1129
1130
1131
1132

1133
1134
1135
1136


1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153










1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226


1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240





1241
1242
1243
1244
1245
1246
1247

1248
1249

1250
1251
1252
1253
1254











1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
....
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313


1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327



1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338









1339


1340
1341
1342
1343
1344
1345
1346
1347
1348
1349


1350
1351
1352
1353
1354
1355

1356

1357
1358
1359
1360
1361

1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375






1376



1377
1378

1379
1380
1381
1382

1383
1384
1385

1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450

1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463


1464
1465
1466
1467
1468
1469
1470


1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483



1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499


1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.2">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
................................................................................
<layer number="95" name="Names" color="7" fill="1" visible="no" active="no"/>
<layer number="96" name="Values" color="7" fill="1" visible="no" active="no"/>
<layer number="97" name="Info" color="7" fill="1" visible="no" active="no"/>
<layer number="98" name="Guide" color="6" fill="1" visible="no" active="no"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="no" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="no" active="yes"/>

<layer number="104" name="Name" color="7" fill="1" visible="no" active="yes"/>



<layer number="116" name="Patch_BOT" color="9" fill="4" visible="no" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="no" active="yes"/>


<layer number="151" name="HeatSink" color="7" fill="1" visible="no" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="10" visible="no" active="yes"/>
<layer number="202" name="202bmp" color="3" fill="10" visible="no" active="yes"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="no" active="yes"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="no" active="yes"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="no" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="no" active="yes"/>
<layer number="207" name="207bmp" color="8" fill="10" visible="no" active="yes"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="no" active="yes"/>
















<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="no" active="yes"/>
</layers>
<board>
<plain>
<wire x1="0" y1="0" x2="98.73" y2="0" width="0" layer="20"/>
<wire x1="98.73" y1="0" x2="98.73" y2="69.84" width="0" layer="20"/>
<wire x1="98.73" y1="69.84" x2="0" y2="69.84" width="0" layer="20"/>
<wire x1="0" y1="69.84" x2="0" y2="0" width="0" layer="20"/>
<text x="12.7" y="63.5" size="1.016" layer="21" font="vector">Firenet</text>
<text x="12.7" y="60.96" size="1.016" layer="21" font="vector">Pandora Products</text>
<text x="12.7" y="58.42" size="1.016" layer="21" font="vector">2012 Rev 1.7</text>
<text x="80.01" y="7.62" size="1.778" layer="21">SERIAL</text>
<text x="35.56" y="16.51" size="1.778" layer="21">7805</text>
<text x="71.12" y="12.7" size="1.016" layer="21">MST</text>
<text x="93.98" y="5.08" size="1.016" layer="21">GND</text>
<text x="30.48" y="48.26" size="1.778" layer="21">0</text>
<text x="58.42" y="48.26" size="1.778" layer="21">2</text>
<text x="44.45" y="48.26" size="1.778" layer="21">1</text>
<text x="58.42" y="22.86" size="1.778" layer="21">3</text>
<text x="44.45" y="22.86" size="1.778" layer="21">4</text>
<text x="30.48" y="22.86" size="1.778" layer="21">5</text>
<text x="27.94" y="63.5" size="1.778" layer="21" rot="MR0">+</text>
<text x="24.13" y="63.5" size="1.778" layer="21" rot="MR0">-</text>
<text x="20.32" y="63.5" size="1.27" layer="22">G</text>
<text x="77.47" y="63.5" size="1.778" layer="21" rot="MR0">+</text>
<text x="73.66" y="63.5" size="1.778" layer="21">-</text>
<text x="69.85" y="63.5" size="1.27" layer="21">G</text>
<text x="55.88" y="8.89" size="0.6096" layer="22">N</text>
<text x="74.93" y="6.35" size="0.6096" layer="22">N</text>
<text x="58.42" y="6.35" size="0.6096" layer="21">H</text>
<text x="58.42" y="6.35" size="0.6096" layer="21">H</text>
................................................................................
<circle x="0" y="0" radius="2.54" width="0.1524" layer="21"/>
<pad name="A" x="-1.27" y="0" drill="0.8128" diameter="1.8796"/>
<pad name="K" x="1.27" y="0" drill="0.8128" diameter="1.8796"/>
<text x="3.175" y="0.5334" size="1.27" layer="25" ratio="10">&gt;NAME</text>
<text x="3.2004" y="-1.8034" size="1.27" layer="27" ratio="10">&gt;VALUE</text>
</package>
</packages>







































</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
................................................................................
<class number="2" name="12V" width="1.27" drill="0">
</class>
<class number="3" name="FIRING" width="1.27" drill="0">
</class>
<class number="4" name="GND" width="1.27" drill="0">
</class>
</classes>
<designrules>
<description language="de">&lt;b&gt;EAGLE Design Rules&lt;/b&gt;
&lt;p&gt;
Die Standard-Design-Rules sind so gewählt, dass sie für 
die meisten Anwendungen passen. Sollte ihre Platine 
besondere Anforderungen haben, treffen Sie die erforderlichen
Einstellungen hier und speichern die Design Rules unter 
einem neuen Namen ab.</description>
................................................................................
<element name="U$9" library="firenet" package="PIN16" value="V-" x="6.35" y="2.54"/>
<element name="R16" library="SparkFun" package="AXIAL-0.3" value="1K" x="93.98" y="59.69" rot="R90"/>
<element name="R17" library="resistor-power" package="KP292" value="1.25 ohm 2W" x="3.81" y="52.07" rot="R90"/>
<element name="R13" library="SparkFun" package="AXIAL-0.3" value="0" x="63.5" y="7.62" rot="R90"/>
<element name="R19" library="SparkFun" package="AXIAL-0.3" value="0" x="60.96" y="7.62" rot="R90"/>
<element name="R20" library="SparkFun" package="AXIAL-0.3" value="0" x="58.42" y="7.62" rot="R270"/>
<element name="R21" library="SparkFun" package="AXIAL-0.3" value="0" x="55.88" y="7.62" rot="R90"/>


</elements>
<signals>
<signal name="GND" class="4">
<contactref element="QF0" pad="S"/>
<contactref element="QF1" pad="S"/>
<contactref element="QF2" pad="S"/>
<contactref element="QF3" pad="S"/>
................................................................................
<contactref element="D2" pad="A"/>
<contactref element="U$1" pad="P$12"/>
<contactref element="U$1" pad="P$11"/>
<contactref element="U$2" pad="P$1"/>
<contactref element="U$5" pad="P$1"/>
<contactref element="IC4" pad="2"/>
<contactref element="C5" pad="1"/>
<wire x1="80.01" y1="55.88" x2="82.55" y2="55.88" width="1.27" layer="1"/>
<wire x1="82.55" y1="55.88" x2="82.55" y2="66.04" width="1.27" layer="1"/>
<wire x1="71.12" y1="63.5" x2="71.12" y2="59.69" width="1.27" layer="1"/>
<wire x1="71.12" y1="63.5" x2="71.12" y2="67.31" width="1.27" layer="1"/>
<wire x1="71.12" y1="59.69" x2="76.2" y2="54.61" width="1.27" layer="1"/>
<wire x1="76.2" y1="54.61" x2="77.47" y2="54.61" width="1.27" layer="1"/>
<wire x1="77.47" y1="54.61" x2="78.74" y2="55.88" width="1.27" layer="1"/>
<wire x1="78.74" y1="55.88" x2="80.01" y2="55.88" width="1.27" layer="1"/>
<wire x1="87.63" y1="50.8" x2="93.98" y2="44.45" width="1.27" layer="16"/>
<wire x1="81.28" y1="27.94" x2="80.01" y2="27.94" width="1.27" layer="16"/>
<wire x1="83.82" y1="30.48" x2="81.28" y2="27.94" width="1.27" layer="16"/>
<wire x1="87.63" y1="30.48" x2="83.82" y2="30.48" width="1.27" layer="16"/>
<wire x1="93.98" y1="17.78" x2="91.44" y2="15.24" width="1.27" layer="1"/>
<wire x1="93.98" y1="22.86" x2="93.98" y2="17.78" width="1.27" layer="1"/>
<wire x1="91.44" y1="10.16" x2="91.44" y2="5.08" width="1.27" layer="1"/>
<wire x1="93.98" y1="12.7" x2="91.44" y2="10.16" width="1.27" layer="1"/>
<wire x1="93.98" y1="17.78" x2="93.98" y2="12.7" width="1.27" layer="1"/>
<wire x1="88.9" y1="30.48" x2="87.63" y2="30.48" width="1.27" layer="16"/>
<wire x1="91.44" y1="27.94" x2="88.9" y2="30.48" width="1.27" layer="16"/>
<wire x1="91.44" y1="27.94" x2="91.44" y2="25.4" width="1.27" layer="1"/>
<wire x1="91.44" y1="25.4" x2="93.98" y2="22.86" width="1.27" layer="1"/>



<wire x1="93.98" y1="44.45" x2="91.44" y2="41.91" width="1.27" layer="1"/>






<wire x1="91.44" y1="41.91" x2="91.44" y2="35.56" width="1.27" layer="1"/>
<wire x1="91.44" y1="35.56" x2="92.71" y2="34.29" width="1.27" layer="1"/>
<wire x1="92.71" y1="34.29" x2="92.71" y2="31.75" width="1.27" layer="1"/>
<wire x1="92.71" y1="31.75" x2="91.44" y2="30.48" width="1.27" layer="1"/>
<wire x1="91.44" y1="30.48" x2="91.44" y2="27.94" width="1.27" layer="1"/>
<wire x1="82.55" y1="55.88" x2="82.55" y2="50.8" width="1.27" layer="1"/>
<wire x1="82.55" y1="50.8" x2="87.63" y2="50.8" width="1.27" layer="16"/>
<wire x1="38.1" y1="11.43" x2="38.1" y2="13.97" width="1.27" layer="16"/>
<wire x1="48.26" y1="11.43" x2="38.1" y2="11.43" width="1.27" layer="16"/>


<wire x1="48.26" y1="6.35" x2="48.26" y2="11.43" width="1.27" layer="1"/>
<wire x1="29.21" y1="3.81" x2="31.75" y2="3.81" width="1.27" layer="1"/>
<wire x1="31.75" y1="3.81" x2="38.1" y2="3.81" width="1.27" layer="1"/>
<wire x1="8.89" y1="6.35" x2="10.16" y2="5.08" width="1.27" layer="16"/>
<wire x1="10.16" y1="5.08" x2="22.86" y2="5.08" width="1.27" layer="16"/>
<wire x1="22.86" y1="5.08" x2="24.13" y2="3.81" width="1.27" layer="16"/>
<wire x1="24.13" y1="3.81" x2="29.21" y2="3.81" width="1.27" layer="16"/>
<wire x1="45.72" y1="3.81" x2="48.26" y2="6.35" width="1.27" layer="16"/>
<wire x1="38.1" y1="3.81" x2="45.72" y2="3.81" width="1.27" layer="16"/>




<wire x1="30.48" y1="35.56" x2="34.29" y2="39.37" width="1.27" layer="1"/>
<wire x1="34.29" y1="39.37" x2="35.56" y2="40.64" width="1.27" layer="1"/>
<wire x1="30.48" y1="33.02" x2="30.48" y2="35.56" width="1.27" layer="1"/>




<wire x1="46.99" y1="38.1" x2="49.53" y2="40.64" width="1.27" layer="16"/>
<wire x1="38.1" y1="38.1" x2="46.99" y2="38.1" width="1.27" layer="16"/>
<wire x1="35.56" y1="40.64" x2="38.1" y2="38.1" width="1.27" layer="16"/>
<wire x1="60.96" y1="38.1" x2="63.5" y2="40.64" width="1.27" layer="16"/>
<wire x1="46.99" y1="38.1" x2="58.42" y2="38.1" width="1.27" layer="16"/>
<wire x1="58.42" y1="38.1" x2="60.96" y2="38.1" width="1.27" layer="16"/>
<wire x1="40.64" y1="33.02" x2="44.45" y2="33.02" width="1.27" layer="1"/>
<wire x1="34.29" y1="39.37" x2="40.64" y2="33.02" width="1.27" layer="1"/>
<wire x1="58.42" y1="38.1" x2="58.42" y2="33.02" width="1.27" layer="1"/>
<wire x1="49.53" y1="66.04" x2="44.45" y2="60.96" width="1.27" layer="1"/>
<wire x1="44.45" y1="60.96" x2="44.45" y2="58.42" width="1.27" layer="1"/>
<wire x1="60.96" y1="63.5" x2="63.5" y2="66.04" width="1.27" layer="16"/>
<wire x1="52.07" y1="63.5" x2="58.42" y2="63.5" width="1.27" layer="16"/>
<wire x1="58.42" y1="63.5" x2="60.96" y2="63.5" width="1.27" layer="16"/>
<wire x1="49.53" y1="66.04" x2="52.07" y2="63.5" width="1.27" layer="16"/>
<wire x1="58.42" y1="63.5" x2="58.42" y2="66.04" width="1.27" layer="16"/>
<wire x1="30.48" y1="60.96" x2="35.56" y2="66.04" width="1.27" layer="1"/>
<wire x1="30.48" y1="58.42" x2="30.48" y2="60.96" width="1.27" layer="1"/>
<wire x1="12.7" y1="40.64" x2="15.24" y2="40.64" width="1.27" layer="16"/>
<wire x1="10.16" y1="43.18" x2="12.7" y2="40.64" width="1.27" layer="1"/>
<wire x1="15.24" y1="60.96" x2="10.16" y2="55.88" width="1.27" layer="1"/>
<wire x1="15.24" y1="60.96" x2="21.59" y2="67.31" width="1.27" layer="1"/>
<wire x1="10.16" y1="55.88" x2="10.16" y2="43.18" width="1.27" layer="1"/>
<wire x1="30.48" y1="60.96" x2="15.24" y2="60.96" width="1.27" layer="1"/>
<wire x1="46.99" y1="63.5" x2="49.53" y2="66.04" width="1.27" layer="16"/>
<wire x1="38.1" y1="63.5" x2="46.99" y2="63.5" width="1.27" layer="16"/>
<wire x1="35.56" y1="66.04" x2="38.1" y2="63.5" width="1.27" layer="16"/>
<wire x1="35.56" y1="40.64" x2="30.48" y2="45.72" width="1.27" layer="16"/>
<wire x1="30.48" y1="45.72" x2="30.48" y2="58.42" width="1.27" layer="16"/>
<wire x1="31.75" y1="3.81" x2="31.75" y2="20.32" width="1.27" layer="1"/>
<wire x1="31.75" y1="20.32" x2="30.48" y2="21.59" width="1.27" layer="1"/>
<wire x1="30.48" y1="21.59" x2="30.48" y2="26.67" width="1.27" layer="1"/>
<wire x1="30.48" y1="26.67" x2="31.75" y2="27.94" width="1.27" layer="1"/>
<wire x1="31.75" y1="27.94" x2="31.75" y2="31.75" width="1.27" layer="1"/>
<wire x1="31.75" y1="31.75" x2="30.48" y2="33.02" width="1.27" layer="1"/>
<wire x1="69.85" y1="63.5" x2="71.12" y2="63.5" width="1.27" layer="1"/>
<wire x1="60.96" y1="63.5" x2="69.85" y2="63.5" width="1.27" layer="16"/>









<via x="91.44" y="27.94" extent="1-16" drill="0.6096"/>
<via x="82.55" y="50.8" extent="1-16" drill="0.6096"/>

<via x="58.42" y="38.1" extent="1-16" drill="0.6096"/>
<via x="69.85" y="63.5" extent="1-16" drill="0.6096"/>


</signal>
<signal name="N$13" class="3">
<contactref element="QF2" pad="D1"/>
<contactref element="QF2" pad="D2"/>
<contactref element="FP2" pad="BPPAD"/>
<contactref element="R4" pad="P$2"/>
<wire x1="63.5" y1="58.42" x2="60.96" y2="58.42" width="1.27" layer="1"/>
<wire x1="66.04" y1="58.42" x2="63.5" y2="58.42" width="1.27" layer="1"/>
<wire x1="66.04" y1="49.53" x2="66.04" y2="58.42" width="1.27" layer="1"/>
</signal>
<signal name="N$16">
<contactref element="IC3" pad="26"/>
<contactref element="R6" pad="P$1"/>
<contactref element="R8" pad="P$2"/>
<wire x1="80.01" y1="17.78" x2="81.28" y2="19.05" width="0.254" layer="16"/>
<wire x1="81.28" y1="19.05" x2="90.17" y2="19.05" width="0.254" layer="16"/>
<wire x1="90.17" y1="19.05" x2="90.17" y2="31.75" width="0.254" layer="1"/>
<wire x1="90.17" y1="31.75" x2="69.85" y2="31.75" width="0.254" layer="16"/>
<wire x1="69.85" y1="31.75" x2="68.58" y2="33.02" width="0.254" layer="1"/>
<wire x1="68.58" y1="33.02" x2="68.58" y2="34.29" width="0.254" layer="1"/>
<wire x1="68.58" y1="34.29" x2="64.77" y2="38.1" width="0.254" layer="1"/>
<wire x1="64.77" y1="38.1" x2="60.96" y2="38.1" width="0.254" layer="1"/>
<wire x1="60.96" y1="38.1" x2="60.96" y2="40.64" width="0.254" layer="1"/>
<wire x1="60.96" y1="40.64" x2="58.42" y2="40.64" width="0.254" layer="1"/>
<via x="90.17" y="19.05" extent="1-16" drill="0.6096"/>
<via x="90.17" y="31.75" extent="1-16" drill="0.6096"/>
<via x="69.85" y="31.75" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$18">
<contactref element="IC3" pad="27"/>
<contactref element="R9" pad="P$1"/>
<contactref element="R11" pad="P$2"/>
<wire x1="82.55" y1="17.78" x2="80.01" y2="15.24" width="0.254" layer="1"/>
<wire x1="82.55" y1="22.86" x2="82.55" y2="17.78" width="0.254" layer="1"/>
<wire x1="81.28" y1="24.13" x2="82.55" y2="22.86" width="0.254" layer="16"/>
<wire x1="78.74" y1="24.13" x2="81.28" y2="24.13" width="0.254" layer="16"/>
<wire x1="73.66" y1="29.21" x2="78.74" y2="24.13" width="0.254" layer="16"/>
<wire x1="71.12" y1="29.21" x2="73.66" y2="29.21" width="0.254" layer="16"/>
<wire x1="67.31" y1="33.02" x2="71.12" y2="29.21" width="0.254" layer="1"/>
<wire x1="67.31" y1="34.29" x2="67.31" y2="33.02" width="0.254" layer="1"/>
<wire x1="59.69" y1="34.29" x2="67.31" y2="34.29" width="0.254" layer="1"/>
<wire x1="59.69" y1="31.75" x2="59.69" y2="34.29" width="0.254" layer="1"/>
<wire x1="53.34" y1="31.75" x2="59.69" y2="31.75" width="0.254" layer="1"/>
<wire x1="53.34" y1="34.29" x2="53.34" y2="31.75" width="0.254" layer="1"/>
<wire x1="46.99" y1="40.64" x2="53.34" y2="34.29" width="0.254" layer="1"/>
<wire x1="44.45" y1="40.64" x2="46.99" y2="40.64" width="0.254" layer="1"/>
<via x="82.55" y="22.86" extent="1-16" drill="0.6096"/>
<via x="71.12" y="29.21" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$20">
<contactref element="IC3" pad="28"/>
<contactref element="R10" pad="P$1"/>
<contactref element="R12" pad="P$2"/>
<wire x1="74.93" y1="17.78" x2="80.01" y2="12.7" width="0.254" layer="1"/>








<wire x1="74.93" y1="35.56" x2="74.93" y2="17.78" width="0.254" layer="1"/>
<wire x1="73.66" y1="36.83" x2="74.93" y2="35.56" width="0.254" layer="16"/>
<wire x1="36.83" y1="36.83" x2="73.66" y2="36.83" width="0.254" layer="16"/>
<wire x1="33.02" y1="40.64" x2="36.83" y2="36.83" width="0.254" layer="16"/>
<wire x1="30.48" y1="40.64" x2="33.02" y2="40.64" width="0.254" layer="1"/>
<via x="74.93" y="35.56" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$8">
<contactref element="IC3" pad="23"/>
<contactref element="R18" pad="P$1"/>
<contactref element="R5" pad="P$2"/>
<wire x1="74.93" y1="30.48" x2="80.01" y2="25.4" width="0.254" layer="16"/>
<wire x1="69.85" y1="30.48" x2="74.93" y2="30.48" width="0.254" layer="16"/>
<wire x1="68.58" y1="31.75" x2="69.85" y2="30.48" width="0.254" layer="16"/>
<wire x1="27.94" y1="31.75" x2="68.58" y2="31.75" width="0.254" layer="16"/>
<wire x1="27.94" y1="31.75" x2="27.94" y2="44.45" width="0.254" layer="1"/>
<wire x1="27.94" y1="44.45" x2="30.48" y2="46.99" width="0.254" layer="1"/>
<wire x1="30.48" y1="46.99" x2="30.48" y2="53.34" width="0.254" layer="1"/>
<wire x1="30.48" y1="53.34" x2="34.29" y2="57.15" width="0.254" layer="1"/>
<wire x1="34.29" y1="57.15" x2="34.29" y2="59.69" width="0.254" layer="1"/>
<wire x1="34.29" y1="59.69" x2="39.37" y2="64.77" width="0.254" layer="1"/>
<wire x1="39.37" y1="64.77" x2="39.37" y2="67.31" width="0.254" layer="1"/>
<wire x1="39.37" y1="67.31" x2="33.02" y2="67.31" width="0.254" layer="1"/>
<wire x1="33.02" y1="67.31" x2="33.02" y2="66.04" width="0.254" layer="1"/>



<wire x1="33.02" y1="66.04" x2="30.48" y2="66.04" width="0.254" layer="1"/>
<via x="27.94" y="31.75" extent="1-16" drill="0.6096"/>

</signal>
<signal name="N$21">
<contactref element="IC3" pad="25"/>
<contactref element="R4" pad="P$1"/>
<contactref element="R3" pad="P$2"/>
<wire x1="73.66" y1="13.97" x2="80.01" y2="20.32" width="0.254" layer="16"/>
<wire x1="68.58" y1="13.97" x2="73.66" y2="13.97" width="0.254" layer="16"/>
<wire x1="64.77" y1="10.16" x2="68.58" y2="13.97" width="0.254" layer="16"/>
<wire x1="63.5" y1="10.16" x2="64.77" y2="10.16" width="0.254" layer="16"/>
<wire x1="58.42" y1="5.08" x2="63.5" y2="10.16" width="0.254" layer="16"/>
<wire x1="52.07" y1="5.08" x2="58.42" y2="5.08" width="0.254" layer="16"/>
<wire x1="48.26" y1="8.89" x2="52.07" y2="5.08" width="0.254" layer="16"/>
<wire x1="15.24" y1="8.89" x2="48.26" y2="8.89" width="0.254" layer="16"/>
<wire x1="10.16" y1="13.97" x2="15.24" y2="8.89" width="0.254" layer="16"/>
<wire x1="10.16" y1="13.97" x2="10.16" y2="27.94" width="0.254" layer="16"/>
<wire x1="10.16" y1="27.94" x2="6.35" y2="27.94" width="0.254" layer="16"/>
<wire x1="6.35" y1="27.94" x2="5.08" y2="29.21" width="0.254" layer="16"/>
<wire x1="5.08" y1="29.21" x2="2.54" y2="29.21" width="0.254" layer="16"/>
<wire x1="2.54" y1="29.21" x2="1.27" y2="30.48" width="0.254" layer="16"/>
<wire x1="1.27" y1="30.48" x2="1.27" y2="62.23" width="0.254" layer="16"/>
<wire x1="1.27" y1="62.23" x2="27.94" y2="62.23" width="0.254" layer="16"/>
<wire x1="27.94" y1="62.23" x2="30.48" y2="59.69" width="0.254" layer="16"/>
<wire x1="30.48" y1="59.69" x2="57.15" y2="59.69" width="0.254" layer="16"/>
<wire x1="57.15" y1="59.69" x2="58.42" y2="58.42" width="0.254" layer="16"/>
<wire x1="58.42" y1="63.5" x2="60.96" y2="66.04" width="0.254" layer="1"/>
<wire x1="58.42" y1="58.42" x2="58.42" y2="63.5" width="0.254" layer="1"/>
</signal>
<signal name="N$14">
<contactref element="QF0" pad="G"/>
<contactref element="IC3" pad="4"/>
<wire x1="31.75" y1="59.69" x2="38.1" y2="66.04" width="0.254" layer="1"/>
<wire x1="31.75" y1="57.15" x2="31.75" y2="59.69" width="0.254" layer="1"/>
<wire x1="13.97" y1="57.15" x2="31.75" y2="57.15" width="0.254" layer="1"/>
<wire x1="13.97" y1="22.86" x2="13.97" y2="57.15" width="0.254" layer="1"/>
<wire x1="27.94" y1="8.89" x2="13.97" y2="22.86" width="0.254" layer="1"/>
<wire x1="27.94" y1="2.54" x2="27.94" y2="8.89" width="0.254" layer="1"/>
<wire x1="29.21" y1="1.27" x2="27.94" y2="2.54" width="0.254" layer="1"/>
<wire x1="29.21" y1="1.27" x2="82.55" y2="1.27" width="0.254" layer="1"/>
<wire x1="82.55" y1="1.27" x2="82.55" y2="7.62" width="0.254" layer="1"/>
<wire x1="82.55" y1="7.62" x2="73.66" y2="16.51" width="0.254" layer="1"/>
<wire x1="73.66" y1="16.51" x2="73.66" y2="17.78" width="0.254" layer="1"/>
<wire x1="73.66" y1="17.78" x2="77.47" y2="21.59" width="0.254" layer="16"/>
<wire x1="77.47" y1="21.59" x2="86.36" y2="21.59" width="0.254" layer="16"/>
<wire x1="86.36" y1="21.59" x2="87.63" y2="20.32" width="0.254" layer="16"/>
<via x="73.66" y="17.78" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$22">
<contactref element="QF1" pad="G"/>
<contactref element="IC3" pad="5"/>
<wire x1="57.15" y1="60.96" x2="52.07" y2="66.04" width="0.254" layer="1"/>
<wire x1="57.15" y1="57.15" x2="57.15" y2="60.96" width="0.254" layer="1"/>
<wire x1="73.66" y1="57.15" x2="57.15" y2="57.15" width="0.254" layer="16"/>
<wire x1="76.2" y1="59.69" x2="73.66" y2="57.15" width="0.254" layer="16"/>
<wire x1="81.28" y1="64.77" x2="76.2" y2="59.69" width="0.254" layer="1"/>
<wire x1="81.28" y1="67.31" x2="81.28" y2="64.77" width="0.254" layer="1"/>
<wire x1="83.82" y1="67.31" x2="81.28" y2="67.31" width="0.254" layer="1"/>
<wire x1="83.82" y1="27.94" x2="83.82" y2="67.31" width="0.254" layer="1"/>
<wire x1="82.55" y1="26.67" x2="83.82" y2="27.94" width="0.254" layer="1"/>
<wire x1="82.55" y1="26.67" x2="86.36" y2="22.86" width="0.254" layer="16"/>
<wire x1="86.36" y1="22.86" x2="87.63" y2="22.86" width="0.254" layer="16"/>
<via x="57.15" y="57.15" extent="1-16" drill="0.6096"/>
<via x="76.2" y="59.69" extent="1-16" drill="0.6096"/>
<via x="82.55" y="26.67" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$23">
<contactref element="IC3" pad="6"/>
<contactref element="QF2" pad="G"/>
<wire x1="68.58" y1="63.5" x2="66.04" y2="66.04" width="0.254" layer="1"/>
<wire x1="68.58" y1="57.15" x2="68.58" y2="63.5" width="0.254" layer="1"/>
<wire x1="73.66" y1="52.07" x2="68.58" y2="57.15" width="0.254" layer="1"/>
<wire x1="88.9" y1="52.07" x2="73.66" y2="52.07" width="0.254" layer="16"/>
<wire x1="95.25" y1="45.72" x2="88.9" y2="52.07" width="0.254" layer="16"/>
<wire x1="95.25" y1="26.67" x2="95.25" y2="45.72" width="0.254" layer="16"/>
<wire x1="88.9" y1="26.67" x2="95.25" y2="26.67" width="0.254" layer="16"/>
<wire x1="87.63" y1="25.4" x2="88.9" y2="26.67" width="0.254" layer="16"/>
<via x="73.66" y="52.07" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$24">
<contactref element="IC3" pad="11"/>
<contactref element="QF3" pad="G"/>
<wire x1="66.04" y1="40.64" x2="77.47" y2="40.64" width="0.254" layer="16"/>
<wire x1="77.47" y1="40.64" x2="78.74" y2="41.91" width="0.254" layer="16"/>
<wire x1="78.74" y1="41.91" x2="83.82" y2="41.91" width="0.254" layer="16"/>
<wire x1="83.82" y1="41.91" x2="87.63" y2="38.1" width="0.254" layer="16"/>
</signal>
<signal name="N$25">
<contactref element="QF4" pad="G"/>
<contactref element="IC3" pad="12"/>
<wire x1="55.88" y1="36.83" x2="52.07" y2="40.64" width="0.254" layer="1"/>
<wire x1="55.88" y1="33.02" x2="55.88" y2="36.83" width="0.254" layer="1"/>
<wire x1="55.88" y1="33.02" x2="57.15" y2="34.29" width="0.254" layer="16"/>
<wire x1="57.15" y1="34.29" x2="76.2" y2="34.29" width="0.254" layer="16"/>
<wire x1="76.2" y1="34.29" x2="78.74" y2="36.83" width="0.254" layer="16"/>
<wire x1="78.74" y1="36.83" x2="88.9" y2="36.83" width="0.254" layer="16"/>
<wire x1="88.9" y1="36.83" x2="90.17" y2="38.1" width="0.254" layer="16"/>
<wire x1="90.17" y1="38.1" x2="90.17" y2="40.64" width="0.254" layer="16"/>
<wire x1="90.17" y1="40.64" x2="87.63" y2="40.64" width="0.254" layer="16"/>
<via x="55.88" y="33.02" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$26">
<contactref element="IC3" pad="13"/>
<contactref element="QF5" pad="G"/>
<wire x1="38.1" y1="40.64" x2="39.37" y2="41.91" width="0.254" layer="16"/>
<wire x1="39.37" y1="41.91" x2="76.2" y2="41.91" width="0.254" layer="16"/>
<wire x1="76.2" y1="41.91" x2="78.74" y2="44.45" width="0.254" layer="16"/>
<wire x1="78.74" y1="44.45" x2="86.36" y2="44.45" width="0.254" layer="16"/>


<wire x1="86.36" y1="44.45" x2="87.63" y2="43.18" width="0.254" layer="16"/>




</signal>
<signal name="N$28" class="3">
<contactref element="IC3" pad="14"/>
<contactref element="D2" pad="C"/>
<contactref element="U$1" pad="P$1"/>
<contactref element="U$1" pad="P$2"/>
<wire x1="10.16" y1="33.02" x2="12.7" y2="33.02" width="1.27" layer="1"/>
<wire x1="12.7" y1="33.02" x2="15.24" y2="33.02" width="1.27" layer="16"/>
<wire x1="85.09" y1="48.26" x2="87.63" y2="45.72" width="1.27" layer="16"/>
<wire x1="78.74" y1="48.26" x2="85.09" y2="48.26" width="1.27" layer="16"/>
<wire x1="73.66" y1="43.18" x2="78.74" y2="48.26" width="1.27" layer="16"/>
<wire x1="72.39" y1="41.91" x2="73.66" y2="43.18" width="1.27" layer="1"/>
<wire x1="72.39" y1="35.56" x2="72.39" y2="41.91" width="1.27" layer="1"/>
<wire x1="20.32" y1="35.56" x2="72.39" y2="35.56" width="1.27" layer="16"/>
<wire x1="17.78" y1="38.1" x2="20.32" y2="35.56" width="1.27" layer="16"/>
<wire x1="15.24" y1="35.56" x2="17.78" y2="38.1" width="1.27" layer="1"/>
<wire x1="15.24" y1="33.02" x2="15.24" y2="35.56" width="1.27" layer="1"/>



<via x="73.66" y="43.18" extent="1-16" drill="0.6096"/>
<via x="72.39" y="35.56" extent="1-16" drill="0.6096"/>
<via x="17.78" y="38.1" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$6" class="2">
<contactref element="U$1" pad="P$9"/>
<contactref element="U$1" pad="P$4"/>
<contactref element="IC1" pad="1"/>
<contactref element="R17" pad="2"/>
<wire x1="20.32" y1="33.02" x2="20.32" y2="40.64" width="1.27" layer="1"/>

<wire x1="3.81" y1="30.48" x2="8.89" y2="35.56" width="1.27" layer="16"/>
<wire x1="8.89" y1="35.56" x2="17.78" y2="35.56" width="1.27" layer="16"/>
<wire x1="17.78" y1="35.56" x2="20.32" y2="33.02" width="1.27" layer="16"/>
<wire x1="3.81" y1="46.99" x2="3.81" y2="59.69" width="1.27" layer="16"/>


<wire x1="13.97" y1="46.99" x2="3.81" y2="46.99" width="1.27" layer="16"/>
<wire x1="20.32" y1="40.64" x2="13.97" y2="46.99" width="1.27" layer="16"/>
</signal>
<signal name="N$5">
<contactref element="IC3" pad="24"/>
<contactref element="R2" pad="P$1"/>
<contactref element="R7" pad="P$2"/>
<wire x1="80.01" y1="22.86" x2="78.74" y2="22.86" width="0.254" layer="16"/>
<wire x1="78.74" y1="22.86" x2="73.66" y2="27.94" width="0.254" layer="16"/>
<wire x1="73.66" y1="27.94" x2="73.66" y2="33.02" width="0.254" layer="1"/>
<wire x1="73.66" y1="33.02" x2="77.47" y2="33.02" width="0.254" layer="16"/>
<wire x1="77.47" y1="33.02" x2="78.74" y2="34.29" width="0.254" layer="16"/>
<wire x1="78.74" y1="34.29" x2="90.17" y2="34.29" width="0.254" layer="16"/>
<wire x1="90.17" y1="34.29" x2="90.17" y2="60.96" width="0.254" layer="1"/>
<wire x1="90.17" y1="60.96" x2="41.91" y2="60.96" width="0.254" layer="16"/>
<wire x1="41.91" y1="60.96" x2="44.45" y2="63.5" width="0.254" layer="1"/>
<wire x1="44.45" y1="63.5" x2="44.45" y2="66.04" width="0.254" layer="1"/>










<wire x1="44.45" y1="66.04" x2="46.99" y2="66.04" width="0.254" layer="1"/>
<via x="73.66" y="27.94" extent="1-16" drill="0.6096"/>
<via x="73.66" y="33.02" extent="1-16" drill="0.6096"/>
<via x="90.17" y="34.29" extent="1-16" drill="0.6096"/>
<via x="90.17" y="60.96" extent="1-16" drill="0.6096"/>
<via x="41.91" y="60.96" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$11" class="3">
<contactref element="FP1" pad="BPPAD"/>
<contactref element="QF1" pad="D2"/>
<contactref element="QF1" pad="D1"/>
<contactref element="R2" pad="P$2"/>
<wire x1="49.53" y1="58.42" x2="46.99" y2="58.42" width="1.27" layer="1"/>
<wire x1="52.07" y1="58.42" x2="49.53" y2="58.42" width="1.27" layer="1"/>
<wire x1="52.07" y1="49.53" x2="52.07" y2="58.42" width="1.27" layer="1"/>
</signal>
<signal name="N$12" class="3">
<contactref element="QF0" pad="D2"/>
<contactref element="QF0" pad="D1"/>
<contactref element="FP0" pad="BPPAD"/>
<contactref element="R18" pad="P$2"/>
<wire x1="38.1" y1="58.42" x2="35.56" y2="58.42" width="1.27" layer="1"/>
<wire x1="35.56" y1="58.42" x2="33.02" y2="58.42" width="1.27" layer="16"/>
<wire x1="38.1" y1="49.53" x2="38.1" y2="58.42" width="1.27" layer="1"/>
</signal>
<signal name="N$9" class="3">
<contactref element="QF3" pad="D2"/>
<contactref element="QF3" pad="D1"/>
<contactref element="FP3" pad="BPPAD"/>
<contactref element="R6" pad="P$2"/>
<wire x1="63.5" y1="33.02" x2="60.96" y2="33.02" width="1.27" layer="1"/>
<wire x1="66.04" y1="33.02" x2="63.5" y2="33.02" width="1.27" layer="1"/>
<wire x1="66.04" y1="24.13" x2="66.04" y2="33.02" width="1.27" layer="1"/>
</signal>
<signal name="N$15" class="3">
<contactref element="QF4" pad="D2"/>
<contactref element="QF4" pad="D1"/>
<contactref element="FP4" pad="BPPAD"/>
<contactref element="R9" pad="P$2"/>
<wire x1="49.53" y1="33.02" x2="46.99" y2="33.02" width="1.27" layer="1"/>
<wire x1="52.07" y1="33.02" x2="49.53" y2="33.02" width="1.27" layer="1"/>
<wire x1="52.07" y1="24.13" x2="52.07" y2="33.02" width="1.27" layer="1"/>
</signal>
<signal name="N$17" class="3">
<contactref element="QF5" pad="D2"/>
<contactref element="QF5" pad="D1"/>
<contactref element="FP5" pad="BPPAD"/>
<contactref element="R10" pad="P$2"/>
<wire x1="35.56" y1="33.02" x2="33.02" y2="33.02" width="1.27" layer="1"/>
<wire x1="38.1" y1="33.02" x2="35.56" y2="33.02" width="1.27" layer="1"/>
<wire x1="38.1" y1="24.13" x2="38.1" y2="33.02" width="1.27" layer="1"/>
</signal>
<signal name="N$10" class="2">
<contactref element="F1" pad="2"/>
<contactref element="D1" pad="C"/>
<contactref element="C7" pad="1"/>
<contactref element="C1" pad="1"/>
<contactref element="IC6" pad="IN"/>
<contactref element="IC1" pad="3"/>
<wire x1="33.02" y1="16.51" x2="35.56" y2="13.97" width="1.27" layer="16"/>
<wire x1="29.21" y1="16.51" x2="33.02" y2="16.51" width="1.27" layer="16"/>
<wire x1="43.18" y1="13.97" x2="48.26" y2="13.97" width="1.27" layer="1"/>
<wire x1="43.18" y1="15.24" x2="43.18" y2="13.97" width="1.27" layer="1"/>
<wire x1="41.91" y1="16.51" x2="43.18" y2="15.24" width="1.27" layer="1"/>
<wire x1="35.56" y1="16.51" x2="41.91" y2="16.51" width="1.27" layer="1"/>
<wire x1="35.56" y1="13.97" x2="35.56" y2="16.51" width="1.27" layer="1"/>
<wire x1="6.35" y1="22.86" x2="3.81" y2="25.4" width="1.27" layer="1"/>
<wire x1="6.35" y1="21.59" x2="6.35" y2="22.86" width="1.27" layer="1"/>
<wire x1="17.78" y1="10.16" x2="6.35" y2="21.59" width="1.27" layer="1"/>
<wire x1="17.78" y1="6.35" x2="24.13" y2="6.35" width="1.27" layer="1"/>
<wire x1="17.78" y1="6.35" x2="17.78" y2="10.16" width="1.27" layer="1"/>
<wire x1="22.86" y1="10.16" x2="29.21" y2="16.51" width="1.27" layer="16"/>
<wire x1="17.78" y1="10.16" x2="22.86" y2="10.16" width="1.27" layer="16"/>


</signal>
<signal name="N$19">
<contactref element="IC4" pad="6"/>
<contactref element="U$3" pad="P$1"/>
<contactref element="U$6" pad="P$1"/>
<wire x1="83.82" y1="57.15" x2="87.63" y2="53.34" width="0.254" layer="16"/>
<wire x1="76.2" y1="57.15" x2="83.82" y2="57.15" width="0.254" layer="16"/>
<wire x1="74.93" y1="58.42" x2="76.2" y2="57.15" width="0.254" layer="1"/>
<wire x1="74.93" y1="62.23" x2="74.93" y2="66.04" width="0.254" layer="1"/>
<wire x1="74.93" y1="62.23" x2="74.93" y2="58.42" width="0.254" layer="1"/>
<wire x1="74.93" y1="66.04" x2="73.66" y2="67.31" width="0.254" layer="1"/>
<wire x1="24.13" y1="67.31" x2="29.21" y2="62.23" width="0.254" layer="16"/>
<wire x1="29.21" y1="62.23" x2="74.93" y2="62.23" width="0.254" layer="16"/>
<via x="76.2" y="57.15" extent="1-16" drill="0.6096"/>





<via x="74.93" y="62.23" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$30">
<contactref element="IC4" pad="7"/>
<contactref element="U$4" pad="P$1"/>
<contactref element="U$7" pad="P$1"/>
<wire x1="93.98" y1="62.23" x2="87.63" y2="55.88" width="0.254" layer="16"/>

<wire x1="95.25" y1="62.23" x2="93.98" y2="62.23" width="0.254" layer="16"/>
<wire x1="95.25" y1="67.31" x2="95.25" y2="62.23" width="0.254" layer="16"/>

<wire x1="76.2" y1="67.31" x2="95.25" y2="67.31" width="0.254" layer="16"/>
<wire x1="26.67" y1="67.31" x2="68.58" y2="67.31" width="0.254" layer="16"/>
<wire x1="68.58" y1="67.31" x2="71.12" y2="64.77" width="0.254" layer="16"/>
<wire x1="71.12" y1="64.77" x2="73.66" y2="64.77" width="0.254" layer="16"/>
<wire x1="73.66" y1="64.77" x2="76.2" y2="67.31" width="0.254" layer="16"/>











</signal>
<signal name="N$31">
<contactref element="Q1" pad="2"/>
<contactref element="IC3" pad="9"/>
<contactref element="C4" pad="2"/>
<wire x1="93.98" y1="25.4" x2="93.98" y2="30.48" width="0.254" layer="1"/>
<wire x1="91.44" y1="33.02" x2="87.63" y2="33.02" width="0.254" layer="16"/>
<wire x1="93.98" y1="30.48" x2="91.44" y2="33.02" width="0.254" layer="16"/>
</signal>
<signal name="N$32">
<contactref element="C5" pad="2"/>
<contactref element="IC3" pad="10"/>
<contactref element="Q1" pad="1"/>
<wire x1="87.63" y1="35.56" x2="93.98" y2="35.56" width="0.254" layer="16"/>
<wire x1="93.98" y1="35.56" x2="93.98" y2="41.91" width="0.254" layer="1"/>
</signal>
<signal name="VCC" class="1">
<contactref element="R15" pad="P$2"/>
<contactref element="R14" pad="P$2"/>
<contactref element="C8" pad="1"/>
<contactref element="C6" pad="1"/>
................................................................................
<contactref element="IC3" pad="7"/>
<contactref element="C2" pad="1"/>
<contactref element="IC3" pad="20"/>
<contactref element="IC4" pad="8"/>
<contactref element="C3" pad="1"/>
<contactref element="IC6" pad="OUT"/>
<contactref element="R13" pad="P$2"/>
<wire x1="40.64" y1="8.89" x2="40.64" y2="11.43" width="1.27" layer="1"/>
<wire x1="40.64" y1="11.43" x2="40.64" y2="13.97" width="1.27" layer="1"/>
<wire x1="38.1" y1="6.35" x2="40.64" y2="8.89" width="1.27" layer="1"/>
<wire x1="40.64" y1="11.43" x2="48.26" y2="3.81" width="1.27" layer="1"/>
<wire x1="60.96" y1="8.89" x2="63.5" y2="11.43" width="1.27" layer="1"/>
<wire x1="54.61" y1="8.89" x2="60.96" y2="8.89" width="1.27" layer="1"/>
<wire x1="53.34" y1="10.16" x2="54.61" y2="8.89" width="1.27" layer="1"/>
<wire x1="50.8" y1="10.16" x2="53.34" y2="10.16" width="1.27" layer="1"/>
<wire x1="50.8" y1="6.35" x2="50.8" y2="10.16" width="1.27" layer="1"/>
<wire x1="48.26" y1="3.81" x2="50.8" y2="6.35" width="1.27" layer="1"/>
<wire x1="72.39" y1="3.81" x2="69.85" y2="3.81" width="1.27" layer="1"/>
<wire x1="85.09" y1="33.02" x2="80.01" y2="33.02" width="1.27" layer="16"/>
<wire x1="85.09" y1="58.42" x2="85.09" y2="66.04" width="1.27" layer="1"/>
<wire x1="85.09" y1="33.02" x2="85.09" y2="58.42" width="1.27" layer="1"/>
<wire x1="85.09" y1="27.94" x2="87.63" y2="27.94" width="1.27" layer="1"/>
<wire x1="85.09" y1="27.94" x2="85.09" y2="33.02" width="1.27" layer="1"/>
<wire x1="85.09" y1="58.42" x2="87.63" y2="58.42" width="1.27" layer="1"/>
<wire x1="91.44" y1="12.7" x2="88.9" y2="10.16" width="1.27" layer="1"/>
<wire x1="88.9" y1="10.16" x2="85.09" y2="10.16" width="1.27" layer="1"/>
<wire x1="85.09" y1="10.16" x2="85.09" y2="27.94" width="1.27" layer="1"/>
<wire x1="72.39" y1="3.81" x2="76.2" y2="7.62" width="1.27" layer="16"/>
<wire x1="76.2" y1="7.62" x2="93.98" y2="7.62" width="1.27" layer="16"/>
<wire x1="93.98" y1="7.62" x2="96.52" y2="10.16" width="1.27" layer="16"/>
<wire x1="96.52" y1="10.16" x2="96.52" y2="12.7" width="1.27" layer="16"/>
<wire x1="96.52" y1="12.7" x2="91.44" y2="12.7" width="1.27" layer="16"/>
<wire x1="63.5" y1="11.43" x2="64.77" y2="10.16" width="1.27" layer="1"/>
<wire x1="64.77" y1="10.16" x2="64.77" y2="8.89" width="1.27" layer="1"/>
<wire x1="64.77" y1="8.89" x2="67.31" y2="8.89" width="1.27" layer="16"/>
<wire x1="67.31" y1="8.89" x2="72.39" y2="3.81" width="1.27" layer="16"/>
<via x="85.09" y="33.02" extent="1-16" drill="0.6096"/>
<via x="64.77" y="8.89" extent="1-16" drill="0.6096"/>


</signal>
<signal name="N$35">
<contactref element="IC3" pad="3"/>
<contactref element="R1" pad="P$1"/>
<contactref element="R19" pad="P$1"/>
<wire x1="90.17" y1="15.24" x2="87.63" y2="17.78" width="0.254" layer="1"/>
<wire x1="90.17" y1="13.97" x2="90.17" y2="15.24" width="0.254" layer="1"/>
<wire x1="90.17" y1="11.43" x2="90.17" y2="13.97" width="0.254" layer="16"/>
<wire x1="74.93" y1="11.43" x2="90.17" y2="11.43" width="0.254" layer="16"/>
<wire x1="60.96" y1="3.81" x2="62.23" y2="2.54" width="0.254" layer="1"/>
<wire x1="62.23" y1="2.54" x2="80.01" y2="2.54" width="0.254" layer="1"/>
<wire x1="80.01" y1="2.54" x2="80.01" y2="6.35" width="0.254" layer="1"/>
<wire x1="80.01" y1="6.35" x2="74.93" y2="11.43" width="0.254" layer="1"/>
<via x="90.17" y="13.97" extent="1-16" drill="0.6096"/>



</signal>
<signal name="N$34">
<contactref element="IC3" pad="15"/>
<contactref element="LED1" pad="K"/>
<wire x1="82.55" y1="43.18" x2="80.01" y2="45.72" width="0.254" layer="1"/>
<wire x1="82.55" y1="27.94" x2="82.55" y2="43.18" width="0.254" layer="1"/>
<wire x1="81.28" y1="26.67" x2="82.55" y2="27.94" width="0.254" layer="1"/>
<wire x1="77.47" y1="26.67" x2="81.28" y2="26.67" width="0.254" layer="1"/>
<wire x1="77.47" y1="22.86" x2="77.47" y2="26.67" width="0.254" layer="1"/>
<wire x1="71.12" y1="16.51" x2="77.47" y2="22.86" width="0.254" layer="16"/>
<wire x1="62.23" y1="16.51" x2="71.12" y2="16.51" width="0.254" layer="16"/>









<wire x1="60.96" y1="15.24" x2="62.23" y2="16.51" width="0.254" layer="16"/>


<via x="77.47" y="22.86" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$38">
<contactref element="LED1" pad="A"/>
<contactref element="R14" pad="P$1"/>
<wire x1="69.85" y1="13.97" x2="72.39" y2="11.43" width="0.254" layer="1"/>
<wire x1="63.5" y1="13.97" x2="69.85" y2="13.97" width="0.254" layer="1"/>
<wire x1="59.69" y1="13.97" x2="63.5" y2="13.97" width="0.254" layer="16"/>
<wire x1="59.69" y1="13.97" x2="58.42" y2="15.24" width="0.254" layer="16"/>
<via x="63.5" y="13.97" extent="1-16" drill="0.6096"/>


</signal>
<signal name="N$3" class="2">
<contactref element="F1" pad="1"/>
<contactref element="BRIDGE" pad="V+"/>
<wire x1="12.7" y1="25.4" x2="8.89" y2="29.21" width="1.27" layer="1"/>
<wire x1="12.7" y1="20.32" x2="12.7" y2="25.4" width="1.27" layer="1"/>

<wire x1="17.78" y1="15.24" x2="12.7" y2="20.32" width="1.27" layer="1"/>

</signal>
<signal name="N$1" class="2">
<contactref element="BRIDGE" pad="AC1"/>
<contactref element="U$8" pad="P$1"/>
<wire x1="15.24" y1="7.62" x2="8.89" y2="13.97" width="1.27" layer="1"/>

<wire x1="15.24" y1="2.54" x2="15.24" y2="7.62" width="1.27" layer="1"/>
</signal>
<signal name="N$2" class="4">
<contactref element="BRIDGE" pad="AC2"/>
<contactref element="U$9" pad="P$1"/>
<wire x1="8.89" y1="16.51" x2="8.89" y2="21.59" width="1.27" layer="16"/>
<wire x1="6.35" y1="13.97" x2="8.89" y2="16.51" width="1.27" layer="16"/>
<wire x1="6.35" y1="2.54" x2="6.35" y2="13.97" width="1.27" layer="16"/>
</signal>
<signal name="N$7" class="2">
<contactref element="HOT1" pad="BPPAD"/>
<contactref element="HOT2" pad="BPPAD"/>
<contactref element="U$1" pad="P$5"/>
<contactref element="U$1" pad="P$8"/>






<wire x1="22.86" y1="33.02" x2="22.86" y2="40.64" width="1.27" layer="1"/>



<wire x1="22.86" y1="24.13" x2="22.86" y2="33.02" width="1.27" layer="1"/>
<wire x1="22.86" y1="40.64" x2="22.86" y2="49.53" width="1.27" layer="1"/>

</signal>
<signal name="N$4" class="2">
<contactref element="IC1" pad="2"/>
<contactref element="R17" pad="1"/>

<wire x1="3.81" y1="27.94" x2="6.35" y2="27.94" width="1.27" layer="1"/>
<wire x1="6.35" y1="27.94" x2="6.35" y2="41.91" width="1.27" layer="1"/>
<wire x1="6.35" y1="41.91" x2="3.81" y2="44.45" width="1.27" layer="1"/>

</signal>
<signal name="N$40">
<contactref element="IC4" pad="3"/>
<contactref element="IC3" pad="19"/>
<wire x1="80.01" y1="35.56" x2="77.47" y2="38.1" width="0.254" layer="1"/>
<wire x1="77.47" y1="38.1" x2="77.47" y2="50.8" width="0.254" layer="1"/>
<wire x1="77.47" y1="50.8" x2="80.01" y2="53.34" width="0.254" layer="1"/>
</signal>
<signal name="N$39">
<contactref element="JP1" pad="4"/>
<contactref element="R13" pad="P$1"/>
<wire x1="63.5" y1="3.81" x2="64.77" y2="2.54" width="0.254" layer="16"/>
<wire x1="64.77" y1="2.54" x2="83.82" y2="2.54" width="0.254" layer="16"/>
<wire x1="83.82" y1="2.54" x2="86.36" y2="5.08" width="0.254" layer="16"/>
</signal>
<signal name="N$36">
<contactref element="R1" pad="P$2"/>
<contactref element="JP1" pad="2"/>
<wire x1="74.93" y1="3.81" x2="80.01" y2="3.81" width="0.254" layer="16"/>
<wire x1="80.01" y1="3.81" x2="81.28" y2="5.08" width="0.254" layer="16"/>
</signal>
<signal name="N$37">
<contactref element="IC3" pad="1"/>
<contactref element="R15" pad="P$1"/>
<contactref element="C9" pad="2"/>
<wire x1="86.36" y1="13.97" x2="87.63" y2="12.7" width="0.254" layer="16"/>
<wire x1="74.93" y1="13.97" x2="86.36" y2="13.97" width="0.254" layer="16"/>
<wire x1="73.66" y1="12.7" x2="74.93" y2="13.97" width="0.254" layer="16"/>
<wire x1="71.12" y1="12.7" x2="73.66" y2="12.7" width="0.254" layer="16"/>
<wire x1="69.85" y1="11.43" x2="71.12" y2="12.7" width="0.254" layer="16"/>
<wire x1="66.04" y1="6.35" x2="69.85" y2="10.16" width="0.254" layer="1"/>
<wire x1="69.85" y1="10.16" x2="69.85" y2="11.43" width="0.254" layer="1"/>
</signal>
<signal name="N$29">
<contactref element="JP1" pad="1"/>
<contactref element="C9" pad="1"/>
<wire x1="66.04" y1="3.81" x2="68.58" y2="6.35" width="0.254" layer="1"/>
<wire x1="68.58" y1="6.35" x2="78.74" y2="6.35" width="0.254" layer="1"/>
<wire x1="78.74" y1="6.35" x2="78.74" y2="5.08" width="0.254" layer="1"/>
</signal>
<signal name="N$33">
<contactref element="IC4" pad="1"/>
<contactref element="R16" pad="P$2"/>
<contactref element="R20" pad="P$1"/>
<wire x1="81.28" y1="59.69" x2="80.01" y2="58.42" width="0.254" layer="16"/>
<wire x1="90.17" y1="59.69" x2="81.28" y2="59.69" width="0.254" layer="16"/>
<wire x1="93.98" y1="63.5" x2="90.17" y2="59.69" width="0.254" layer="16"/>
<wire x1="54.61" y1="7.62" x2="58.42" y2="11.43" width="0.254" layer="16"/>
<wire x1="53.34" y1="7.62" x2="54.61" y2="7.62" width="0.254" layer="16"/>
<wire x1="53.34" y1="7.62" x2="66.04" y2="7.62" width="0.254" layer="1"/>
<wire x1="66.04" y1="7.62" x2="68.58" y2="10.16" width="0.254" layer="1"/>
<wire x1="68.58" y1="10.16" x2="93.98" y2="10.16" width="0.254" layer="16"/>
<wire x1="93.98" y1="10.16" x2="95.25" y2="11.43" width="0.254" layer="1"/>
<wire x1="95.25" y1="11.43" x2="95.25" y2="62.23" width="0.254" layer="1"/>
<wire x1="95.25" y1="62.23" x2="93.98" y2="63.5" width="0.254" layer="1"/>
<wire x1="54.61" y1="7.62" x2="58.42" y2="11.43" width="0.254" layer="16"/>
<wire x1="54.61" y1="7.62" x2="58.42" y2="11.43" width="0.254" layer="16"/>
<via x="53.34" y="7.62" extent="1-16" drill="0.6096"/>
<via x="68.58" y="10.16" extent="1-16" drill="0.6096"/>
<via x="93.98" y="10.16" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$42">
<contactref element="JP1" pad="3"/>
<contactref element="R16" pad="P$1"/>
<contactref element="IC3" pad="2"/>

<wire x1="87.63" y1="15.24" x2="92.71" y2="20.32" width="0.254" layer="16"/>
<wire x1="92.71" y1="20.32" x2="92.71" y2="24.13" width="0.254" layer="16"/>
<wire x1="92.71" y1="24.13" x2="95.25" y2="24.13" width="0.254" layer="16"/>
<wire x1="95.25" y1="24.13" x2="96.52" y2="25.4" width="0.254" layer="16"/>
<wire x1="96.52" y1="25.4" x2="96.52" y2="55.88" width="0.254" layer="16"/>
<wire x1="96.52" y1="55.88" x2="93.98" y2="55.88" width="0.254" layer="16"/>
<wire x1="83.82" y1="5.08" x2="87.63" y2="15.24" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$27">
<contactref element="R19" pad="P$2"/>
<contactref element="IC4" pad="4"/>
<contactref element="R21" pad="P$1"/>
<wire x1="78.74" y1="49.53" x2="80.01" y2="50.8" width="0.254" layer="16"/>


<wire x1="76.2" y1="49.53" x2="78.74" y2="49.53" width="0.254" layer="16"/>
<wire x1="71.12" y1="44.45" x2="76.2" y2="49.53" width="0.254" layer="1"/>
<wire x1="71.12" y1="30.48" x2="71.12" y2="44.45" width="0.254" layer="1"/>
<wire x1="72.39" y1="29.21" x2="71.12" y2="30.48" width="0.254" layer="1"/>
<wire x1="72.39" y1="27.94" x2="72.39" y2="29.21" width="0.254" layer="1"/>
<wire x1="73.66" y1="26.67" x2="72.39" y2="27.94" width="0.254" layer="1"/>
<wire x1="73.66" y1="21.59" x2="73.66" y2="26.67" width="0.254" layer="1"/>


<wire x1="67.31" y1="15.24" x2="73.66" y2="21.59" width="0.254" layer="1"/>
<wire x1="62.23" y1="15.24" x2="67.31" y2="15.24" width="0.254" layer="1"/>
<wire x1="62.23" y1="12.7" x2="62.23" y2="15.24" width="0.254" layer="1"/>
<wire x1="60.96" y1="11.43" x2="62.23" y2="12.7" width="0.254" layer="1"/>
<wire x1="55.88" y1="3.81" x2="55.88" y2="6.35" width="0.254" layer="1"/>
<wire x1="55.88" y1="6.35" x2="60.96" y2="11.43" width="0.254" layer="16"/>
<via x="76.2" y="49.53" extent="1-16" drill="0.6096"/>
<via x="55.88" y="6.35" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$43">
<contactref element="IC3" pad="18"/>
<contactref element="R20" pad="P$2"/>
<wire x1="76.2" y1="38.1" x2="80.01" y2="38.1" width="0.254" layer="16"/>



<wire x1="76.2" y1="19.05" x2="76.2" y2="38.1" width="0.254" layer="1"/>
<wire x1="72.39" y1="15.24" x2="76.2" y2="19.05" width="0.254" layer="16"/>
<wire x1="66.04" y1="15.24" x2="72.39" y2="15.24" width="0.254" layer="16"/>
<wire x1="63.5" y1="12.7" x2="66.04" y2="15.24" width="0.254" layer="16"/>
<wire x1="62.23" y1="12.7" x2="63.5" y2="12.7" width="0.254" layer="16"/>
<wire x1="62.23" y1="10.16" x2="62.23" y2="12.7" width="0.254" layer="16"/>
<wire x1="58.42" y1="6.35" x2="62.23" y2="10.16" width="0.254" layer="16"/>
<wire x1="58.42" y1="3.81" x2="58.42" y2="6.35" width="0.254" layer="1"/>
<via x="76.2" y="38.1" extent="1-16" drill="0.6096"/>
<via x="76.2" y="19.05" extent="1-16" drill="0.6096"/>
<via x="58.42" y="6.35" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$44">
<contactref element="IC3" pad="17"/>
<contactref element="R21" pad="P$2"/>
<wire x1="78.74" y1="39.37" x2="80.01" y2="40.64" width="0.254" layer="16"/>


<wire x1="64.77" y1="39.37" x2="78.74" y2="39.37" width="0.254" layer="16"/>
<wire x1="62.23" y1="39.37" x2="64.77" y2="39.37" width="0.254" layer="1"/>
<wire x1="62.23" y1="41.91" x2="62.23" y2="39.37" width="0.254" layer="1"/>
<wire x1="29.21" y1="41.91" x2="62.23" y2="41.91" width="0.254" layer="1"/>
<wire x1="29.21" y1="27.94" x2="29.21" y2="41.91" width="0.254" layer="1"/>
<wire x1="30.48" y1="26.67" x2="29.21" y2="27.94" width="0.254" layer="16"/>
<wire x1="30.48" y1="17.78" x2="30.48" y2="26.67" width="0.254" layer="16"/>
<wire x1="30.48" y1="17.78" x2="34.29" y2="17.78" width="0.254" layer="16"/>
<wire x1="34.29" y1="17.78" x2="35.56" y2="16.51" width="0.254" layer="16"/>
<wire x1="35.56" y1="16.51" x2="50.8" y2="16.51" width="0.254" layer="16"/>
<wire x1="50.8" y1="16.51" x2="55.88" y2="11.43" width="0.254" layer="16"/>
<via x="64.77" y="39.37" extent="1-16" drill="0.6096"/>
<via x="29.21" y="27.94" extent="1-16" drill="0.6096"/>
</signal>
</signals>
</board>
</drawing>
</eagle>


|







 







>

>
>
>



>
>










>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>










|
|
|












<







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|







 







>
>







 







|
|
<
<
<
<
<
<
<
|
|
|


|
<
|

|
<
|
>
>
>
|
>
>
>
>
>
>
|
|
|
|
|
<
<


>
>
|
|
|
<
|
|
|


>
>
>
>
|
|

>
>
>
>



<
<
<
<
<
<
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
|

>
|
|
>
>






|
|






|
|
|
|
|
<
|
<
<

|
|
<





|
|
|
|
|
<
<
<
<
<
<
<
<
|
|
|





|
>
>
>
>
>
>
>
>
|
|
<
<

<





|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>

|
>





|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<
<
<
<
<
<
<




|
|
|
<




|
|
|
<
<
<
<
<
<
<




|
|
|
|
>
>
|
>
>
>
>








|
|
|
|
|
|
|
|
|
>
>
>
|
|
|






|
>
|
|
<
|
>
>
|
|





|
<
<
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>

|
|
|
<
<






|
|







|
|







|
|







|
|







|
|









|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>





|
<
<
|
|
|
|
|
|
>
>
>
>
>
|





|
>
|
<
>
|
<
<
<
<
>
>
>
>
>
>
>
>
>
>
>













|







 







|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<
<
<

|
>
>





|
|
|
|
|
|
|
|
|
>
>
>




|
<
<
<
|
|
|
>
>
>
>
>
>
>
>
>
|
>
>
|




<
<
<
|
<
>
>




|
|
>
|
>




|
>
|




|
<
|






>
>
>
>
>
>
|
>
>
>


>




>
|
<
|
>




|
|
|




|
|
|




|
|





|
|
|
|
|
|
<




|
|
<





|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<





>
|
|
|
|
|
<
<





|
>
>
|
|
<
<
|
|
|
>
>
|
|
<
<
|
<
|
|




|
>
>
>
|
|
|
|
|
|
|
|
|
<
<




|
>
>
|
|
|
|
|
|
|
|
|
|
<
|
|





1
2
3
4
5
6
7
8
9
10
..
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

124
125
126
127
128
129
130
...
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
...
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
...
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
...
890
891
892
893
894
895
896
897
898







899
900
901
902
903
904

905
906
907

908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923


924
925
926
927
928
929
930

931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949







950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011

1012


1013
1014
1015

1016
1017
1018
1019
1020
1021
1022
1023
1024
1025








1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044


1045

1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138







1139
1140
1141
1142
1143
1144
1145

1146
1147
1148
1149
1150
1151
1152







1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200

1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211


1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232


1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307


1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327

1328
1329




1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
....
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394



1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420



1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440



1441

1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464

1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490

1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523

1524
1525
1526
1527
1528
1529

1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549

1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560


1561
1562
1563
1564
1565
1566
1567
1568
1569
1570


1571
1572
1573
1574
1575
1576
1577


1578

1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597


1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614

1615
1616
1617
1618
1619
1620
1621
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.5.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
................................................................................
<layer number="95" name="Names" color="7" fill="1" visible="no" active="no"/>
<layer number="96" name="Values" color="7" fill="1" visible="no" active="no"/>
<layer number="97" name="Info" color="7" fill="1" visible="no" active="no"/>
<layer number="98" name="Guide" color="6" fill="1" visible="no" active="no"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="no" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="no" active="yes"/>
<layer number="103" name="tMap" color="7" fill="1" visible="no" active="yes"/>
<layer number="104" name="Name" color="7" fill="1" visible="no" active="yes"/>
<layer number="105" name="tPlate" color="7" fill="1" visible="no" active="yes"/>
<layer number="106" name="bPlate" color="7" fill="1" visible="no" active="yes"/>
<layer number="107" name="Crop" color="7" fill="1" visible="no" active="yes"/>
<layer number="116" name="Patch_BOT" color="9" fill="4" visible="no" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="125" name="_tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="144" name="Drill_legend" color="7" fill="1" visible="no" active="yes"/>
<layer number="151" name="HeatSink" color="7" fill="1" visible="no" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="10" visible="no" active="yes"/>
<layer number="202" name="202bmp" color="3" fill="10" visible="no" active="yes"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="no" active="yes"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="no" active="yes"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="no" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="no" active="yes"/>
<layer number="207" name="207bmp" color="8" fill="10" visible="no" active="yes"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="no" active="yes"/>
<layer number="209" name="209bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="210" name="210bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="211" name="211bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="212" name="212bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="213" name="213bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="214" name="214bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="215" name="215bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="216" name="216bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="217" name="217bmp" color="18" fill="1" visible="no" active="no"/>
<layer number="218" name="218bmp" color="19" fill="1" visible="no" active="no"/>
<layer number="219" name="219bmp" color="20" fill="1" visible="no" active="no"/>
<layer number="220" name="220bmp" color="21" fill="1" visible="no" active="no"/>
<layer number="221" name="221bmp" color="22" fill="1" visible="no" active="no"/>
<layer number="222" name="222bmp" color="23" fill="1" visible="no" active="no"/>
<layer number="223" name="223bmp" color="24" fill="1" visible="no" active="no"/>
<layer number="224" name="224bmp" color="25" fill="1" visible="no" active="no"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="no" active="yes"/>
</layers>
<board>
<plain>
<wire x1="0" y1="0" x2="98.73" y2="0" width="0" layer="20"/>
<wire x1="98.73" y1="0" x2="98.73" y2="69.84" width="0" layer="20"/>
<wire x1="98.73" y1="69.84" x2="0" y2="69.84" width="0" layer="20"/>
<wire x1="0" y1="69.84" x2="0" y2="0" width="0" layer="20"/>
<text x="2.54" y="67.31" size="1.016" layer="21" font="vector">Firenet</text>
<text x="2.54" y="66.04" size="1.016" layer="21" font="vector">Pandora Products</text>
<text x="8.89" y="67.31" size="1.016" layer="21" font="vector">2013 Rev 1.8</text>
<text x="80.01" y="7.62" size="1.778" layer="21">SERIAL</text>
<text x="35.56" y="16.51" size="1.778" layer="21">7805</text>
<text x="71.12" y="12.7" size="1.016" layer="21">MST</text>
<text x="93.98" y="5.08" size="1.016" layer="21">GND</text>
<text x="30.48" y="48.26" size="1.778" layer="21">0</text>
<text x="58.42" y="48.26" size="1.778" layer="21">2</text>
<text x="44.45" y="48.26" size="1.778" layer="21">1</text>
<text x="58.42" y="22.86" size="1.778" layer="21">3</text>
<text x="44.45" y="22.86" size="1.778" layer="21">4</text>
<text x="30.48" y="22.86" size="1.778" layer="21">5</text>
<text x="27.94" y="63.5" size="1.778" layer="21" rot="MR0">+</text>
<text x="24.13" y="63.5" size="1.778" layer="21" rot="MR0">-</text>

<text x="77.47" y="63.5" size="1.778" layer="21" rot="MR0">+</text>
<text x="73.66" y="63.5" size="1.778" layer="21">-</text>
<text x="69.85" y="63.5" size="1.27" layer="21">G</text>
<text x="55.88" y="8.89" size="0.6096" layer="22">N</text>
<text x="74.93" y="6.35" size="0.6096" layer="22">N</text>
<text x="58.42" y="6.35" size="0.6096" layer="21">H</text>
<text x="58.42" y="6.35" size="0.6096" layer="21">H</text>
................................................................................
<circle x="0" y="0" radius="2.54" width="0.1524" layer="21"/>
<pad name="A" x="-1.27" y="0" drill="0.8128" diameter="1.8796"/>
<pad name="K" x="1.27" y="0" drill="0.8128" diameter="1.8796"/>
<text x="3.175" y="0.5334" size="1.27" layer="25" ratio="10">&gt;NAME</text>
<text x="3.2004" y="-1.8034" size="1.27" layer="27" ratio="10">&gt;VALUE</text>
</package>
</packages>
</library>
<library name="SparkFun-Capacitors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find resistors, capacitors, inductors, test points, jumper pads, etc.&lt;br&gt;&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; CC v3.0 Share-Alike You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.</description>
<packages>
<package name="CPOL-RADIAL-1000UF-25V">
<wire x1="-1.905" y1="1.27" x2="-3.175" y2="1.27" width="0.2032" layer="21"/>
<circle x="0" y="0" radius="5.461" width="0.2032" layer="21"/>
<pad name="2" x="-2.54" y="0" drill="0.7" diameter="1.651"/>
<pad name="1" x="2.54" y="0" drill="0.7" diameter="1.651" shape="square"/>
<text x="-1.905" y="-4.318" size="0.8128" layer="27">&gt;Value</text>
<text x="-0.762" y="2.921" size="0.4064" layer="25">&gt;Name</text>
</package>
</packages>
</library>
<library name="SparkFun-Resistors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find resistors, capacitors, inductors, test points, jumper pads, etc.&lt;br&gt;&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; CC v3.0 Share-Alike You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.</description>
<packages>
<package name="AXIAL-0.4">
<description>1/4W Resistor, 0.4" wide&lt;p&gt;

Yageo CFR series &lt;a href="http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf"&gt;http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf&lt;/a&gt;</description>
<wire x1="-3.15" y1="-1.2" x2="-3.15" y2="1.2" width="0.2032" layer="21"/>
<wire x1="-3.15" y1="1.2" x2="3.15" y2="1.2" width="0.2032" layer="21"/>
<wire x1="3.15" y1="1.2" x2="3.15" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="3.15" y1="-1.2" x2="-3.15" y2="-1.2" width="0.2032" layer="21"/>
<pad name="P$1" x="-5.08" y="0" drill="0.9" diameter="1.8796"/>
<pad name="P$2" x="5.08" y="0" drill="0.9" diameter="1.8796"/>
<text x="-3.175" y="1.905" size="0.8128" layer="25" font="vector" ratio="15">&gt;Name</text>
<text x="-2.286" y="-0.381" size="0.8128" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
................................................................................
<class number="2" name="12V" width="1.27" drill="0">
</class>
<class number="3" name="FIRING" width="1.27" drill="0">
</class>
<class number="4" name="GND" width="1.27" drill="0">
</class>
</classes>
<designrules name="default">
<description language="de">&lt;b&gt;EAGLE Design Rules&lt;/b&gt;
&lt;p&gt;
Die Standard-Design-Rules sind so gewählt, dass sie für 
die meisten Anwendungen passen. Sollte ihre Platine 
besondere Anforderungen haben, treffen Sie die erforderlichen
Einstellungen hier und speichern die Design Rules unter 
einem neuen Namen ab.</description>
................................................................................
<element name="U$9" library="firenet" package="PIN16" value="V-" x="6.35" y="2.54"/>
<element name="R16" library="SparkFun" package="AXIAL-0.3" value="1K" x="93.98" y="59.69" rot="R90"/>
<element name="R17" library="resistor-power" package="KP292" value="1.25 ohm 2W" x="3.81" y="52.07" rot="R90"/>
<element name="R13" library="SparkFun" package="AXIAL-0.3" value="0" x="63.5" y="7.62" rot="R90"/>
<element name="R19" library="SparkFun" package="AXIAL-0.3" value="0" x="60.96" y="7.62" rot="R90"/>
<element name="R20" library="SparkFun" package="AXIAL-0.3" value="0" x="58.42" y="7.62" rot="R270"/>
<element name="R21" library="SparkFun" package="AXIAL-0.3" value="0" x="55.88" y="7.62" rot="R90"/>
<element name="C11" library="SparkFun-Capacitors" package="CPOL-RADIAL-1000UF-25V" value="1000 uf" x="13.97" y="58.42"/>
<element name="R22" library="SparkFun-Resistors" package="AXIAL-0.4" value="15K" x="3.81" y="15.24" rot="R90"/>
</elements>
<signals>
<signal name="GND" class="4">
<contactref element="QF0" pad="S"/>
<contactref element="QF1" pad="S"/>
<contactref element="QF2" pad="S"/>
<contactref element="QF3" pad="S"/>
................................................................................
<contactref element="D2" pad="A"/>
<contactref element="U$1" pad="P$12"/>
<contactref element="U$1" pad="P$11"/>
<contactref element="U$2" pad="P$1"/>
<contactref element="U$5" pad="P$1"/>
<contactref element="IC4" pad="2"/>
<contactref element="C5" pad="1"/>
<contactref element="C11" pad="2"/>
<contactref element="R22" pad="P$1"/>







<wire x1="83.82" y1="27.94" x2="80.01" y2="27.94" width="1.27" layer="16"/>
<wire x1="86.36" y1="30.48" x2="83.82" y2="27.94" width="1.27" layer="16"/>
<wire x1="87.63" y1="30.48" x2="86.36" y2="30.48" width="1.27" layer="16"/>
<wire x1="93.98" y1="17.78" x2="91.44" y2="15.24" width="1.27" layer="1"/>
<wire x1="93.98" y1="22.86" x2="93.98" y2="17.78" width="1.27" layer="1"/>
<wire x1="93.98" y1="7.62" x2="91.44" y2="5.08" width="1.27" layer="1"/>

<wire x1="93.98" y1="17.78" x2="93.98" y2="7.62" width="1.27" layer="1"/>
<wire x1="88.9" y1="30.48" x2="87.63" y2="30.48" width="1.27" layer="16"/>
<wire x1="92.71" y1="26.67" x2="88.9" y2="30.48" width="1.27" layer="16"/>

<wire x1="91.44" y1="25.4" x2="92.71" y2="26.67" width="1.27" layer="16"/>
<wire x1="91.44" y1="24.13" x2="91.44" y2="25.4" width="1.27" layer="16"/>
<wire x1="92.71" y1="24.13" x2="91.44" y2="24.13" width="1.27" layer="16"/>
<wire x1="93.98" y1="22.86" x2="92.71" y2="24.13" width="1.27" layer="16"/>
<wire x1="93.98" y1="44.45" x2="87.63" y2="50.8" width="1.27" layer="16"/>
<wire x1="82.55" y1="55.88" x2="80.01" y2="55.88" width="1.27" layer="1"/>
<wire x1="82.55" y1="66.04" x2="82.55" y2="55.88" width="1.27" layer="1"/>
<wire x1="71.12" y1="57.15" x2="71.12" y2="67.31" width="1.27" layer="1"/>
<wire x1="76.2" y1="57.15" x2="71.12" y2="57.15" width="1.27" layer="16"/>
<wire x1="77.47" y1="55.88" x2="76.2" y2="57.15" width="1.27" layer="16"/>
<wire x1="80.01" y1="55.88" x2="77.47" y2="55.88" width="1.27" layer="16"/>
<wire x1="82.55" y1="50.8" x2="87.63" y2="50.8" width="1.27" layer="16"/>
<wire x1="82.55" y1="55.88" x2="82.55" y2="50.8" width="1.27" layer="1"/>
<wire x1="90.17" y1="30.48" x2="87.63" y2="30.48" width="1.27" layer="1"/>
<wire x1="90.17" y1="40.64" x2="90.17" y2="30.48" width="1.27" layer="1"/>
<wire x1="93.98" y1="44.45" x2="90.17" y2="40.64" width="1.27" layer="16"/>


<wire x1="38.1" y1="11.43" x2="38.1" y2="13.97" width="1.27" layer="16"/>
<wire x1="48.26" y1="11.43" x2="38.1" y2="11.43" width="1.27" layer="16"/>
<wire x1="48.26" y1="11.43" x2="48.26" y2="6.35" width="1.27" layer="1"/>
<wire x1="5.08" y1="10.16" x2="8.89" y2="6.35" width="1.27" layer="16"/>
<wire x1="3.81" y1="10.16" x2="5.08" y2="10.16" width="1.27" layer="16"/>
<wire x1="29.21" y1="3.81" x2="24.13" y2="3.81" width="1.27" layer="1"/>
<wire x1="29.21" y1="3.81" x2="38.1" y2="3.81" width="1.27" layer="16"/>

<wire x1="10.16" y1="5.08" x2="8.89" y2="6.35" width="1.27" layer="16"/>
<wire x1="22.86" y1="5.08" x2="10.16" y2="5.08" width="1.27" layer="16"/>
<wire x1="24.13" y1="3.81" x2="22.86" y2="5.08" width="1.27" layer="16"/>
<wire x1="45.72" y1="3.81" x2="48.26" y2="6.35" width="1.27" layer="16"/>
<wire x1="38.1" y1="3.81" x2="45.72" y2="3.81" width="1.27" layer="16"/>
<wire x1="54.61" y1="35.56" x2="49.53" y2="40.64" width="1.27" layer="1"/>
<wire x1="58.42" y1="35.56" x2="54.61" y2="35.56" width="1.27" layer="1"/>
<wire x1="58.42" y1="33.02" x2="58.42" y2="35.56" width="1.27" layer="1"/>
<wire x1="58.42" y1="35.56" x2="63.5" y2="40.64" width="1.27" layer="1"/>
<wire x1="30.48" y1="35.56" x2="33.02" y2="38.1" width="1.27" layer="1"/>
<wire x1="33.02" y1="38.1" x2="35.56" y2="40.64" width="1.27" layer="1"/>
<wire x1="30.48" y1="33.02" x2="30.48" y2="35.56" width="1.27" layer="1"/>
<wire x1="40.64" y1="33.02" x2="44.45" y2="33.02" width="1.27" layer="1"/>
<wire x1="38.1" y1="35.56" x2="40.64" y2="33.02" width="1.27" layer="1"/>
<wire x1="36.83" y1="34.29" x2="38.1" y2="35.56" width="1.27" layer="1"/>
<wire x1="33.02" y1="38.1" x2="36.83" y2="34.29" width="1.27" layer="1"/>
<wire x1="46.99" y1="38.1" x2="49.53" y2="40.64" width="1.27" layer="16"/>
<wire x1="38.1" y1="38.1" x2="46.99" y2="38.1" width="1.27" layer="16"/>
<wire x1="35.56" y1="40.64" x2="38.1" y2="38.1" width="1.27" layer="16"/>







<wire x1="15.24" y1="40.64" x2="12.7" y2="40.64" width="1.27" layer="1"/>
<wire x1="12.7" y1="40.64" x2="10.16" y2="43.18" width="1.27" layer="1"/>
<wire x1="20.32" y1="67.31" x2="19.05" y2="66.04" width="1.27" layer="16"/>
<wire x1="19.05" y1="66.04" x2="11.43" y2="58.42" width="1.27" layer="16"/>
<wire x1="21.59" y1="67.31" x2="20.32" y2="67.31" width="1.27" layer="16"/>
<wire x1="11.43" y1="44.45" x2="10.16" y2="43.18" width="1.27" layer="1"/>
<wire x1="11.43" y1="58.42" x2="11.43" y2="44.45" width="1.27" layer="1"/>
<wire x1="44.45" y1="60.96" x2="49.53" y2="66.04" width="1.27" layer="1"/>
<wire x1="44.45" y1="58.42" x2="44.45" y2="60.96" width="1.27" layer="1"/>
<wire x1="60.96" y1="63.5" x2="62.23" y2="64.77" width="1.27" layer="1"/>
<wire x1="62.23" y1="64.77" x2="63.5" y2="66.04" width="1.27" layer="1"/>
<wire x1="58.42" y1="63.5" x2="60.96" y2="63.5" width="1.27" layer="1"/>
<wire x1="58.42" y1="66.04" x2="58.42" y2="63.5" width="1.27" layer="1"/>
<wire x1="35.56" y1="63.5" x2="35.56" y2="66.04" width="1.27" layer="1"/>
<wire x1="30.48" y1="58.42" x2="35.56" y2="63.5" width="1.27" layer="1"/>
<wire x1="57.15" y1="64.77" x2="58.42" y2="66.04" width="1.27" layer="16"/>
<wire x1="53.34" y1="64.77" x2="57.15" y2="64.77" width="1.27" layer="16"/>
<wire x1="52.07" y1="63.5" x2="53.34" y2="64.77" width="1.27" layer="16"/>
<wire x1="38.1" y1="63.5" x2="49.53" y2="63.5" width="1.27" layer="16"/>
<wire x1="49.53" y1="63.5" x2="52.07" y2="63.5" width="1.27" layer="16"/>
<wire x1="35.56" y1="66.04" x2="38.1" y2="63.5" width="1.27" layer="16"/>
<wire x1="49.53" y1="63.5" x2="49.53" y2="66.04" width="1.27" layer="16"/>
<wire x1="26.67" y1="58.42" x2="19.05" y2="66.04" width="1.27" layer="16"/>
<wire x1="30.48" y1="58.42" x2="26.67" y2="58.42" width="1.27" layer="16"/>
<wire x1="33.02" y1="38.1" x2="35.56" y2="40.64" width="1.27" layer="16"/>
<wire x1="17.78" y1="38.1" x2="33.02" y2="38.1" width="1.27" layer="16"/>
<wire x1="15.24" y1="40.64" x2="17.78" y2="38.1" width="1.27" layer="1"/>
<wire x1="21.59" y1="6.35" x2="24.13" y2="3.81" width="1.27" layer="1"/>
<wire x1="21.59" y1="12.7" x2="21.59" y2="6.35" width="1.27" layer="1"/>
<wire x1="29.21" y1="20.32" x2="21.59" y2="12.7" width="1.27" layer="1"/>
<wire x1="30.48" y1="21.59" x2="29.21" y2="20.32" width="1.27" layer="16"/>
<wire x1="30.48" y1="33.02" x2="30.48" y2="21.59" width="1.27" layer="16"/>
<wire x1="69.85" y1="66.04" x2="71.12" y2="67.31" width="1.27" layer="1"/>
<wire x1="69.85" y1="62.23" x2="69.85" y2="66.04" width="1.27" layer="1"/>
<wire x1="64.77" y1="62.23" x2="69.85" y2="62.23" width="1.27" layer="16"/>
<wire x1="62.23" y1="64.77" x2="64.77" y2="62.23" width="1.27" layer="1"/>
<via x="71.12" y="57.15" extent="1-16" drill="0.6096"/>
<via x="82.55" y="50.8" extent="1-16" drill="0.6096"/>
<via x="90.17" y="40.64" extent="1-16" drill="0.6096"/>
<via x="17.78" y="38.1" extent="1-16" drill="0.6096"/>
<via x="29.21" y="20.32" extent="1-16" drill="0.6096"/>
<via x="69.85" y="62.23" extent="1-16" drill="0.6096"/>
<via x="64.77" y="62.23" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$13" class="3">
<contactref element="QF2" pad="D1"/>
<contactref element="QF2" pad="D2"/>
<contactref element="FP2" pad="BPPAD"/>
<contactref element="R4" pad="P$2"/>
<wire x1="60.96" y1="58.42" x2="63.5" y2="58.42" width="1.27" layer="1"/>
<wire x1="63.5" y1="58.42" x2="66.04" y2="58.42" width="1.27" layer="1"/>
<wire x1="66.04" y1="49.53" x2="66.04" y2="58.42" width="1.27" layer="1"/>
</signal>
<signal name="N$16">
<contactref element="IC3" pad="26"/>
<contactref element="R6" pad="P$1"/>
<contactref element="R8" pad="P$2"/>
<wire x1="77.47" y1="20.32" x2="80.01" y2="17.78" width="0.254" layer="16"/>
<wire x1="77.47" y1="22.86" x2="77.47" y2="20.32" width="0.254" layer="16"/>
<wire x1="77.47" y1="36.83" x2="77.47" y2="22.86" width="0.254" layer="1"/>
<wire x1="76.2" y1="38.1" x2="77.47" y2="36.83" width="0.254" layer="16"/>
<wire x1="63.5" y1="38.1" x2="76.2" y2="38.1" width="0.254" layer="16"/>

<wire x1="60.96" y1="40.64" x2="63.5" y2="38.1" width="0.254" layer="16"/>


<wire x1="60.96" y1="40.64" x2="58.42" y2="40.64" width="0.254" layer="1"/>
<via x="77.47" y="22.86" extent="1-16" drill="0.6096"/>
<via x="77.47" y="36.83" extent="1-16" drill="0.6096"/>

</signal>
<signal name="N$18">
<contactref element="IC3" pad="27"/>
<contactref element="R9" pad="P$1"/>
<contactref element="R11" pad="P$2"/>
<wire x1="74.93" y1="20.32" x2="80.01" y2="15.24" width="0.254" layer="1"/>
<wire x1="74.93" y1="34.29" x2="74.93" y2="20.32" width="0.254" layer="1"/>
<wire x1="45.72" y1="34.29" x2="74.93" y2="34.29" width="0.254" layer="16"/>
<wire x1="44.45" y1="35.56" x2="45.72" y2="34.29" width="0.254" layer="1"/>
<wire x1="44.45" y1="40.64" x2="44.45" y2="35.56" width="0.254" layer="1"/>








<wire x1="44.45" y1="40.64" x2="46.99" y2="40.64" width="0.254" layer="16"/>
<via x="74.93" y="34.29" extent="1-16" drill="0.6096"/>
<via x="45.72" y="34.29" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$20">
<contactref element="IC3" pad="28"/>
<contactref element="R10" pad="P$1"/>
<contactref element="R12" pad="P$2"/>
<wire x1="77.47" y1="15.24" x2="80.01" y2="12.7" width="0.254" layer="16"/>
<wire x1="64.77" y1="15.24" x2="77.47" y2="15.24" width="0.254" layer="16"/>
<wire x1="62.23" y1="12.7" x2="64.77" y2="15.24" width="0.254" layer="16"/>
<wire x1="62.23" y1="10.16" x2="62.23" y2="12.7" width="0.254" layer="16"/>
<wire x1="25.4" y1="10.16" x2="62.23" y2="10.16" width="0.254" layer="16"/>
<wire x1="21.59" y1="13.97" x2="25.4" y2="10.16" width="0.254" layer="16"/>
<wire x1="12.7" y1="13.97" x2="21.59" y2="13.97" width="0.254" layer="16"/>
<wire x1="1.27" y1="25.4" x2="12.7" y2="13.97" width="0.254" layer="16"/>
<wire x1="1.27" y1="41.91" x2="1.27" y2="25.4" width="0.254" layer="16"/>
<wire x1="29.21" y1="41.91" x2="1.27" y2="41.91" width="0.254" layer="16"/>
<wire x1="30.48" y1="40.64" x2="29.21" y2="41.91" width="0.254" layer="16"/>


<wire x1="30.48" y1="40.64" x2="33.02" y2="40.64" width="0.254" layer="1"/>

</signal>
<signal name="N$8">
<contactref element="IC3" pad="23"/>
<contactref element="R18" pad="P$1"/>
<contactref element="R5" pad="P$2"/>
<wire x1="81.28" y1="26.67" x2="80.01" y2="25.4" width="0.254" layer="16"/>
<wire x1="90.17" y1="26.67" x2="81.28" y2="26.67" width="0.254" layer="16"/>
<wire x1="91.44" y1="27.94" x2="90.17" y2="26.67" width="0.254" layer="1"/>
<wire x1="91.44" y1="59.69" x2="91.44" y2="27.94" width="0.254" layer="1"/>
<wire x1="90.17" y1="60.96" x2="91.44" y2="59.69" width="0.254" layer="1"/>
<wire x1="91.44" y1="62.23" x2="90.17" y2="60.96" width="0.254" layer="1"/>
<wire x1="95.25" y1="62.23" x2="91.44" y2="62.23" width="0.254" layer="1"/>
<wire x1="95.25" y1="67.31" x2="95.25" y2="62.23" width="0.254" layer="1"/>
<wire x1="93.98" y1="68.58" x2="95.25" y2="67.31" width="0.254" layer="1"/>
<wire x1="78.74" y1="68.58" x2="93.98" y2="68.58" width="0.254" layer="1"/>
<wire x1="78.74" y1="62.23" x2="78.74" y2="68.58" width="0.254" layer="1"/>
<wire x1="77.47" y1="63.5" x2="78.74" y2="62.23" width="0.254" layer="16"/>
<wire x1="54.61" y1="63.5" x2="77.47" y2="63.5" width="0.254" layer="16"/>
<wire x1="53.34" y1="62.23" x2="54.61" y2="63.5" width="0.254" layer="16"/>
<wire x1="36.83" y1="62.23" x2="53.34" y2="62.23" width="0.254" layer="16"/>
<wire x1="33.02" y1="66.04" x2="36.83" y2="62.23" width="0.254" layer="16"/>
<wire x1="33.02" y1="66.04" x2="30.48" y2="66.04" width="0.254" layer="1"/>
<via x="90.17" y="26.67" extent="1-16" drill="0.6096"/>
<via x="78.74" y="62.23" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$21">
<contactref element="IC3" pad="25"/>
<contactref element="R4" pad="P$1"/>
<contactref element="R3" pad="P$2"/>
<wire x1="76.2" y1="20.32" x2="80.01" y2="20.32" width="0.254" layer="1"/>
<wire x1="76.2" y1="60.96" x2="76.2" y2="20.32" width="0.254" layer="1"/>
<wire x1="60.96" y1="60.96" x2="76.2" y2="60.96" width="0.254" layer="16"/>
<wire x1="58.42" y1="58.42" x2="60.96" y2="60.96" width="0.254" layer="16"/>
<wire x1="59.69" y1="67.31" x2="60.96" y2="66.04" width="0.254" layer="1"/>
<wire x1="57.15" y1="67.31" x2="59.69" y2="67.31" width="0.254" layer="1"/>
<wire x1="57.15" y1="59.69" x2="57.15" y2="67.31" width="0.254" layer="1"/>
<wire x1="58.42" y1="58.42" x2="57.15" y2="59.69" width="0.254" layer="1"/>
<via x="76.2" y="60.96" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$14">
<contactref element="QF0" pad="G"/>
<contactref element="IC3" pad="4"/>
<wire x1="39.37" y1="67.31" x2="38.1" y2="66.04" width="0.254" layer="16"/>
<wire x1="68.58" y1="67.31" x2="39.37" y2="67.31" width="0.254" layer="16"/>
<wire x1="71.12" y1="64.77" x2="68.58" y2="67.31" width="0.254" layer="16"/>
<wire x1="77.47" y1="64.77" x2="71.12" y2="64.77" width="0.254" layer="16"/>
<wire x1="81.28" y1="60.96" x2="77.47" y2="64.77" width="0.254" layer="16"/>
<wire x1="91.44" y1="60.96" x2="81.28" y2="60.96" width="0.254" layer="16"/>
<wire x1="96.52" y1="55.88" x2="91.44" y2="60.96" width="0.254" layer="1"/>
<wire x1="96.52" y1="20.32" x2="96.52" y2="55.88" width="0.254" layer="1"/>
<wire x1="87.63" y1="20.32" x2="96.52" y2="20.32" width="0.254" layer="16"/>
<via x="91.44" y="60.96" extent="1-16" drill="0.6096"/>
<via x="96.52" y="20.32" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$22">
<contactref element="QF1" pad="G"/>
<contactref element="IC3" pad="5"/>
<wire x1="45.72" y1="59.69" x2="52.07" y2="66.04" width="0.254" layer="1"/>
<wire x1="45.72" y1="57.15" x2="45.72" y2="59.69" width="0.254" layer="1"/>
<wire x1="35.56" y1="57.15" x2="45.72" y2="57.15" width="0.254" layer="16"/>
<wire x1="30.48" y1="52.07" x2="35.56" y2="57.15" width="0.254" layer="16"/>
<wire x1="30.48" y1="45.72" x2="30.48" y2="52.07" width="0.254" layer="16"/>
<wire x1="31.75" y1="45.72" x2="30.48" y2="45.72" width="0.254" layer="16"/>
<wire x1="35.56" y1="41.91" x2="31.75" y2="45.72" width="0.254" layer="1"/>
<wire x1="45.72" y1="41.91" x2="35.56" y2="41.91" width="0.254" layer="1"/>
<wire x1="45.72" y1="39.37" x2="45.72" y2="41.91" width="0.254" layer="1"/>
<wire x1="50.8" y1="34.29" x2="45.72" y2="39.37" width="0.254" layer="1"/>
<wire x1="57.15" y1="34.29" x2="50.8" y2="34.29" width="0.254" layer="1"/>
<wire x1="57.15" y1="31.75" x2="57.15" y2="34.29" width="0.254" layer="1"/>
<wire x1="64.77" y1="31.75" x2="57.15" y2="31.75" width="0.254" layer="1"/>
<wire x1="64.77" y1="34.29" x2="64.77" y2="31.75" width="0.254" layer="1"/>
<wire x1="71.12" y1="34.29" x2="64.77" y2="34.29" width="0.254" layer="1"/>
<wire x1="71.12" y1="30.48" x2="71.12" y2="34.29" width="0.254" layer="1"/>
<wire x1="77.47" y1="24.13" x2="71.12" y2="30.48" width="0.254" layer="16"/>
<wire x1="86.36" y1="24.13" x2="77.47" y2="24.13" width="0.254" layer="16"/>
<wire x1="87.63" y1="22.86" x2="86.36" y2="24.13" width="0.254" layer="16"/>
<via x="45.72" y="57.15" extent="1-16" drill="0.6096"/>
<via x="31.75" y="45.72" extent="1-16" drill="0.6096"/>
<via x="71.12" y="30.48" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$23">
<contactref element="IC3" pad="6"/>
<contactref element="QF2" pad="G"/>
<wire x1="67.31" y1="64.77" x2="66.04" y2="66.04" width="0.254" layer="1"/>
<wire x1="67.31" y1="59.69" x2="67.31" y2="64.77" width="0.254" layer="1"/>
<wire x1="83.82" y1="59.69" x2="67.31" y2="59.69" width="0.254" layer="16"/>
<wire x1="86.36" y1="57.15" x2="83.82" y2="59.69" width="0.254" layer="16"/>
<wire x1="88.9" y1="57.15" x2="86.36" y2="57.15" width="0.254" layer="16"/>
<wire x1="96.52" y1="49.53" x2="88.9" y2="57.15" width="0.254" layer="16"/>
<wire x1="96.52" y1="21.59" x2="96.52" y2="49.53" width="0.254" layer="16"/>
<wire x1="91.44" y1="21.59" x2="96.52" y2="21.59" width="0.254" layer="16"/>
<wire x1="87.63" y1="25.4" x2="91.44" y2="21.59" width="0.254" layer="16"/>
<via x="67.31" y="59.69" extent="1-16" drill="0.6096"/>







</signal>
<signal name="N$24">
<contactref element="IC3" pad="11"/>
<contactref element="QF3" pad="G"/>
<wire x1="67.31" y1="39.37" x2="66.04" y2="40.64" width="0.254" layer="16"/>
<wire x1="86.36" y1="39.37" x2="67.31" y2="39.37" width="0.254" layer="16"/>
<wire x1="87.63" y1="38.1" x2="86.36" y2="39.37" width="0.254" layer="16"/>

</signal>
<signal name="N$25">
<contactref element="QF4" pad="G"/>
<contactref element="IC3" pad="12"/>
<wire x1="53.34" y1="41.91" x2="52.07" y2="40.64" width="0.254" layer="16"/>
<wire x1="86.36" y1="41.91" x2="53.34" y2="41.91" width="0.254" layer="16"/>
<wire x1="87.63" y1="40.64" x2="86.36" y2="41.91" width="0.254" layer="16"/>







</signal>
<signal name="N$26">
<contactref element="IC3" pad="13"/>
<contactref element="QF5" pad="G"/>
<wire x1="36.83" y1="39.37" x2="38.1" y2="40.64" width="0.254" layer="1"/>
<wire x1="36.83" y1="36.83" x2="36.83" y2="39.37" width="0.254" layer="1"/>
<wire x1="66.04" y1="36.83" x2="36.83" y2="36.83" width="0.254" layer="16"/>
<wire x1="71.12" y1="41.91" x2="66.04" y2="36.83" width="0.254" layer="1"/>
<wire x1="71.12" y1="43.18" x2="71.12" y2="41.91" width="0.254" layer="1"/>
<wire x1="72.39" y1="44.45" x2="71.12" y2="43.18" width="0.254" layer="16"/>
<wire x1="86.36" y1="44.45" x2="72.39" y2="44.45" width="0.254" layer="16"/>
<wire x1="87.63" y1="43.18" x2="86.36" y2="44.45" width="0.254" layer="16"/>
<via x="36.83" y="36.83" extent="1-16" drill="0.6096"/>
<via x="66.04" y="36.83" extent="1-16" drill="0.6096"/>
<via x="71.12" y="43.18" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$28" class="3">
<contactref element="IC3" pad="14"/>
<contactref element="D2" pad="C"/>
<contactref element="U$1" pad="P$1"/>
<contactref element="U$1" pad="P$2"/>
<wire x1="10.16" y1="33.02" x2="12.7" y2="33.02" width="1.27" layer="1"/>
<wire x1="12.7" y1="33.02" x2="15.24" y2="33.02" width="1.27" layer="16"/>
<wire x1="82.55" y1="45.72" x2="87.63" y2="45.72" width="1.27" layer="16"/>
<wire x1="82.55" y1="11.43" x2="82.55" y2="45.72" width="1.27" layer="1"/>
<wire x1="81.28" y1="10.16" x2="82.55" y2="11.43" width="1.27" layer="1"/>
<wire x1="77.47" y1="10.16" x2="81.28" y2="10.16" width="1.27" layer="1"/>
<wire x1="77.47" y1="11.43" x2="77.47" y2="10.16" width="1.27" layer="1"/>
<wire x1="74.93" y1="13.97" x2="77.47" y2="11.43" width="1.27" layer="16"/>
<wire x1="68.58" y1="13.97" x2="74.93" y2="13.97" width="1.27" layer="16"/>
<wire x1="63.5" y1="8.89" x2="68.58" y2="13.97" width="1.27" layer="16"/>
<wire x1="24.13" y1="8.89" x2="63.5" y2="8.89" width="1.27" layer="16"/>
<wire x1="20.32" y1="12.7" x2="24.13" y2="8.89" width="1.27" layer="16"/>
<wire x1="12.7" y1="12.7" x2="20.32" y2="12.7" width="1.27" layer="16"/>
<wire x1="12.7" y1="33.02" x2="12.7" y2="12.7" width="1.27" layer="1"/>
<via x="82.55" y="45.72" extent="1-16" drill="0.6096"/>
<via x="77.47" y="11.43" extent="1-16" drill="0.6096"/>
<via x="12.7" y="12.7" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$6" class="2">
<contactref element="U$1" pad="P$9"/>
<contactref element="U$1" pad="P$4"/>
<contactref element="IC1" pad="1"/>
<contactref element="R17" pad="2"/>
<wire x1="20.32" y1="40.64" x2="20.32" y2="33.02" width="1.27" layer="1"/>
<wire x1="8.89" y1="35.56" x2="3.81" y2="30.48" width="1.27" layer="16"/>
<wire x1="17.78" y1="35.56" x2="8.89" y2="35.56" width="1.27" layer="16"/>
<wire x1="20.32" y1="33.02" x2="17.78" y2="35.56" width="1.27" layer="16"/>

<wire x1="10.16" y1="59.69" x2="3.81" y2="59.69" width="1.27" layer="1"/>
<wire x1="11.43" y1="60.96" x2="10.16" y2="59.69" width="1.27" layer="1"/>
<wire x1="13.97" y1="60.96" x2="11.43" y2="60.96" width="1.27" layer="1"/>
<wire x1="13.97" y1="46.99" x2="13.97" y2="60.96" width="1.27" layer="1"/>
<wire x1="20.32" y1="40.64" x2="13.97" y2="46.99" width="1.27" layer="1"/>
</signal>
<signal name="N$5">
<contactref element="IC3" pad="24"/>
<contactref element="R2" pad="P$1"/>
<contactref element="R7" pad="P$2"/>
<wire x1="83.82" y1="19.05" x2="80.01" y2="22.86" width="0.254" layer="16"/>


<wire x1="96.52" y1="19.05" x2="83.82" y2="19.05" width="0.254" layer="16"/>
<wire x1="95.25" y1="20.32" x2="96.52" y2="19.05" width="0.254" layer="1"/>
<wire x1="95.25" y1="26.67" x2="95.25" y2="20.32" width="0.254" layer="1"/>
<wire x1="90.17" y1="31.75" x2="95.25" y2="26.67" width="0.254" layer="16"/>
<wire x1="41.91" y1="31.75" x2="90.17" y2="31.75" width="0.254" layer="16"/>
<wire x1="39.37" y1="34.29" x2="41.91" y2="31.75" width="0.254" layer="16"/>
<wire x1="27.94" y1="34.29" x2="39.37" y2="34.29" width="0.254" layer="16"/>
<wire x1="29.21" y1="35.56" x2="27.94" y2="34.29" width="0.254" layer="1"/>
<wire x1="29.21" y1="45.72" x2="29.21" y2="35.56" width="0.254" layer="1"/>
<wire x1="30.48" y1="46.99" x2="29.21" y2="45.72" width="0.254" layer="1"/>
<wire x1="30.48" y1="55.88" x2="30.48" y2="46.99" width="0.254" layer="1"/>
<wire x1="29.21" y1="57.15" x2="30.48" y2="55.88" width="0.254" layer="1"/>
<wire x1="29.21" y1="59.69" x2="29.21" y2="57.15" width="0.254" layer="1"/>
<wire x1="34.29" y1="64.77" x2="29.21" y2="59.69" width="0.254" layer="1"/>
<wire x1="34.29" y1="67.31" x2="34.29" y2="64.77" width="0.254" layer="1"/>
<wire x1="44.45" y1="67.31" x2="34.29" y2="67.31" width="0.254" layer="1"/>
<wire x1="44.45" y1="66.04" x2="44.45" y2="67.31" width="0.254" layer="1"/>
<wire x1="44.45" y1="66.04" x2="46.99" y2="66.04" width="0.254" layer="1"/>
<via x="96.52" y="19.05" extent="1-16" drill="0.6096"/>
<via x="95.25" y="26.67" extent="1-16" drill="0.6096"/>
<via x="27.94" y="34.29" extent="1-16" drill="0.6096"/>


</signal>
<signal name="N$11" class="3">
<contactref element="FP1" pad="BPPAD"/>
<contactref element="QF1" pad="D2"/>
<contactref element="QF1" pad="D1"/>
<contactref element="R2" pad="P$2"/>
<wire x1="46.99" y1="58.42" x2="49.53" y2="58.42" width="1.27" layer="1"/>
<wire x1="49.53" y1="58.42" x2="52.07" y2="58.42" width="1.27" layer="1"/>
<wire x1="52.07" y1="49.53" x2="52.07" y2="58.42" width="1.27" layer="1"/>
</signal>
<signal name="N$12" class="3">
<contactref element="QF0" pad="D2"/>
<contactref element="QF0" pad="D1"/>
<contactref element="FP0" pad="BPPAD"/>
<contactref element="R18" pad="P$2"/>
<wire x1="33.02" y1="58.42" x2="35.56" y2="58.42" width="1.27" layer="1"/>
<wire x1="35.56" y1="58.42" x2="38.1" y2="58.42" width="1.27" layer="1"/>
<wire x1="38.1" y1="49.53" x2="38.1" y2="58.42" width="1.27" layer="1"/>
</signal>
<signal name="N$9" class="3">
<contactref element="QF3" pad="D2"/>
<contactref element="QF3" pad="D1"/>
<contactref element="FP3" pad="BPPAD"/>
<contactref element="R6" pad="P$2"/>
<wire x1="60.96" y1="33.02" x2="63.5" y2="33.02" width="1.27" layer="1"/>
<wire x1="63.5" y1="33.02" x2="66.04" y2="33.02" width="1.27" layer="16"/>
<wire x1="66.04" y1="24.13" x2="66.04" y2="33.02" width="1.27" layer="1"/>
</signal>
<signal name="N$15" class="3">
<contactref element="QF4" pad="D2"/>
<contactref element="QF4" pad="D1"/>
<contactref element="FP4" pad="BPPAD"/>
<contactref element="R9" pad="P$2"/>
<wire x1="46.99" y1="33.02" x2="49.53" y2="33.02" width="1.27" layer="1"/>
<wire x1="49.53" y1="33.02" x2="52.07" y2="33.02" width="1.27" layer="1"/>
<wire x1="52.07" y1="24.13" x2="52.07" y2="33.02" width="1.27" layer="1"/>
</signal>
<signal name="N$17" class="3">
<contactref element="QF5" pad="D2"/>
<contactref element="QF5" pad="D1"/>
<contactref element="FP5" pad="BPPAD"/>
<contactref element="R10" pad="P$2"/>
<wire x1="33.02" y1="33.02" x2="35.56" y2="33.02" width="1.27" layer="1"/>
<wire x1="35.56" y1="33.02" x2="38.1" y2="33.02" width="1.27" layer="16"/>
<wire x1="38.1" y1="24.13" x2="38.1" y2="33.02" width="1.27" layer="1"/>
</signal>
<signal name="N$10" class="2">
<contactref element="F1" pad="2"/>
<contactref element="D1" pad="C"/>
<contactref element="C7" pad="1"/>
<contactref element="C1" pad="1"/>
<contactref element="IC6" pad="IN"/>
<contactref element="IC1" pad="3"/>
<wire x1="20.32" y1="10.16" x2="24.13" y2="6.35" width="1.27" layer="16"/>
<wire x1="17.78" y1="10.16" x2="20.32" y2="10.16" width="1.27" layer="16"/>
<wire x1="5.08" y1="24.13" x2="3.81" y2="25.4" width="1.27" layer="16"/>
<wire x1="8.89" y1="24.13" x2="5.08" y2="24.13" width="1.27" layer="16"/>
<wire x1="15.24" y1="17.78" x2="8.89" y2="24.13" width="1.27" layer="16"/>
<wire x1="19.05" y1="17.78" x2="15.24" y2="17.78" width="1.27" layer="16"/>
<wire x1="20.32" y1="16.51" x2="19.05" y2="17.78" width="1.27" layer="16"/>
<wire x1="29.21" y1="16.51" x2="20.32" y2="16.51" width="1.27" layer="16"/>
<wire x1="33.02" y1="16.51" x2="34.29" y2="15.24" width="1.27" layer="16"/>
<wire x1="34.29" y1="15.24" x2="35.56" y2="13.97" width="1.27" layer="16"/>
<wire x1="29.21" y1="16.51" x2="33.02" y2="16.51" width="1.27" layer="16"/>
<wire x1="45.72" y1="16.51" x2="48.26" y2="13.97" width="1.27" layer="16"/>
<wire x1="35.56" y1="16.51" x2="45.72" y2="16.51" width="1.27" layer="16"/>
<wire x1="34.29" y1="15.24" x2="35.56" y2="16.51" width="1.27" layer="16"/>
<wire x1="29.21" y1="11.43" x2="24.13" y2="6.35" width="1.27" layer="1"/>
<wire x1="29.21" y1="16.51" x2="29.21" y2="11.43" width="1.27" layer="1"/>
</signal>
<signal name="N$19">
<contactref element="IC4" pad="6"/>
<contactref element="U$3" pad="P$1"/>
<contactref element="U$6" pad="P$1"/>
<wire x1="86.36" y1="54.61" x2="87.63" y2="53.34" width="0.254" layer="16"/>


<wire x1="74.93" y1="54.61" x2="86.36" y2="54.61" width="0.254" layer="16"/>
<wire x1="73.66" y1="55.88" x2="74.93" y2="54.61" width="0.254" layer="1"/>
<wire x1="73.66" y1="67.31" x2="73.66" y2="55.88" width="0.254" layer="1"/>
<wire x1="26.67" y1="64.77" x2="24.13" y2="67.31" width="0.254" layer="1"/>
<wire x1="29.21" y1="64.77" x2="26.67" y2="64.77" width="0.254" layer="1"/>
<wire x1="29.21" y1="67.31" x2="29.21" y2="64.77" width="0.254" layer="1"/>
<wire x1="30.48" y1="68.58" x2="29.21" y2="67.31" width="0.254" layer="1"/>
<wire x1="68.58" y1="68.58" x2="30.48" y2="68.58" width="0.254" layer="1"/>
<wire x1="68.58" y1="57.15" x2="68.58" y2="68.58" width="0.254" layer="1"/>
<wire x1="69.85" y1="55.88" x2="68.58" y2="57.15" width="0.254" layer="1"/>
<wire x1="73.66" y1="55.88" x2="69.85" y2="55.88" width="0.254" layer="1"/>
<via x="74.93" y="54.61" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$30">
<contactref element="IC4" pad="7"/>
<contactref element="U$4" pad="P$1"/>
<contactref element="U$7" pad="P$1"/>
<wire x1="85.09" y1="58.42" x2="87.63" y2="55.88" width="0.254" layer="1"/>
<wire x1="85.09" y1="62.23" x2="85.09" y2="58.42" width="0.254" layer="1"/>
<wire x1="82.55" y1="64.77" x2="85.09" y2="62.23" width="0.254" layer="16"/>

<wire x1="78.74" y1="64.77" x2="82.55" y2="64.77" width="0.254" layer="16"/>
<wire x1="76.2" y1="67.31" x2="78.74" y2="64.77" width="0.254" layer="16"/>




<wire x1="34.29" y1="59.69" x2="26.67" y2="67.31" width="0.254" layer="16"/>
<wire x1="54.61" y1="59.69" x2="34.29" y2="59.69" width="0.254" layer="16"/>
<wire x1="57.15" y1="57.15" x2="54.61" y2="59.69" width="0.254" layer="16"/>
<wire x1="68.58" y1="57.15" x2="57.15" y2="57.15" width="0.254" layer="16"/>
<wire x1="69.85" y1="58.42" x2="68.58" y2="57.15" width="0.254" layer="16"/>
<wire x1="77.47" y1="58.42" x2="69.85" y2="58.42" width="0.254" layer="16"/>
<wire x1="78.74" y1="57.15" x2="77.47" y2="58.42" width="0.254" layer="16"/>
<wire x1="85.09" y1="57.15" x2="78.74" y2="57.15" width="0.254" layer="16"/>
<wire x1="86.36" y1="55.88" x2="85.09" y2="57.15" width="0.254" layer="16"/>
<wire x1="87.63" y1="55.88" x2="86.36" y2="55.88" width="0.254" layer="16"/>
<via x="85.09" y="62.23" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$31">
<contactref element="Q1" pad="2"/>
<contactref element="IC3" pad="9"/>
<contactref element="C4" pad="2"/>
<wire x1="93.98" y1="25.4" x2="93.98" y2="30.48" width="0.254" layer="1"/>
<wire x1="91.44" y1="33.02" x2="87.63" y2="33.02" width="0.254" layer="16"/>
<wire x1="93.98" y1="30.48" x2="91.44" y2="33.02" width="0.254" layer="16"/>
</signal>
<signal name="N$32">
<contactref element="C5" pad="2"/>
<contactref element="IC3" pad="10"/>
<contactref element="Q1" pad="1"/>
<wire x1="93.98" y1="35.56" x2="87.63" y2="35.56" width="0.254" layer="16"/>
<wire x1="93.98" y1="35.56" x2="93.98" y2="41.91" width="0.254" layer="1"/>
</signal>
<signal name="VCC" class="1">
<contactref element="R15" pad="P$2"/>
<contactref element="R14" pad="P$2"/>
<contactref element="C8" pad="1"/>
<contactref element="C6" pad="1"/>
................................................................................
<contactref element="IC3" pad="7"/>
<contactref element="C2" pad="1"/>
<contactref element="IC3" pad="20"/>
<contactref element="IC4" pad="8"/>
<contactref element="C3" pad="1"/>
<contactref element="IC6" pad="OUT"/>
<contactref element="R13" pad="P$2"/>
<wire x1="87.63" y1="63.5" x2="87.63" y2="58.42" width="1.27" layer="1"/>
<wire x1="85.09" y1="66.04" x2="87.63" y2="63.5" width="1.27" layer="1"/>
<wire x1="85.09" y1="27.94" x2="87.63" y2="27.94" width="1.27" layer="1"/>
<wire x1="85.09" y1="33.02" x2="85.09" y2="27.94" width="1.27" layer="1"/>
<wire x1="80.01" y1="33.02" x2="85.09" y2="33.02" width="1.27" layer="16"/>
<wire x1="90.17" y1="58.42" x2="87.63" y2="58.42" width="1.27" layer="1"/>
<wire x1="90.17" y1="49.53" x2="90.17" y2="58.42" width="1.27" layer="1"/>
<wire x1="88.9" y1="48.26" x2="90.17" y2="49.53" width="1.27" layer="1"/>
<wire x1="85.09" y1="48.26" x2="88.9" y2="48.26" width="1.27" layer="1"/>
<wire x1="85.09" y1="33.02" x2="85.09" y2="48.26" width="1.27" layer="1"/>
<wire x1="72.39" y1="3.81" x2="69.85" y2="3.81" width="1.27" layer="1"/>
<wire x1="40.64" y1="8.89" x2="40.64" y2="11.43" width="1.27" layer="1"/>
<wire x1="40.64" y1="11.43" x2="40.64" y2="13.97" width="1.27" layer="1"/>
<wire x1="38.1" y1="6.35" x2="40.64" y2="8.89" width="1.27" layer="1"/>
<wire x1="40.64" y1="11.43" x2="48.26" y2="3.81" width="1.27" layer="1"/>
<wire x1="87.63" y1="8.89" x2="91.44" y2="12.7" width="1.27" layer="16"/>
<wire x1="66.04" y1="8.89" x2="72.39" y2="8.89" width="1.27" layer="16"/>
<wire x1="72.39" y1="8.89" x2="85.09" y2="8.89" width="1.27" layer="16"/>
<wire x1="85.09" y1="8.89" x2="87.63" y2="8.89" width="1.27" layer="16"/>
<wire x1="63.5" y1="6.35" x2="66.04" y2="8.89" width="1.27" layer="16"/>
<wire x1="50.8" y1="6.35" x2="63.5" y2="6.35" width="1.27" layer="16"/>
<wire x1="48.26" y1="3.81" x2="50.8" y2="6.35" width="1.27" layer="16"/>
<wire x1="66.04" y1="8.89" x2="63.5" y2="11.43" width="1.27" layer="1"/>
<wire x1="72.39" y1="6.35" x2="72.39" y2="3.81" width="1.27" layer="1"/>
<wire x1="72.39" y1="8.89" x2="72.39" y2="6.35" width="1.27" layer="16"/>
<wire x1="85.09" y1="8.89" x2="85.09" y2="27.94" width="1.27" layer="1"/>



<via x="85.09" y="33.02" extent="1-16" drill="0.6096"/>
<via x="66.04" y="8.89" extent="1-16" drill="0.6096"/>
<via x="72.39" y="6.35" extent="1-16" drill="0.6096"/>
<via x="85.09" y="8.89" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$35">
<contactref element="IC3" pad="3"/>
<contactref element="R1" pad="P$1"/>
<contactref element="R19" pad="P$1"/>
<wire x1="90.17" y1="15.24" x2="87.63" y2="17.78" width="0.254" layer="16"/>
<wire x1="90.17" y1="13.97" x2="90.17" y2="15.24" width="0.254" layer="16"/>
<wire x1="92.71" y1="13.97" x2="90.17" y2="13.97" width="0.254" layer="16"/>
<wire x1="92.71" y1="1.27" x2="92.71" y2="13.97" width="0.254" layer="16"/>
<wire x1="63.5" y1="1.27" x2="92.71" y2="1.27" width="0.254" layer="16"/>
<wire x1="60.96" y1="3.81" x2="63.5" y2="1.27" width="0.254" layer="16"/>
<wire x1="72.39" y1="8.89" x2="74.93" y2="11.43" width="0.254" layer="1"/>
<wire x1="68.58" y1="8.89" x2="72.39" y2="8.89" width="0.254" layer="1"/>
<wire x1="68.58" y1="6.35" x2="68.58" y2="8.89" width="0.254" layer="1"/>
<wire x1="67.31" y1="5.08" x2="68.58" y2="6.35" width="0.254" layer="1"/>
<wire x1="60.96" y1="5.08" x2="67.31" y2="5.08" width="0.254" layer="1"/>
<wire x1="60.96" y1="3.81" x2="60.96" y2="5.08" width="0.254" layer="1"/>
</signal>
<signal name="N$34">
<contactref element="IC3" pad="15"/>
<contactref element="LED1" pad="K"/>
<wire x1="72.39" y1="45.72" x2="80.01" y2="45.72" width="0.254" layer="16"/>



<wire x1="72.39" y1="36.83" x2="72.39" y2="45.72" width="0.254" layer="1"/>
<wire x1="71.12" y1="35.56" x2="72.39" y2="36.83" width="0.254" layer="16"/>
<wire x1="33.02" y1="35.56" x2="71.12" y2="35.56" width="0.254" layer="16"/>
<wire x1="31.75" y1="34.29" x2="33.02" y2="35.56" width="0.254" layer="1"/>
<wire x1="31.75" y1="27.94" x2="31.75" y2="34.29" width="0.254" layer="1"/>
<wire x1="30.48" y1="26.67" x2="31.75" y2="27.94" width="0.254" layer="1"/>
<wire x1="30.48" y1="8.89" x2="30.48" y2="26.67" width="0.254" layer="1"/>
<wire x1="36.83" y1="2.54" x2="30.48" y2="8.89" width="0.254" layer="1"/>
<wire x1="53.34" y1="2.54" x2="36.83" y2="2.54" width="0.254" layer="1"/>
<wire x1="53.34" y1="12.7" x2="53.34" y2="2.54" width="0.254" layer="1"/>
<wire x1="57.15" y1="16.51" x2="53.34" y2="12.7" width="0.254" layer="1"/>
<wire x1="60.96" y1="16.51" x2="57.15" y2="16.51" width="0.254" layer="1"/>
<wire x1="60.96" y1="15.24" x2="60.96" y2="16.51" width="0.254" layer="1"/>
<via x="72.39" y="45.72" extent="1-16" drill="0.6096"/>
<via x="72.39" y="36.83" extent="1-16" drill="0.6096"/>
<via x="33.02" y="35.56" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$38">
<contactref element="LED1" pad="A"/>
<contactref element="R14" pad="P$1"/>



<wire x1="59.69" y1="13.97" x2="58.42" y2="15.24" width="0.254" layer="1"/>

<wire x1="72.39" y1="13.97" x2="59.69" y2="13.97" width="0.254" layer="1"/>
<wire x1="72.39" y1="11.43" x2="72.39" y2="13.97" width="0.254" layer="1"/>
</signal>
<signal name="N$3" class="2">
<contactref element="F1" pad="1"/>
<contactref element="BRIDGE" pad="V+"/>
<wire x1="13.97" y1="24.13" x2="8.89" y2="29.21" width="1.27" layer="16"/>
<wire x1="15.24" y1="24.13" x2="13.97" y2="24.13" width="1.27" layer="16"/>
<wire x1="15.24" y1="17.78" x2="15.24" y2="24.13" width="1.27" layer="1"/>
<wire x1="17.78" y1="15.24" x2="15.24" y2="17.78" width="1.27" layer="1"/>
<via x="15.24" y="24.13" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$1" class="2">
<contactref element="BRIDGE" pad="AC1"/>
<contactref element="U$8" pad="P$1"/>
<wire x1="12.7" y1="10.16" x2="8.89" y2="13.97" width="1.27" layer="1"/>
<wire x1="12.7" y1="5.08" x2="12.7" y2="10.16" width="1.27" layer="1"/>
<wire x1="15.24" y1="2.54" x2="12.7" y2="5.08" width="1.27" layer="1"/>
</signal>
<signal name="N$2" class="4">
<contactref element="BRIDGE" pad="AC2"/>
<contactref element="U$9" pad="P$1"/>
<wire x1="6.35" y1="19.05" x2="8.89" y2="21.59" width="1.27" layer="1"/>

<wire x1="6.35" y1="2.54" x2="6.35" y2="19.05" width="1.27" layer="1"/>
</signal>
<signal name="N$7" class="2">
<contactref element="HOT1" pad="BPPAD"/>
<contactref element="HOT2" pad="BPPAD"/>
<contactref element="U$1" pad="P$5"/>
<contactref element="U$1" pad="P$8"/>
<contactref element="C11" pad="1"/>
<contactref element="R22" pad="P$2"/>
<wire x1="22.86" y1="52.07" x2="16.51" y2="58.42" width="1.27" layer="1"/>
<wire x1="22.86" y1="49.53" x2="22.86" y2="52.07" width="1.27" layer="1"/>
<wire x1="22.86" y1="40.64" x2="22.86" y2="33.02" width="1.27" layer="1"/>
<wire x1="8.89" y1="25.4" x2="3.81" y2="20.32" width="1.27" layer="1"/>
<wire x1="8.89" y1="26.67" x2="8.89" y2="25.4" width="1.27" layer="1"/>
<wire x1="13.97" y1="21.59" x2="8.89" y2="26.67" width="1.27" layer="16"/>
<wire x1="20.32" y1="21.59" x2="13.97" y2="21.59" width="1.27" layer="16"/>
<wire x1="22.86" y1="24.13" x2="20.32" y2="21.59" width="1.27" layer="16"/>
<wire x1="22.86" y1="24.13" x2="22.86" y2="33.02" width="1.27" layer="1"/>
<wire x1="22.86" y1="40.64" x2="22.86" y2="49.53" width="1.27" layer="1"/>
<via x="8.89" y="26.67" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$4" class="2">
<contactref element="IC1" pad="2"/>
<contactref element="R17" pad="1"/>
<wire x1="6.35" y1="27.94" x2="3.81" y2="27.94" width="1.27" layer="1"/>
<wire x1="6.35" y1="35.56" x2="6.35" y2="27.94" width="1.27" layer="1"/>

<wire x1="3.81" y1="38.1" x2="6.35" y2="35.56" width="1.27" layer="1"/>
<wire x1="3.81" y1="44.45" x2="3.81" y2="38.1" width="1.27" layer="1"/>
</signal>
<signal name="N$40">
<contactref element="IC4" pad="3"/>
<contactref element="IC3" pad="19"/>
<wire x1="77.47" y1="38.1" x2="80.01" y2="35.56" width="0.254" layer="1"/>
<wire x1="77.47" y1="50.8" x2="77.47" y2="38.1" width="0.254" layer="1"/>
<wire x1="80.01" y1="53.34" x2="77.47" y2="50.8" width="0.254" layer="1"/>
</signal>
<signal name="N$39">
<contactref element="JP1" pad="4"/>
<contactref element="R13" pad="P$1"/>
<wire x1="64.77" y1="2.54" x2="63.5" y2="3.81" width="0.254" layer="16"/>
<wire x1="83.82" y1="2.54" x2="64.77" y2="2.54" width="0.254" layer="16"/>
<wire x1="86.36" y1="5.08" x2="83.82" y2="2.54" width="0.254" layer="16"/>
</signal>
<signal name="N$36">
<contactref element="R1" pad="P$2"/>
<contactref element="JP1" pad="2"/>
<wire x1="81.28" y1="3.81" x2="74.93" y2="3.81" width="0.254" layer="1"/>
<wire x1="81.28" y1="5.08" x2="81.28" y2="3.81" width="0.254" layer="1"/>
</signal>
<signal name="N$37">
<contactref element="IC3" pad="1"/>
<contactref element="R15" pad="P$1"/>
<contactref element="C9" pad="2"/>
<wire x1="85.09" y1="10.16" x2="87.63" y2="12.7" width="0.254" layer="16"/>
<wire x1="71.12" y1="10.16" x2="85.09" y2="10.16" width="0.254" layer="16"/>
<wire x1="69.85" y1="11.43" x2="71.12" y2="10.16" width="0.254" layer="16"/>
<wire x1="67.31" y1="7.62" x2="66.04" y2="6.35" width="0.254" layer="1"/>
<wire x1="67.31" y1="8.89" x2="67.31" y2="7.62" width="0.254" layer="1"/>
<wire x1="69.85" y1="11.43" x2="67.31" y2="8.89" width="0.254" layer="1"/>

</signal>
<signal name="N$29">
<contactref element="JP1" pad="1"/>
<contactref element="C9" pad="1"/>
<wire x1="67.31" y1="5.08" x2="66.04" y2="3.81" width="0.254" layer="16"/>
<wire x1="78.74" y1="5.08" x2="67.31" y2="5.08" width="0.254" layer="16"/>

</signal>
<signal name="N$33">
<contactref element="IC4" pad="1"/>
<contactref element="R16" pad="P$2"/>
<contactref element="R20" pad="P$1"/>
<wire x1="81.28" y1="59.69" x2="80.01" y2="58.42" width="0.254" layer="1"/>
<wire x1="81.28" y1="67.31" x2="81.28" y2="59.69" width="0.254" layer="1"/>
<wire x1="93.98" y1="67.31" x2="83.82" y2="67.31" width="0.254" layer="1"/>
<wire x1="83.82" y1="67.31" x2="81.28" y2="67.31" width="0.254" layer="1"/>
<wire x1="93.98" y1="63.5" x2="93.98" y2="67.31" width="0.254" layer="1"/>
<wire x1="59.69" y1="12.7" x2="58.42" y2="11.43" width="0.254" layer="1"/>
<wire x1="62.23" y1="12.7" x2="59.69" y2="12.7" width="0.254" layer="1"/>
<wire x1="62.23" y1="10.16" x2="62.23" y2="12.7" width="0.254" layer="1"/>
<wire x1="57.15" y1="5.08" x2="62.23" y2="10.16" width="0.254" layer="1"/>
<wire x1="57.15" y1="2.54" x2="57.15" y2="5.08" width="0.254" layer="1"/>
<wire x1="58.42" y1="1.27" x2="57.15" y2="2.54" width="0.254" layer="1"/>
<wire x1="82.55" y1="1.27" x2="58.42" y2="1.27" width="0.254" layer="1"/>
<wire x1="82.55" y1="8.89" x2="82.55" y2="1.27" width="0.254" layer="1"/>
<wire x1="83.82" y1="10.16" x2="82.55" y2="8.89" width="0.254" layer="1"/>
<wire x1="83.82" y1="67.31" x2="83.82" y2="10.16" width="0.254" layer="1"/>

</signal>
<signal name="N$42">
<contactref element="JP1" pad="3"/>
<contactref element="R16" pad="P$1"/>
<contactref element="IC3" pad="2"/>
<wire x1="90.17" y1="12.7" x2="87.63" y2="15.24" width="0.254" layer="1"/>
<wire x1="90.17" y1="11.43" x2="90.17" y2="12.7" width="0.254" layer="1"/>
<wire x1="83.82" y1="5.08" x2="90.17" y2="11.43" width="0.254" layer="1"/>
<wire x1="92.71" y1="54.61" x2="93.98" y2="55.88" width="0.254" layer="1"/>
<wire x1="92.71" y1="20.32" x2="92.71" y2="54.61" width="0.254" layer="1"/>
<wire x1="87.63" y1="15.24" x2="92.71" y2="20.32" width="0.254" layer="1"/>


</signal>
<signal name="N$27">
<contactref element="R19" pad="P$2"/>
<contactref element="IC4" pad="4"/>
<contactref element="R21" pad="P$1"/>
<wire x1="76.2" y1="46.99" x2="80.01" y2="50.8" width="0.254" layer="16"/>
<wire x1="74.93" y1="46.99" x2="76.2" y2="46.99" width="0.254" layer="16"/>
<wire x1="73.66" y1="45.72" x2="74.93" y2="46.99" width="0.254" layer="1"/>
<wire x1="73.66" y1="34.29" x2="73.66" y2="45.72" width="0.254" layer="1"/>
<wire x1="72.39" y1="33.02" x2="73.66" y2="34.29" width="0.254" layer="1"/>


<wire x1="72.39" y1="27.94" x2="72.39" y2="33.02" width="0.254" layer="1"/>
<wire x1="73.66" y1="26.67" x2="72.39" y2="27.94" width="0.254" layer="16"/>
<wire x1="73.66" y1="16.51" x2="73.66" y2="26.67" width="0.254" layer="16"/>
<wire x1="64.77" y1="16.51" x2="73.66" y2="16.51" width="0.254" layer="16"/>
<wire x1="60.96" y1="12.7" x2="64.77" y2="16.51" width="0.254" layer="16"/>
<wire x1="60.96" y1="11.43" x2="60.96" y2="12.7" width="0.254" layer="16"/>
<wire x1="55.88" y1="6.35" x2="55.88" y2="3.81" width="0.254" layer="1"/>


<wire x1="60.96" y1="11.43" x2="55.88" y2="6.35" width="0.254" layer="1"/>

<via x="74.93" y="46.99" extent="1-16" drill="0.6096"/>
<via x="72.39" y="27.94" extent="1-16" drill="0.6096"/>
</signal>
<signal name="N$43">
<contactref element="IC3" pad="18"/>
<contactref element="R20" pad="P$2"/>
<wire x1="74.93" y1="33.02" x2="80.01" y2="38.1" width="0.254" layer="16"/>
<wire x1="73.66" y1="33.02" x2="74.93" y2="33.02" width="0.254" layer="16"/>
<wire x1="73.66" y1="15.24" x2="73.66" y2="33.02" width="0.254" layer="1"/>
<wire x1="76.2" y1="12.7" x2="73.66" y2="15.24" width="0.254" layer="1"/>
<wire x1="76.2" y1="10.16" x2="76.2" y2="12.7" width="0.254" layer="1"/>
<wire x1="73.66" y1="7.62" x2="76.2" y2="10.16" width="0.254" layer="1"/>
<wire x1="69.85" y1="7.62" x2="73.66" y2="7.62" width="0.254" layer="1"/>
<wire x1="69.85" y1="6.35" x2="69.85" y2="7.62" width="0.254" layer="1"/>
<wire x1="67.31" y1="3.81" x2="69.85" y2="6.35" width="0.254" layer="1"/>
<wire x1="67.31" y1="2.54" x2="67.31" y2="3.81" width="0.254" layer="1"/>
<wire x1="58.42" y1="2.54" x2="67.31" y2="2.54" width="0.254" layer="1"/>
<wire x1="58.42" y1="3.81" x2="58.42" y2="2.54" width="0.254" layer="1"/>
<via x="73.66" y="33.02" extent="1-16" drill="0.6096"/>


</signal>
<signal name="N$44">
<contactref element="IC3" pad="17"/>
<contactref element="R21" pad="P$2"/>
<wire x1="68.58" y1="40.64" x2="80.01" y2="40.64" width="0.254" layer="16"/>
<wire x1="67.31" y1="41.91" x2="68.58" y2="40.64" width="0.254" layer="1"/>
<wire x1="48.26" y1="41.91" x2="67.31" y2="41.91" width="0.254" layer="1"/>
<wire x1="31.75" y1="41.91" x2="48.26" y2="41.91" width="0.254" layer="16"/>
<wire x1="31.75" y1="39.37" x2="31.75" y2="41.91" width="0.254" layer="16"/>
<wire x1="11.43" y1="39.37" x2="31.75" y2="39.37" width="0.254" layer="16"/>
<wire x1="13.97" y1="36.83" x2="11.43" y2="39.37" width="0.254" layer="1"/>
<wire x1="13.97" y1="10.16" x2="13.97" y2="36.83" width="0.254" layer="1"/>
<wire x1="22.86" y1="1.27" x2="13.97" y2="10.16" width="0.254" layer="1"/>
<wire x1="54.61" y1="1.27" x2="22.86" y2="1.27" width="0.254" layer="1"/>
<wire x1="54.61" y1="10.16" x2="54.61" y2="1.27" width="0.254" layer="1"/>
<wire x1="55.88" y1="11.43" x2="54.61" y2="10.16" width="0.254" layer="1"/>
<via x="68.58" y="40.64" extent="1-16" drill="0.6096"/>

<via x="48.26" y="41.91" extent="1-16" drill="0.6096"/>
<via x="11.43" y="39.37" extent="1-16" drill="0.6096"/>
</signal>
</signals>
</board>
</drawing>
</eagle>

Changes to Hardware/Board/Firenet/Firenet.pro.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
EAGLE AutoRouter Statistics:

Job           : /Users/jschimpf/Public/Firenet/Hardware/Board/Firenet/Firenet.brd

Start at      : 09:02:06 (06/09/2012)
End at        : 09:02:09 (06/09/2012)
Elapsed time  : 00:00:03

Signals       :    46   RoutingGrid: 50 mil  Layers: 2
Connections   :   121   predefined:  0 ( 0 Vias )

Router memory :   21924

Passname          :    Busses     Route Optimize1 Optimize2 Optimize3 Optimize4

Time per pass     :  00:00:00  00:00:02  00:00:00  00:00:00  00:00:00  00:00:01
Number of Ripups  :         0        75         0         0         0         0
max. Level        :         0         8         0         0         0         0
max. Total        :         0        36         0         0         0         0

Routed            :        10       121       121       121       121       121
Vias              :         0       146        68        56        50        42
Resolution        :     8.3 %   100.0 %   100.0 %   100.0 %   100.0 %   100.0 %

Final             : 100.0% finished




|
|
|

|
|





|
|
|


|
|
|


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
EAGLE AutoRouter Statistics:

Job           : /Users/jschimpf/Public/Firenet/Hardware/Board/Firenet/Firenet.brd

Start at      : 05:38:16 (01/12/2013)
End at        : 05:38:18 (01/12/2013)
Elapsed time  : 00:00:02

Signals       :    45   RoutingGrid: 50 mil  Layers: 2
Connections   :   126   predefined:  0 ( 0 Vias )

Router memory :   21924

Passname          :    Busses     Route Optimize1 Optimize2 Optimize3 Optimize4

Time per pass     :  00:00:00  00:00:01  00:00:00  00:00:00  00:00:00  00:00:01
Number of Ripups  :         0        57         0         0         0         0
max. Level        :         0         5         0         0         0         0
max. Total        :         0        36         0         0         0         0

Routed            :        10       126       126       126       126       126
Vias              :         0       151        60        53        47        46
Resolution        :     7.9 %   100.0 %   100.0 %   100.0 %   100.0 %   100.0 %

Final             : 100.0% finished

Changes to Hardware/Board/Firenet/Firenet.sch.

1
2
3
4
5
6
7
8
9
10
..
56
57
58
59
60
61
62

63



64
65
66


67
68
69
70
71
72
73
74
75
76
















77
78
79
80
81
82
83
....
4760
4761
4762
4763
4764
4765
4766





































































































































































































































































































































































































































































































































































































































































































































































































































































































































































4767
4768
4769
4770
4771
4772
4773
....
4868
4869
4870
4871
4872
4873
4874




4875
4876
4877
4878
4879
4880
4881
....
4970
4971
4972
4973
4974
4975
4976




4977
4978
4979
4980
4981
4982
4983
....
5120
5121
5122
5123
5124
5125
5126








5127
5128
5129
5130
5131
5132
5133
....
5566
5567
5568
5569
5570
5571
5572


5573
5574
5575
5576
5577
5578
5579
5580





5581
5582
5583
5584
5585
5586
5587
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.2">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
................................................................................
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="no" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="no" active="yes"/>

<layer number="104" name="Name" color="7" fill="1" visible="no" active="yes"/>



<layer number="116" name="Patch_BOT" color="9" fill="4" visible="no" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="no" active="yes"/>


<layer number="151" name="HeatSink" color="7" fill="1" visible="no" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="10" visible="no" active="yes"/>
<layer number="202" name="202bmp" color="3" fill="10" visible="no" active="yes"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="no" active="yes"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="no" active="yes"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="no" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="no" active="yes"/>
<layer number="207" name="207bmp" color="8" fill="10" visible="no" active="yes"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="no" active="yes"/>
















<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="no" active="yes"/>
</layers>
<schematic xreflabel="%F%N/%S.%C%R" xrefpart="/%S.%C%R">
<libraries>
<library name="frames">
................................................................................
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>





































































































































































































































































































































































































































































































































































































































































































































































































































































































































































</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0.127" drill="0">
................................................................................
<part name="U$9" library="firenet" deviceset="PIN16" device="" value="V-"/>
<part name="R16" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="1K"/>
<part name="R17" library="resistor-power" deviceset="R" device="KP292" value="1.25 ohm 2W"/>
<part name="R13" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="R19" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="R20" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="R21" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>




</parts>
<sheets>
<sheet>
<plain>
<text x="251.46" y="-5.08" size="1.778" layer="91">1.3</text>
<text x="25.4" y="58.42" size="1.778" layer="91">NOTE: NODE BOARD R1-1K, R19-0K</text>
<text x="25.4" y="50.8" size="1.778" layer="91">NOTE: HEAD BOARD R13-0K,R20-0K, R21-0K</text>
................................................................................
<instance part="U$9" gate="G$1" x="7.62" y="0" rot="R180"/>
<instance part="R16" gate="G$1" x="-5.08" y="152.4" rot="R270"/>
<instance part="R17" gate="G$1" x="91.44" y="43.18"/>
<instance part="R13" gate="G$1" x="35.56" y="172.72"/>
<instance part="R19" gate="G$1" x="-2.54" y="132.08"/>
<instance part="R20" gate="G$1" x="27.94" y="104.14" rot="R270"/>
<instance part="R21" gate="G$1" x="38.1" y="124.46" rot="R270"/>




</instances>
<busses>
</busses>
<nets>
<net name="GND" class="4">
<segment>
<wire x1="215.9" y1="177.8" x2="213.36" y2="177.8" width="0.1524" layer="91"/>
................................................................................
<pinref part="U$1" gate="G$1" pin="C-"/>
<pinref part="U$1" gate="G$1" pin="C-1"/>
</segment>
<segment>
<pinref part="GND25" gate="1" pin="GND"/>
<pinref part="U$5" gate="G$1" pin="PIN"/>
</segment>








</net>
<net name="N$13" class="3">
<segment>
<wire x1="215.9" y1="137.16" x2="213.36" y2="137.16" width="0.1524" layer="91"/>
<wire x1="215.9" y1="137.16" x2="223.52" y2="137.16" width="0.1524" layer="91"/>
<wire x1="223.52" y1="137.16" x2="223.52" y2="129.54" width="0.1524" layer="91"/>
<junction x="215.9" y="137.16"/>
................................................................................
<pinref part="BRIDGE" gate="G$1" pin="AC2"/>
<pinref part="U$9" gate="G$1" pin="PIN16"/>
</segment>
</net>
<net name="N$7" class="2">
<segment>
<wire x1="129.54" y1="81.28" x2="129.54" y2="73.66" width="0.1524" layer="91"/>


<wire x1="106.68" y1="73.66" x2="129.54" y2="73.66" width="0.1524" layer="91"/>
<wire x1="129.54" y1="81.28" x2="106.68" y2="81.28" width="0.1524" layer="91"/>
<junction x="129.54" y="81.28"/>
<junction x="129.54" y="73.66"/>
<pinref part="HOT1" gate="G$1" pin="BP"/>
<pinref part="HOT2" gate="G$1" pin="BP"/>
<pinref part="U$1" gate="G$1" pin="NO"/>
<pinref part="U$1" gate="G$1" pin="NO1"/>





</segment>
</net>
<net name="N$4" class="2">
<segment>
<wire x1="86.36" y1="43.18" x2="83.82" y2="43.18" width="0.1524" layer="91"/>
<pinref part="IC1" gate="1" pin="OUT"/>
<pinref part="R17" gate="G$1" pin="1"/>


|







 







>

>
>
>



>
>










>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>







 







>
>
>
>







 







>
>
>
>
>
>
>
>







 







>
>
|







>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
..
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
....
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
....
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
....
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
....
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
....
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.5.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
................................................................................
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="no" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="no" active="yes"/>
<layer number="103" name="tMap" color="7" fill="1" visible="no" active="yes"/>
<layer number="104" name="Name" color="7" fill="1" visible="no" active="yes"/>
<layer number="105" name="tPlate" color="7" fill="1" visible="no" active="yes"/>
<layer number="106" name="bPlate" color="7" fill="1" visible="no" active="yes"/>
<layer number="107" name="Crop" color="7" fill="1" visible="no" active="yes"/>
<layer number="116" name="Patch_BOT" color="9" fill="4" visible="no" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="125" name="_tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="144" name="Drill_legend" color="7" fill="1" visible="no" active="yes"/>
<layer number="151" name="HeatSink" color="7" fill="1" visible="no" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="10" visible="no" active="yes"/>
<layer number="202" name="202bmp" color="3" fill="10" visible="no" active="yes"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="no" active="yes"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="no" active="yes"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="no" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="no" active="yes"/>
<layer number="207" name="207bmp" color="8" fill="10" visible="no" active="yes"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="no" active="yes"/>
<layer number="209" name="209bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="210" name="210bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="211" name="211bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="212" name="212bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="213" name="213bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="214" name="214bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="215" name="215bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="216" name="216bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="217" name="217bmp" color="18" fill="1" visible="no" active="no"/>
<layer number="218" name="218bmp" color="19" fill="1" visible="no" active="no"/>
<layer number="219" name="219bmp" color="20" fill="1" visible="no" active="no"/>
<layer number="220" name="220bmp" color="21" fill="1" visible="no" active="no"/>
<layer number="221" name="221bmp" color="22" fill="1" visible="no" active="no"/>
<layer number="222" name="222bmp" color="23" fill="1" visible="no" active="no"/>
<layer number="223" name="223bmp" color="24" fill="1" visible="no" active="no"/>
<layer number="224" name="224bmp" color="25" fill="1" visible="no" active="no"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="no" active="yes"/>
</layers>
<schematic xreflabel="%F%N/%S.%C%R" xrefpart="/%S.%C%R">
<libraries>
<library name="frames">
................................................................................
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="SparkFun-Capacitors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find resistors, capacitors, inductors, test points, jumper pads, etc.&lt;br&gt;&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; CC v3.0 Share-Alike You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.</description>
<packages>
<package name="EIA3216">
<wire x1="-1" y1="-1.2" x2="-2.5" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="-2.5" y1="-1.2" x2="-2.5" y2="1.2" width="0.2032" layer="21"/>
<wire x1="-2.5" y1="1.2" x2="-1" y2="1.2" width="0.2032" layer="21"/>
<wire x1="1" y1="-1.2" x2="2.1" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="2.1" y1="-1.2" x2="2.5" y2="-0.8" width="0.2032" layer="21"/>
<wire x1="2.5" y1="-0.8" x2="2.5" y2="0.8" width="0.2032" layer="21"/>
<wire x1="2.5" y1="0.8" x2="2.1" y2="1.2" width="0.2032" layer="21"/>
<wire x1="2.1" y1="1.2" x2="1" y2="1.2" width="0.2032" layer="21"/>
<wire x1="0.381" y1="1.016" x2="0.381" y2="-1.016" width="0.127" layer="21"/>
<smd name="C" x="-1.4" y="0" dx="1.6" dy="1.4" layer="1" rot="R90"/>
<smd name="A" x="1.4" y="0" dx="1.6" dy="1.4" layer="1" rot="R90"/>
<text x="-2.54" y="1.381" size="0.4064" layer="25">&gt;NAME</text>
<text x="0.408" y="1.332" size="0.4064" layer="27">&gt;VALUE</text>
</package>
<package name="EIA3528">
<wire x1="-0.9" y1="-1.6" x2="-2.6" y2="-1.6" width="0.2032" layer="21"/>
<wire x1="-2.6" y1="-1.6" x2="-2.6" y2="1.55" width="0.2032" layer="21"/>
<wire x1="-2.6" y1="1.55" x2="-0.9" y2="1.55" width="0.2032" layer="21"/>
<wire x1="1" y1="-1.55" x2="2.2" y2="-1.55" width="0.2032" layer="21"/>
<wire x1="2.2" y1="-1.55" x2="2.6" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="2.6" y1="-1.2" x2="2.6" y2="1.25" width="0.2032" layer="21"/>
<wire x1="2.6" y1="1.25" x2="2.2" y2="1.55" width="0.2032" layer="21"/>
<wire x1="2.2" y1="1.55" x2="1" y2="1.55" width="0.2032" layer="21"/>
<wire x1="2.2" y1="1.55" x2="1" y2="1.55" width="0.2032" layer="21"/>
<wire x1="0.609" y1="1.311" x2="0.609" y2="-1.286" width="0.2032" layer="21" style="longdash"/>
<smd name="C" x="-1.65" y="0" dx="2.5" dy="1.2" layer="1" rot="R90"/>
<smd name="A" x="1.65" y="0" dx="2.5" dy="1.2" layer="1" rot="R90"/>
<text x="-2.27" y="-1.27" size="1.27" layer="25" rot="R90">&gt;NAME</text>
<text x="3.24" y="-1.37" size="1.27" layer="27" rot="R90">&gt;VALUE</text>
</package>
<package name="CPOL-RADIAL-100UF-25V">
<wire x1="-0.635" y1="1.27" x2="-1.905" y2="1.27" width="0.2032" layer="21"/>
<circle x="0" y="0" radius="3.25" width="0.2032" layer="21"/>
<pad name="2" x="-1.27" y="0" drill="0.7" diameter="1.651"/>
<pad name="1" x="1.27" y="0" drill="0.7" diameter="1.651" shape="square"/>
<text x="-1.905" y="-4.318" size="0.8128" layer="27">&gt;Value</text>
<text x="-0.762" y="1.651" size="0.4064" layer="25">&gt;Name</text>
</package>
<package name="CPOL-RADIAL-10UF-25V">
<wire x1="-0.762" y1="1.397" x2="-1.778" y2="1.397" width="0.2032" layer="21"/>
<circle x="0" y="0" radius="2.5" width="0.2032" layer="21"/>
<pad name="1" x="1.27" y="0" drill="0.7" diameter="1.651" shape="square"/>
<pad name="2" x="-1.27" y="0" drill="0.7" diameter="1.651"/>
<text x="-0.889" y="1.524" size="0.4064" layer="25">&gt;Name</text>
<text x="-1.905" y="-3.683" size="0.8128" layer="27">&gt;Value</text>
</package>
<package name="EIA7343">
<wire x1="-5" y1="2.5" x2="-2" y2="2.5" width="0.2032" layer="21"/>
<wire x1="-5" y1="2.5" x2="-5" y2="-2.5" width="0.2032" layer="21"/>
<wire x1="-5" y1="-2.5" x2="-2" y2="-2.5" width="0.2032" layer="21"/>
<wire x1="2" y1="2.5" x2="4" y2="2.5" width="0.2032" layer="21"/>
<wire x1="4" y1="2.5" x2="5" y2="1.5" width="0.2032" layer="21"/>
<wire x1="5" y1="1.5" x2="5" y2="-1.5" width="0.2032" layer="21"/>
<wire x1="5" y1="-1.5" x2="4" y2="-2.5" width="0.2032" layer="21"/>
<wire x1="4" y1="-2.5" x2="2" y2="-2.5" width="0.2032" layer="21"/>
<smd name="C" x="-3.17" y="0" dx="2.55" dy="2.7" layer="1" rot="R180"/>
<smd name="A" x="3.17" y="0" dx="2.55" dy="2.7" layer="1" rot="R180"/>
<text x="-1.27" y="1.27" size="0.4064" layer="25">&gt;Name</text>
<text x="-1.27" y="-1.27" size="0.4064" layer="27">&gt;Value</text>
</package>
<package name="PANASONIC_G">
<description>&lt;b&gt;Panasonic Aluminium Electrolytic Capacitor VS-Serie Package G&lt;/b&gt;</description>
<wire x1="-5.1" y1="5.1" x2="2.8" y2="5.1" width="0.1016" layer="51"/>
<wire x1="2.8" y1="5.1" x2="5.1" y2="2.8" width="0.1016" layer="51"/>
<wire x1="5.1" y1="2.8" x2="5.1" y2="-2.8" width="0.1016" layer="51"/>
<wire x1="5.1" y1="-2.8" x2="2.8" y2="-5.1" width="0.1016" layer="51"/>
<wire x1="2.8" y1="-5.1" x2="-5.1" y2="-5.1" width="0.1016" layer="51"/>
<wire x1="-5.1" y1="-5.1" x2="-5.1" y2="5.1" width="0.1016" layer="51"/>
<wire x1="-5.1" y1="1" x2="-5.1" y2="5.1" width="0.2032" layer="21"/>
<wire x1="-5.1" y1="5.1" x2="2.8" y2="5.1" width="0.2032" layer="21"/>
<wire x1="2.8" y1="5.1" x2="5.1" y2="2.8" width="0.2032" layer="21"/>
<wire x1="5.1" y1="2.8" x2="5.1" y2="1" width="0.2032" layer="21"/>
<wire x1="5.1" y1="-1" x2="5.1" y2="-2.8" width="0.2032" layer="21"/>
<wire x1="5.1" y1="-2.8" x2="2.8" y2="-5.1" width="0.2032" layer="21"/>
<wire x1="2.8" y1="-5.1" x2="-5.1" y2="-5.1" width="0.2032" layer="21"/>
<wire x1="-5.1" y1="-5.1" x2="-5.1" y2="-1" width="0.2032" layer="21"/>
<wire x1="-4.85" y1="-1" x2="4.85" y2="-1" width="0.2032" layer="21" curve="156.699401" cap="flat"/>
<wire x1="-4.85" y1="1" x2="4.85" y2="1" width="0.2032" layer="21" curve="-156.699401" cap="flat"/>
<wire x1="-3.25" y1="3.7" x2="-3.25" y2="-3.65" width="0.1016" layer="51"/>
<circle x="0" y="0" radius="4.95" width="0.1016" layer="51"/>
<smd name="-" x="-4.25" y="0" dx="3.9" dy="1.6" layer="1"/>
<smd name="+" x="4.25" y="0" dx="3.9" dy="1.6" layer="1"/>
<text x="-1.27" y="1.27" size="0.4064" layer="25">&gt;NAME</text>
<text x="-1.27" y="-2.54" size="0.4064" layer="27">&gt;VALUE</text>
<rectangle x1="-5.85" y1="-0.45" x2="-4.9" y2="0.45" layer="51"/>
<rectangle x1="4.9" y1="-0.45" x2="5.85" y2="0.45" layer="51"/>
<polygon width="0.1016" layer="51">
<vertex x="-3.3" y="3.6"/>
<vertex x="-4.05" y="2.75"/>
<vertex x="-4.65" y="1.55"/>
<vertex x="-4.85" y="0.45"/>
<vertex x="-4.85" y="-0.45"/>
<vertex x="-4.65" y="-1.55"/>
<vertex x="-4.05" y="-2.75"/>
<vertex x="-3.3" y="-3.6"/>
<vertex x="-3.3" y="3.55"/>
</polygon>
</package>
<package name="PANASONIC_E">
<description>&lt;b&gt;Panasonic Aluminium Electrolytic Capacitor VS-Serie Package E&lt;/b&gt;</description>
<wire x1="-4.1" y1="4.1" x2="1.8" y2="4.1" width="0.1016" layer="51"/>
<wire x1="1.8" y1="4.1" x2="4.1" y2="1.8" width="0.1016" layer="51"/>
<wire x1="4.1" y1="1.8" x2="4.1" y2="-1.8" width="0.1016" layer="51"/>
<wire x1="4.1" y1="-1.8" x2="1.8" y2="-4.1" width="0.1016" layer="51"/>
<wire x1="1.8" y1="-4.1" x2="-4.1" y2="-4.1" width="0.1016" layer="51"/>
<wire x1="-4.1" y1="-4.1" x2="-4.1" y2="4.1" width="0.1016" layer="51"/>
<wire x1="-4.1" y1="0.9" x2="-4.1" y2="4.1" width="0.2032" layer="21"/>
<wire x1="-4.1" y1="4.1" x2="1.8" y2="4.1" width="0.2032" layer="21"/>
<wire x1="1.8" y1="4.1" x2="4.1" y2="1.8" width="0.2032" layer="21"/>
<wire x1="4.1" y1="1.8" x2="4.1" y2="0.9" width="0.2032" layer="21"/>
<wire x1="4.1" y1="-0.9" x2="4.1" y2="-1.8" width="0.2032" layer="21"/>
<wire x1="4.1" y1="-1.8" x2="1.8" y2="-4.1" width="0.2032" layer="21"/>
<wire x1="1.8" y1="-4.1" x2="-4.1" y2="-4.1" width="0.2032" layer="21"/>
<wire x1="-4.1" y1="-4.1" x2="-4.1" y2="-0.9" width="0.2032" layer="21"/>
<wire x1="-2.2" y1="3.25" x2="-2.2" y2="-3.25" width="0.1016" layer="51"/>
<wire x1="-3.85" y1="0.9" x2="3.85" y2="0.9" width="0.2032" layer="21" curve="-153.684915" cap="flat"/>
<wire x1="-3.85" y1="-0.9" x2="3.85" y2="-0.9" width="0.2032" layer="21" curve="153.684915" cap="flat"/>
<circle x="0" y="0" radius="3.95" width="0.1016" layer="51"/>
<smd name="-" x="-3" y="0" dx="3.8" dy="1.4" layer="1"/>
<smd name="+" x="3" y="0" dx="3.8" dy="1.4" layer="1"/>
<text x="-1.27" y="1.27" size="0.4064" layer="25">&gt;NAME</text>
<text x="-1.27" y="-2.54" size="0.4064" layer="27">&gt;VALUE</text>
<rectangle x1="-4.5" y1="-0.35" x2="-3.8" y2="0.35" layer="51"/>
<rectangle x1="3.8" y1="-0.35" x2="4.5" y2="0.35" layer="51"/>
<polygon width="0.1016" layer="51">
<vertex x="-2.25" y="3.2"/>
<vertex x="-3" y="2.5"/>
<vertex x="-3.6" y="1.5"/>
<vertex x="-3.85" y="0.65"/>
<vertex x="-3.85" y="-0.65"/>
<vertex x="-3.55" y="-1.6"/>
<vertex x="-2.95" y="-2.55"/>
<vertex x="-2.25" y="-3.2"/>
<vertex x="-2.25" y="3.15"/>
</polygon>
</package>
<package name="PANASONIC_C">
<description>&lt;b&gt;Panasonic Aluminium Electrolytic Capacitor VS-Serie Package E&lt;/b&gt;</description>
<wire x1="-2.6" y1="2.45" x2="1.6" y2="2.45" width="0.2032" layer="21"/>
<wire x1="1.6" y1="2.45" x2="2.7" y2="1.35" width="0.2032" layer="21"/>
<wire x1="2.7" y1="-1.75" x2="1.6" y2="-2.85" width="0.2032" layer="21"/>
<wire x1="1.6" y1="-2.85" x2="-2.6" y2="-2.85" width="0.2032" layer="21"/>
<wire x1="-2.6" y1="2.45" x2="1.6" y2="2.45" width="0.1016" layer="51"/>
<wire x1="1.6" y1="2.45" x2="2.7" y2="1.35" width="0.1016" layer="51"/>
<wire x1="2.7" y1="-1.75" x2="1.6" y2="-2.85" width="0.1016" layer="51"/>
<wire x1="1.6" y1="-2.85" x2="-2.6" y2="-2.85" width="0.1016" layer="51"/>
<wire x1="-2.6" y1="2.45" x2="-2.6" y2="0.35" width="0.2032" layer="21"/>
<wire x1="-2.6" y1="-2.85" x2="-2.6" y2="-0.75" width="0.2032" layer="21"/>
<wire x1="2.7" y1="1.35" x2="2.7" y2="0.35" width="0.2032" layer="21"/>
<wire x1="2.7" y1="-1.75" x2="2.7" y2="-0.7" width="0.2032" layer="21"/>
<wire x1="-2.6" y1="2.45" x2="-2.6" y2="-2.85" width="0.1016" layer="51"/>
<wire x1="2.7" y1="1.35" x2="2.7" y2="-1.75" width="0.1016" layer="51"/>
<wire x1="-2.4" y1="0.35" x2="2.45" y2="0.3" width="0.2032" layer="21" curve="-156.699401"/>
<wire x1="2.5" y1="-0.7" x2="-2.4" y2="-0.75" width="0.2032" layer="21" curve="-154.694887"/>
<circle x="0.05" y="-0.2" radius="2.5004" width="0.1016" layer="51"/>
<smd name="-" x="-1.8" y="-0.2" dx="2.2" dy="0.65" layer="1"/>
<smd name="+" x="1.9" y="-0.2" dx="2.2" dy="0.65" layer="1"/>
<text x="-2.6" y="2.7" size="0.4064" layer="25">&gt;NAME</text>
<text x="-2.6" y="-3.45" size="0.4064" layer="27">&gt;VALUE</text>
</package>
<package name="NIPPON_F80">
<wire x1="-3.3" y1="3.3" x2="1.7" y2="3.3" width="0.2032" layer="21"/>
<wire x1="1.7" y1="3.3" x2="3.3" y2="2" width="0.2032" layer="21"/>
<wire x1="3.3" y1="-2" x2="1.7" y2="-3.3" width="0.2032" layer="21"/>
<wire x1="1.7" y1="-3.3" x2="-3.3" y2="-3.3" width="0.2032" layer="21"/>
<wire x1="-3.3" y1="3.3" x2="1.7" y2="3.3" width="0.1016" layer="51"/>
<wire x1="1.7" y1="3.3" x2="3.3" y2="2" width="0.1016" layer="51"/>
<wire x1="3.3" y1="-2" x2="1.7" y2="-3.3" width="0.1016" layer="51"/>
<wire x1="1.7" y1="-3.3" x2="-3.3" y2="-3.3" width="0.1016" layer="51"/>
<wire x1="-3.3" y1="3.3" x2="-3.3" y2="0.685" width="0.2032" layer="21"/>
<wire x1="-3.3" y1="-3.3" x2="-3.3" y2="-0.685" width="0.2032" layer="21"/>
<wire x1="3.3" y1="2" x2="3.3" y2="0.685" width="0.2032" layer="21"/>
<wire x1="3.3" y1="-2" x2="3.3" y2="-0.685" width="0.2032" layer="21"/>
<wire x1="-3.3" y1="3.3" x2="-3.3" y2="-3.3" width="0.1016" layer="51"/>
<wire x1="3.3" y1="2" x2="3.3" y2="-2" width="0.1016" layer="51"/>
<wire x1="-3.1" y1="0.685" x2="3.1" y2="0.685" width="0.2032" layer="21" curve="-156.500033"/>
<wire x1="3.1" y1="-0.685" x2="-3.1" y2="-0.685" width="0.2032" layer="21" curve="-154.748326"/>
<circle x="0" y="0" radius="3.15" width="0.1016" layer="51"/>
<smd name="-" x="-2.4" y="0" dx="2.95" dy="1" layer="1"/>
<smd name="+" x="2.4" y="0" dx="2.95" dy="1" layer="1"/>
<text x="-3.2" y="3.5" size="0.4064" layer="25">&gt;NAME</text>
<text x="-3.2" y="-3.85" size="0.4064" layer="27">&gt;VALUE</text>
</package>
<package name="PANASONIC_D">
<wire x1="-3.25" y1="3.25" x2="1.55" y2="3.25" width="0.1016" layer="51"/>
<wire x1="1.55" y1="3.25" x2="3.25" y2="1.55" width="0.1016" layer="51"/>
<wire x1="3.25" y1="1.55" x2="3.25" y2="-1.55" width="0.1016" layer="51"/>
<wire x1="3.25" y1="-1.55" x2="1.55" y2="-3.25" width="0.1016" layer="51"/>
<wire x1="1.55" y1="-3.25" x2="-3.25" y2="-3.25" width="0.1016" layer="51"/>
<wire x1="-3.25" y1="-3.25" x2="-3.25" y2="3.25" width="0.1016" layer="51"/>
<wire x1="-3.25" y1="0.95" x2="-3.25" y2="3.25" width="0.1016" layer="21"/>
<wire x1="-3.25" y1="3.25" x2="1.55" y2="3.25" width="0.1016" layer="21"/>
<wire x1="1.55" y1="3.25" x2="3.25" y2="1.55" width="0.1016" layer="21"/>
<wire x1="3.25" y1="1.55" x2="3.25" y2="0.95" width="0.1016" layer="21"/>
<wire x1="3.25" y1="-0.95" x2="3.25" y2="-1.55" width="0.1016" layer="21"/>
<wire x1="3.25" y1="-1.55" x2="1.55" y2="-3.25" width="0.1016" layer="21"/>
<wire x1="1.55" y1="-3.25" x2="-3.25" y2="-3.25" width="0.1016" layer="21"/>
<wire x1="-3.25" y1="-3.25" x2="-3.25" y2="-0.95" width="0.1016" layer="21"/>
<wire x1="2.95" y1="0.95" x2="-2.95" y2="0.95" width="0.1016" layer="21" curve="144.299363"/>
<wire x1="-2.95" y1="-0.95" x2="2.95" y2="-0.95" width="0.1016" layer="21" curve="144.299363"/>
<wire x1="-2.1" y1="2.25" x2="-2.1" y2="-2.2" width="0.1016" layer="51"/>
<circle x="0" y="0" radius="3.1" width="0.1016" layer="51"/>
<smd name="+" x="2.4" y="0" dx="3" dy="1.4" layer="1"/>
<smd name="-" x="-2.4" y="0" dx="3" dy="1.4" layer="1"/>
<text x="-1.75" y="1" size="1.016" layer="25">&gt;NAME</text>
<text x="-1.75" y="-1.975" size="1.016" layer="27">&gt;VALUE</text>
<rectangle x1="-3.65" y1="-0.35" x2="-3.05" y2="0.35" layer="51"/>
<rectangle x1="3.05" y1="-0.35" x2="3.65" y2="0.35" layer="51"/>
<polygon width="0.1016" layer="51">
<vertex x="-2.15" y="2.15"/>
<vertex x="-2.6" y="1.6"/>
<vertex x="-2.9" y="0.9"/>
<vertex x="-3.05" y="0"/>
<vertex x="-2.9" y="-0.95"/>
<vertex x="-2.55" y="-1.65"/>
<vertex x="-2.15" y="-2.15"/>
<vertex x="-2.15" y="2.1"/>
</polygon>
</package>
<package name="CPOL-RADIAL-1000UF-63V">
<wire x1="-3.175" y1="1.905" x2="-4.445" y2="1.905" width="0.2032" layer="21"/>
<circle x="0" y="0" radius="8.001" width="0.2032" layer="21"/>
<pad name="2" x="-3.81" y="0" drill="1.016" diameter="1.6764"/>
<pad name="1" x="3.81" y="0" drill="1.016" diameter="1.651" shape="square"/>
<text x="-2.54" y="8.89" size="0.8128" layer="27">&gt;Value</text>
<text x="-2.54" y="10.16" size="0.8128" layer="25">&gt;Name</text>
</package>
<package name="CPOL-RADIAL-1000UF-25V">
<wire x1="-1.905" y1="1.27" x2="-3.175" y2="1.27" width="0.2032" layer="21"/>
<circle x="0" y="0" radius="5.461" width="0.2032" layer="21"/>
<pad name="2" x="-2.54" y="0" drill="0.7" diameter="1.651"/>
<pad name="1" x="2.54" y="0" drill="0.7" diameter="1.651" shape="square"/>
<text x="-1.905" y="-4.318" size="0.8128" layer="27">&gt;Value</text>
<text x="-0.762" y="2.921" size="0.4064" layer="25">&gt;Name</text>
</package>
<package name="VISHAY_C">
<wire x1="0" y1="1.27" x2="0" y2="1.905" width="0.254" layer="21"/>
<wire x1="-2.0574" y1="4.2926" x2="-2.0574" y2="-4.2926" width="0.127" layer="21"/>
<wire x1="-2.0574" y1="-4.2926" x2="2.0574" y2="-4.2926" width="0.127" layer="21"/>
<wire x1="2.0574" y1="-4.2926" x2="2.0574" y2="4.2926" width="0.127" layer="21"/>
<wire x1="2.0574" y1="4.2926" x2="-2.0574" y2="4.2926" width="0.127" layer="21"/>
<smd name="+" x="0" y="3.048" dx="3.556" dy="1.778" layer="1"/>
<smd name="-" x="0" y="-3.048" dx="3.556" dy="1.778" layer="1"/>
<text x="-1.905" y="4.445" size="0.4064" layer="25">&gt;NAME</text>
<text x="-1.905" y="-5.08" size="0.4064" layer="27">&gt;VALUE</text>
</package>
<package name="PANASONIC_H13">
<wire x1="-6.75" y1="6.75" x2="4" y2="6.75" width="0.1016" layer="51"/>
<wire x1="4" y1="6.75" x2="6.75" y2="4" width="0.1016" layer="51"/>
<wire x1="6.75" y1="4" x2="6.75" y2="-4" width="0.1016" layer="51"/>
<wire x1="6.75" y1="-4" x2="4" y2="-6.75" width="0.1016" layer="51"/>
<wire x1="4" y1="-6.75" x2="-6.75" y2="-6.75" width="0.1016" layer="51"/>
<wire x1="-6.75" y1="-6.75" x2="-6.75" y2="6.75" width="0.1016" layer="51"/>
<wire x1="-6.75" y1="1" x2="-6.75" y2="6.75" width="0.2032" layer="21"/>
<wire x1="-6.75" y1="6.75" x2="4" y2="6.75" width="0.2032" layer="21"/>
<wire x1="4" y1="6.75" x2="6.75" y2="4" width="0.2032" layer="21"/>
<wire x1="6.75" y1="4" x2="6.75" y2="1" width="0.2032" layer="21"/>
<wire x1="6.75" y1="-1" x2="6.75" y2="-4" width="0.2032" layer="21"/>
<wire x1="6.75" y1="-4" x2="4" y2="-6.75" width="0.2032" layer="21"/>
<wire x1="4" y1="-6.75" x2="-6.75" y2="-6.75" width="0.2032" layer="21"/>
<wire x1="-6.75" y1="-6.75" x2="-6.75" y2="-1" width="0.2032" layer="21"/>
<wire x1="-6.55" y1="-1.2" x2="6.45" y2="-1.2" width="0.2032" layer="21" curve="156.692742" cap="flat"/>
<wire x1="-6.55" y1="1.2" x2="6.55" y2="1.2" width="0.2032" layer="21" curve="-156.697982" cap="flat"/>
<wire x1="-5" y1="4.25" x2="-4.95" y2="-4.35" width="0.1016" layer="51"/>
<circle x="0" y="0" radius="6.6" width="0.1016" layer="51"/>
<smd name="-" x="-4.7" y="0" dx="5" dy="1.6" layer="1"/>
<smd name="+" x="4.7" y="0" dx="5" dy="1.6" layer="1"/>
<text x="-1.27" y="1.27" size="0.4064" layer="25">&gt;NAME</text>
<text x="-1.27" y="-2.54" size="0.4064" layer="27">&gt;VALUE</text>
<rectangle x1="-7.55" y1="-0.45" x2="-6.6" y2="0.45" layer="51"/>
<rectangle x1="6.6" y1="-0.45" x2="7.55" y2="0.45" layer="51"/>
<polygon width="0.1016" layer="51">
<vertex x="-5" y="4.2"/>
<vertex x="-5.75" y="3.15"/>
<vertex x="-6.25" y="2.05"/>
<vertex x="-6.55" y="0.45"/>
<vertex x="-6.55" y="-0.45"/>
<vertex x="-6.35" y="-1.65"/>
<vertex x="-5.75" y="-3.25"/>
<vertex x="-5" y="-4.2"/>
</polygon>
</package>
<package name="EIA6032">
<wire x1="3.2" y1="-1.6" x2="3.2" y2="1.6" width="0.127" layer="21"/>
<wire x1="-2.8" y1="-1.6" x2="3.2" y2="-1.6" width="0.127" layer="21"/>
<wire x1="3.2" y1="1.6" x2="-2.8" y2="1.6" width="0.127" layer="21"/>
<wire x1="-2.8" y1="1.6" x2="-3.4" y2="1" width="0.127" layer="21"/>
<wire x1="-3.4" y1="1" x2="-3.4" y2="-1" width="0.127" layer="21"/>
<wire x1="-2.8" y1="-1.6" x2="-3.4" y2="-1" width="0.127" layer="21"/>
<smd name="P$1" x="-2.3" y="0" dx="1.5" dy="2.4" layer="1"/>
<smd name="P$2" x="2.3" y="0" dx="1.5" dy="2.4" layer="1"/>
</package>
<package name="EN_J2">
<description>Type J2 package for SMD supercap PRT-10317 (p# EEC-EN0F204J2)</description>
<wire x1="-2.5" y1="-3.5" x2="2.5" y2="-3.5" width="0.127" layer="51"/>
<wire x1="-2.1" y1="3.5" x2="2.1" y2="3.5" width="0.127" layer="51"/>
<wire x1="-2.1" y1="3.5" x2="-2.5" y2="3.1" width="0.127" layer="51"/>
<wire x1="-2.5" y1="3.1" x2="-2.5" y2="2.3" width="0.127" layer="51"/>
<wire x1="2.1" y1="3.5" x2="2.5" y2="3.1" width="0.127" layer="51"/>
<wire x1="2.5" y1="3.1" x2="2.5" y2="2.3" width="0.127" layer="51"/>
<wire x1="-2.5" y1="-3.5" x2="-2.5" y2="-2.3" width="0.127" layer="51"/>
<wire x1="2.5" y1="-3.5" x2="2.5" y2="-2.3" width="0.127" layer="51"/>
<wire x1="-2.5908" y1="-2.413" x2="-2.5654" y2="2.4384" width="0.127" layer="21" curve="-91.212564"/>
<wire x1="2.5908" y1="-2.413" x2="2.5654" y2="2.4384" width="0.127" layer="21" curve="86.79344"/>
<wire x1="1.7272" y1="-1.27" x2="1.7272" y2="-2.0828" width="0.127" layer="21"/>
<wire x1="1.3462" y1="-1.6764" x2="2.159" y2="-1.6764" width="0.127" layer="21"/>
<circle x="0" y="0" radius="3.4" width="0.127" layer="51"/>
<smd name="-" x="0" y="2.8" dx="5" dy="2.4" layer="1"/>
<smd name="+" x="0" y="-3.2" dx="5" dy="1.6" layer="1"/>
<text x="-2.28" y="0.66" size="0.4064" layer="25">&gt;NAME</text>
<text x="-2.31" y="-1.21" size="0.4064" layer="27">&gt;VALUE</text>
</package>
<package name="EIA3528-KIT">
<description>&lt;h3&gt;EIA3528-KIT&lt;/h3&gt;
&lt;b&gt;Warning:&lt;/b&gt; This is the KIT version of this package. This package has longer pads to make hand soldering easier.&lt;br&gt;</description>
<wire x1="-0.9" y1="-1.6" x2="-3.1" y2="-1.6" width="0.2032" layer="21"/>
<wire x1="-3.1" y1="-1.6" x2="-3.1" y2="1.55" width="0.2032" layer="21"/>
<wire x1="-3.1" y1="1.55" x2="-0.9" y2="1.55" width="0.2032" layer="21"/>
<wire x1="1" y1="-1.55" x2="2.7" y2="-1.55" width="0.2032" layer="21"/>
<wire x1="2.7" y1="-1.55" x2="3.1" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="3.1" y1="-1.2" x2="3.1" y2="1.25" width="0.2032" layer="21"/>
<wire x1="3.1" y1="1.25" x2="2.7" y2="1.55" width="0.2032" layer="21"/>
<wire x1="2.7" y1="1.55" x2="1" y2="1.55" width="0.2032" layer="21"/>
<wire x1="0.609" y1="1.311" x2="0.609" y2="-1.286" width="0.4" layer="21" style="longdash"/>
<smd name="C" x="-1.9" y="0" dx="1.7" dy="2.5" layer="1"/>
<smd name="A" x="1.9" y="0" dx="1.7" dy="2.5" layer="1"/>
<text x="-2.27" y="-1.27" size="1.27" layer="25" rot="R90">&gt;NAME</text>
<text x="3.24" y="-1.37" size="1.27" layer="27" rot="R90">&gt;VALUE</text>
</package>
<package name="EIA3216-KIT">
<description>&lt;h3&gt;EIA3216-KIT&lt;/h3&gt;
&lt;b&gt;Warning:&lt;/b&gt; This is the KIT version of this package. This package has longer pads to make hand soldering easier.&lt;br&gt;</description>
<wire x1="-1" y1="-1.2" x2="-3" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="-3" y1="-1.2" x2="-3" y2="1.2" width="0.2032" layer="21"/>
<wire x1="-3" y1="1.2" x2="-1" y2="1.2" width="0.2032" layer="21"/>
<wire x1="1" y1="-1.2" x2="2.6" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="2.6" y1="-1.2" x2="3" y2="-0.8" width="0.2032" layer="21"/>
<wire x1="3" y1="-0.8" x2="3" y2="0.8" width="0.2032" layer="21"/>
<wire x1="3" y1="0.8" x2="2.6" y2="1.2" width="0.2032" layer="21"/>
<wire x1="2.6" y1="1.2" x2="1" y2="1.2" width="0.2032" layer="21"/>
<wire x1="0.381" y1="1.016" x2="0.381" y2="-1.016" width="0.127" layer="21"/>
<smd name="C" x="-1.65" y="0" dx="1.9" dy="1.6" layer="1"/>
<smd name="A" x="1.65" y="0" dx="1.9" dy="1.6" layer="1"/>
<text x="-2.54" y="1.381" size="0.4064" layer="25">&gt;NAME</text>
<text x="0.408" y="1.332" size="0.4064" layer="27">&gt;VALUE</text>
</package>
</packages>
<symbols>
<symbol name="CAP_POL">
<wire x1="-2.54" y1="0" x2="2.54" y2="0" width="0.254" layer="94"/>
<wire x1="0" y1="-1.016" x2="0" y2="-2.54" width="0.1524" layer="94"/>
<wire x1="0" y1="-1" x2="2.4892" y2="-1.8542" width="0.254" layer="94" curve="-37.878202" cap="flat"/>
<wire x1="-2.4669" y1="-1.8504" x2="0" y2="-1.0161" width="0.254" layer="94" curve="-37.376341" cap="flat"/>
<text x="1.016" y="0.635" size="1.778" layer="95">&gt;NAME</text>
<text x="1.016" y="-4.191" size="1.778" layer="96">&gt;VALUE</text>
<rectangle x1="-2.253" y1="0.668" x2="-1.364" y2="0.795" layer="94"/>
<rectangle x1="-1.872" y1="0.287" x2="-1.745" y2="1.176" layer="94"/>
<pin name="+" x="0" y="2.54" visible="off" length="short" direction="pas" swaplevel="1" rot="R270"/>
<pin name="-" x="0" y="-5.08" visible="off" length="short" direction="pas" swaplevel="1" rot="R90"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="CAP_POL" prefix="C" uservalue="yes">
<description>&lt;b&gt;Capacitor Polarized&lt;/b&gt;
These are standard SMD and PTH capacitors. Normally 10uF, 47uF, and 100uF in electrolytic and tantalum varieties. Always verify the external diameter of the through hole cap, it varies with capacity, voltage, and manufacturer. The EIA devices should be standard.</description>
<gates>
<gate name="G$1" symbol="CAP_POL" x="0" y="0"/>
</gates>
<devices>
<device name="1206" package="EIA3216">
<connects>
<connect gate="G$1" pin="+" pad="A"/>
<connect gate="G$1" pin="-" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="3528" package="EIA3528">
<connects>
<connect gate="G$1" pin="+" pad="A"/>
<connect gate="G$1" pin="-" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH1" package="CPOL-RADIAL-100UF-25V">
<connects>
<connect gate="G$1" pin="+" pad="1"/>
<connect gate="G$1" pin="-" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH2" package="CPOL-RADIAL-10UF-25V">
<connects>
<connect gate="G$1" pin="+" pad="1"/>
<connect gate="G$1" pin="-" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="7343" package="EIA7343">
<connects>
<connect gate="G$1" pin="+" pad="A"/>
<connect gate="G$1" pin="-" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="G" package="PANASONIC_G">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="E" package="PANASONIC_E">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="C" package="PANASONIC_C">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="F80" package="NIPPON_F80">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="D" package="PANASONIC_D">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH3" package="CPOL-RADIAL-1000UF-63V">
<connects>
<connect gate="G$1" pin="+" pad="1"/>
<connect gate="G$1" pin="-" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH4" package="CPOL-RADIAL-1000UF-25V">
<connects>
<connect gate="G$1" pin="+" pad="1"/>
<connect gate="G$1" pin="-" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="SMD" package="VISHAY_C">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="H13" package="PANASONIC_H13">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="6032" package="EIA6032">
<connects>
<connect gate="G$1" pin="+" pad="P$1"/>
<connect gate="G$1" pin="-" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="EN_J2" package="EN_J2">
<connects>
<connect gate="G$1" pin="+" pad="+"/>
<connect gate="G$1" pin="-" pad="-"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="3528-KIT" package="EIA3528-KIT">
<connects>
<connect gate="G$1" pin="+" pad="A"/>
<connect gate="G$1" pin="-" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="1206-KIT" package="EIA3216-KIT">
<connects>
<connect gate="G$1" pin="+" pad="A"/>
<connect gate="G$1" pin="-" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="SparkFun-Resistors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find resistors, capacitors, inductors, test points, jumper pads, etc.&lt;br&gt;&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; CC v3.0 Share-Alike You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.</description>
<packages>
<package name="1206">
<wire x1="-2.473" y1="0.983" x2="2.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="-0.983" x2="-2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-2.473" y1="-0.983" x2="-2.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="0.983" x2="2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-0.965" y1="0.787" x2="0.965" y2="0.787" width="0.1016" layer="51"/>
<wire x1="-0.965" y1="-0.787" x2="0.965" y2="-0.787" width="0.1016" layer="51"/>
<smd name="1" x="-1.4" y="0" dx="1.6" dy="1.8" layer="1"/>
<smd name="2" x="1.4" y="0" dx="1.6" dy="1.8" layer="1"/>
<text x="-1.27" y="1.143" size="0.4064" layer="25">&gt;NAME</text>
<text x="-1.397" y="-1.524" size="0.4064" layer="27">&gt;VALUE</text>
<rectangle x1="-1.7018" y1="-0.8509" x2="-0.9517" y2="0.8491" layer="51"/>
<rectangle x1="0.9517" y1="-0.8491" x2="1.7018" y2="0.8509" layer="51"/>
<rectangle x1="-0.1999" y1="-0.4001" x2="0.1999" y2="0.4001" layer="35"/>
</package>
<package name="AXIAL-0.3">
<wire x1="-2.54" y1="0.762" x2="2.54" y2="0.762" width="0.2032" layer="21"/>
<wire x1="2.54" y1="0.762" x2="2.54" y2="0" width="0.2032" layer="21"/>
<wire x1="2.54" y1="0" x2="2.54" y2="-0.762" width="0.2032" layer="21"/>
<wire x1="2.54" y1="-0.762" x2="-2.54" y2="-0.762" width="0.2032" layer="21"/>
<wire x1="-2.54" y1="-0.762" x2="-2.54" y2="0" width="0.2032" layer="21"/>
<wire x1="-2.54" y1="0" x2="-2.54" y2="0.762" width="0.2032" layer="21"/>
<wire x1="2.54" y1="0" x2="2.794" y2="0" width="0.2032" layer="21"/>
<wire x1="-2.54" y1="0" x2="-2.794" y2="0" width="0.2032" layer="21"/>
<pad name="P$1" x="-3.81" y="0" drill="0.9" diameter="1.8796"/>
<pad name="P$2" x="3.81" y="0" drill="0.9" diameter="1.8796"/>
<text x="-2.54" y="1.27" size="0.4064" layer="25" font="vector">&gt;Name</text>
<text x="-2.032" y="-0.381" size="1.016" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
<package name="R2010">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
chip</description>
<wire x1="-1.662" y1="1.245" x2="1.662" y2="1.245" width="0.1524" layer="51"/>
<wire x1="-1.637" y1="-1.245" x2="1.687" y2="-1.245" width="0.1524" layer="51"/>
<wire x1="-3.473" y1="1.483" x2="3.473" y2="1.483" width="0.0508" layer="39"/>
<wire x1="3.473" y1="1.483" x2="3.473" y2="-1.483" width="0.0508" layer="39"/>
<wire x1="3.473" y1="-1.483" x2="-3.473" y2="-1.483" width="0.0508" layer="39"/>
<wire x1="-3.473" y1="-1.483" x2="-3.473" y2="1.483" width="0.0508" layer="39"/>
<wire x1="-1.027" y1="1.245" x2="1.027" y2="1.245" width="0.1524" layer="21"/>
<wire x1="-1.002" y1="-1.245" x2="1.016" y2="-1.245" width="0.1524" layer="21"/>
<smd name="1" x="-2.2" y="0" dx="1.8" dy="2.7" layer="1"/>
<smd name="2" x="2.2" y="0" dx="1.8" dy="2.7" layer="1"/>
<text x="-2.54" y="1.5875" size="0.4064" layer="25">&gt;NAME</text>
<text x="-2.54" y="-2.032" size="0.4064" layer="27">&gt;VALUE</text>
<rectangle x1="-2.4892" y1="-1.3208" x2="-1.6393" y2="1.3292" layer="51"/>
<rectangle x1="1.651" y1="-1.3208" x2="2.5009" y2="1.3292" layer="51"/>
</package>
<package name="0805">
<wire x1="-0.3" y1="0.6" x2="0.3" y2="0.6" width="0.1524" layer="21"/>
<wire x1="-0.3" y1="-0.6" x2="0.3" y2="-0.6" width="0.1524" layer="21"/>
<smd name="1" x="-0.9" y="0" dx="0.8" dy="1.2" layer="1"/>
<smd name="2" x="0.9" y="0" dx="0.8" dy="1.2" layer="1"/>
<text x="-0.762" y="0.8255" size="0.4064" layer="25">&gt;NAME</text>
<text x="-1.016" y="-1.397" size="0.4064" layer="27">&gt;VALUE</text>
</package>
<package name="0603-RES">
<wire x1="-1.473" y1="0.983" x2="1.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="1.473" y1="0.983" x2="1.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="1.473" y1="-0.983" x2="-1.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-1.473" y1="-0.983" x2="-1.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="-0.356" y1="0.432" x2="0.356" y2="0.432" width="0.1016" layer="51"/>
<wire x1="-0.356" y1="-0.419" x2="0.356" y2="-0.419" width="0.1016" layer="51"/>
<smd name="1" x="-0.85" y="0" dx="1.1" dy="1" layer="1"/>
<smd name="2" x="0.85" y="0" dx="1.1" dy="1" layer="1"/>
<text x="-0.889" y="0.762" size="0.4064" layer="25" font="vector">&gt;NAME</text>
<text x="-1.016" y="-1.143" size="0.4064" layer="27" font="vector">&gt;VALUE</text>
<rectangle x1="-0.8382" y1="-0.4699" x2="-0.3381" y2="0.4801" layer="51"/>
<rectangle x1="0.3302" y1="-0.4699" x2="0.8303" y2="0.4801" layer="51"/>
<rectangle x1="-0.1999" y1="-0.3" x2="0.1999" y2="0.3" layer="35"/>
<rectangle x1="-0.2286" y1="-0.381" x2="0.2286" y2="0.381" layer="21"/>
</package>
<package name="1/6W-RES">
<description>1/6W Thru-hole Resistor - *UNPROVEN*</description>
<wire x1="-1.55" y1="0.85" x2="-1.55" y2="-0.85" width="0.2032" layer="21"/>
<wire x1="-1.55" y1="-0.85" x2="1.55" y2="-0.85" width="0.2032" layer="21"/>
<wire x1="1.55" y1="-0.85" x2="1.55" y2="0.85" width="0.2032" layer="21"/>
<wire x1="1.55" y1="0.85" x2="-1.55" y2="0.85" width="0.2032" layer="21"/>
<pad name="1" x="-2.5" y="0" drill="0.762" diameter="1.6764"/>
<pad name="2" x="2.5" y="0" drill="0.762" diameter="1.6764"/>
<text x="-1.2662" y="0.9552" size="0.6096" layer="25">&gt;NAME</text>
<text x="-1.423" y="-0.4286" size="0.8128" layer="21" ratio="15">&gt;VALUE</text>
</package>
<package name="R2512">
<wire x1="-2.362" y1="1.473" x2="2.387" y2="1.473" width="0.1524" layer="51"/>
<wire x1="-2.362" y1="-1.473" x2="2.387" y2="-1.473" width="0.1524" layer="51"/>
<smd name="1" x="-2.8" y="0" dx="1.8" dy="3.2" layer="1"/>
<smd name="2" x="2.8" y="0" dx="1.8" dy="3.2" layer="1"/>
<text x="-2.54" y="1.905" size="1.27" layer="25">&gt;NAME</text>
<text x="-2.54" y="-3.175" size="1.27" layer="27">&gt;VALUE</text>
<rectangle x1="-3.2004" y1="-1.5494" x2="-2.3505" y2="1.5507" layer="51"/>
<rectangle x1="2.3622" y1="-1.5494" x2="3.2121" y2="1.5507" layer="51"/>
</package>
<package name="AXIAL-0.4">
<description>1/4W Resistor, 0.4" wide&lt;p&gt;

Yageo CFR series &lt;a href="http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf"&gt;http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf&lt;/a&gt;</description>
<wire x1="-3.15" y1="-1.2" x2="-3.15" y2="1.2" width="0.2032" layer="21"/>
<wire x1="-3.15" y1="1.2" x2="3.15" y2="1.2" width="0.2032" layer="21"/>
<wire x1="3.15" y1="1.2" x2="3.15" y2="-1.2" width="0.2032" layer="21"/>
<wire x1="3.15" y1="-1.2" x2="-3.15" y2="-1.2" width="0.2032" layer="21"/>
<pad name="P$1" x="-5.08" y="0" drill="0.9" diameter="1.8796"/>
<pad name="P$2" x="5.08" y="0" drill="0.9" diameter="1.8796"/>
<text x="-3.175" y="1.905" size="0.8128" layer="25" font="vector" ratio="15">&gt;Name</text>
<text x="-2.286" y="-0.381" size="0.8128" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
<package name="AXIAL-0.5">
<description>1/2W Resistor, 0.5" wide&lt;p&gt;

Yageo CFR series &lt;a href="http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf"&gt;http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf&lt;/a&gt;</description>
<wire x1="-4.5" y1="-1.65" x2="-4.5" y2="1.65" width="0.2032" layer="21"/>
<wire x1="-4.5" y1="1.65" x2="4.5" y2="1.65" width="0.2032" layer="21"/>
<wire x1="4.5" y1="1.65" x2="4.5" y2="-1.65" width="0.2032" layer="21"/>
<wire x1="4.5" y1="-1.65" x2="-4.5" y2="-1.65" width="0.2032" layer="21"/>
<pad name="P$1" x="-6.35" y="0" drill="0.9" diameter="1.8796"/>
<pad name="P$2" x="6.35" y="0" drill="0.9" diameter="1.8796"/>
<text x="-4.445" y="2.54" size="0.8128" layer="25" font="vector" ratio="15">&gt;Name</text>
<text x="-3.429" y="-0.381" size="0.8128" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
<package name="AXIAL-0.6">
<description>1W Resistor, 0.6" wide&lt;p&gt;

Yageo CFR series &lt;a href="http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf"&gt;http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf&lt;/a&gt;</description>
<wire x1="-5.75" y1="-2.25" x2="-5.75" y2="2.25" width="0.2032" layer="21"/>
<wire x1="-5.75" y1="2.25" x2="5.75" y2="2.25" width="0.2032" layer="21"/>
<wire x1="5.75" y1="2.25" x2="5.75" y2="-2.25" width="0.2032" layer="21"/>
<wire x1="5.75" y1="-2.25" x2="-5.75" y2="-2.25" width="0.2032" layer="21"/>
<pad name="P$1" x="-7.62" y="0" drill="1.2" diameter="1.8796"/>
<pad name="P$2" x="7.62" y="0" drill="1.2" diameter="1.8796"/>
<text x="-5.715" y="3.175" size="0.8128" layer="25" font="vector" ratio="15">&gt;Name</text>
<text x="-4.064" y="-0.381" size="0.8128" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
<package name="AXIAL-0.8">
<description>2W Resistor, 0.8" wide&lt;p&gt;

Yageo CFR series &lt;a href="http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf"&gt;http://www.yageo.com/pdf/yageo/Leaded-R_CFR_2008.pdf&lt;/a&gt;</description>
<wire x1="-7.75" y1="-2.5" x2="-7.75" y2="2.5" width="0.2032" layer="21"/>
<wire x1="-7.75" y1="2.5" x2="7.75" y2="2.5" width="0.2032" layer="21"/>
<wire x1="7.75" y1="2.5" x2="7.75" y2="-2.5" width="0.2032" layer="21"/>
<wire x1="7.75" y1="-2.5" x2="-7.75" y2="-2.5" width="0.2032" layer="21"/>
<pad name="P$1" x="-10.16" y="0" drill="1.2" diameter="1.8796"/>
<pad name="P$2" x="10.16" y="0" drill="1.2" diameter="1.8796"/>
<text x="-7.62" y="3.175" size="0.8128" layer="25" font="vector" ratio="15">&gt;Name</text>
<text x="-5.969" y="-0.381" size="0.8128" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
<package name="AXIAL-0.3-KIT">
<description>&lt;h3&gt;AXIAL-0.3-KIT&lt;/h3&gt;

Commonly used for 1/4W through-hole resistors. 0.3" pitch between holes.&lt;br&gt;
&lt;br&gt;

&lt;b&gt;Warning:&lt;/b&gt; This is the KIT version of the AXIAL-0.3 package. This package has a smaller diameter top stop mask, which doesn't cover the diameter of the pad. This means only the bottom side of the pads' copper will be exposed. You'll only be able to solder to the bottom side.</description>
<wire x1="-2.54" y1="1.27" x2="2.54" y2="1.27" width="0.254" layer="21"/>
<wire x1="2.54" y1="1.27" x2="2.54" y2="0" width="0.254" layer="21"/>
<wire x1="2.54" y1="0" x2="2.54" y2="-1.27" width="0.254" layer="21"/>
<wire x1="2.54" y1="-1.27" x2="-2.54" y2="-1.27" width="0.254" layer="21"/>
<wire x1="-2.54" y1="-1.27" x2="-2.54" y2="0" width="0.254" layer="21"/>
<wire x1="-2.54" y1="0" x2="-2.54" y2="1.27" width="0.254" layer="21"/>
<wire x1="2.54" y1="0" x2="2.794" y2="0" width="0.254" layer="21"/>
<wire x1="-2.54" y1="0" x2="-2.794" y2="0" width="0.254" layer="21"/>
<pad name="P$1" x="-3.81" y="0" drill="1.016" diameter="2.032" stop="no"/>
<pad name="P$2" x="3.81" y="0" drill="1.016" diameter="2.032" stop="no"/>
<text x="-2.54" y="1.27" size="0.4064" layer="25" font="vector">&gt;Name</text>
<text x="-2.159" y="-0.762" size="1.27" layer="21" font="vector" ratio="15">&gt;Value</text>
<polygon width="0.127" layer="30">
<vertex x="3.8201" y="-0.9449" curve="-90"/>
<vertex x="2.8652" y="-0.0152" curve="-90.011749"/>
<vertex x="3.8176" y="0.9602" curve="-90"/>
<vertex x="4.7676" y="-0.0178" curve="-90.024193"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="3.8176" y="-0.4369" curve="-90.012891"/>
<vertex x="3.3731" y="-0.0127" curve="-90"/>
<vertex x="3.8176" y="0.4546" curve="-90"/>
<vertex x="4.2595" y="-0.0025" curve="-90.012967"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="-3.8075" y="-0.9525" curve="-90"/>
<vertex x="-4.7624" y="-0.0228" curve="-90.011749"/>
<vertex x="-3.81" y="0.9526" curve="-90"/>
<vertex x="-2.86" y="-0.0254" curve="-90.024193"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="-3.81" y="-0.4445" curve="-90.012891"/>
<vertex x="-4.2545" y="-0.0203" curve="-90"/>
<vertex x="-3.81" y="0.447" curve="-90"/>
<vertex x="-3.3681" y="-0.0101" curve="-90.012967"/>
</polygon>
</package>
<package name="AXIAL-0.3EZ">
<description>This is the "EZ" version of the standard .3" spaced resistor package.&lt;br&gt;
It has a reduced top mask to make it harder to install upside-down.</description>
<wire x1="-2.54" y1="0.762" x2="2.54" y2="0.762" width="0.2032" layer="21"/>
<wire x1="2.54" y1="0.762" x2="2.54" y2="0" width="0.2032" layer="21"/>
<wire x1="2.54" y1="0" x2="2.54" y2="-0.762" width="0.2032" layer="21"/>
<wire x1="2.54" y1="-0.762" x2="-2.54" y2="-0.762" width="0.2032" layer="21"/>
<wire x1="-2.54" y1="-0.762" x2="-2.54" y2="0" width="0.2032" layer="21"/>
<wire x1="-2.54" y1="0" x2="-2.54" y2="0.762" width="0.2032" layer="21"/>
<wire x1="2.54" y1="0" x2="2.794" y2="0" width="0.2032" layer="21"/>
<wire x1="-2.54" y1="0" x2="-2.794" y2="0" width="0.2032" layer="21"/>
<pad name="P$1" x="-3.81" y="0" drill="0.9" diameter="1.8796" stop="no"/>
<pad name="P$2" x="3.81" y="0" drill="0.9" diameter="1.8796" stop="no"/>
<text x="-2.54" y="1.27" size="0.4064" layer="25" font="vector">&gt;Name</text>
<text x="-2.032" y="-0.381" size="1.016" layer="21" font="vector" ratio="15">&gt;Value</text>
<circle x="-3.81" y="0" radius="0.508" width="0" layer="29"/>
<circle x="3.81" y="0" radius="0.523634375" width="0" layer="29"/>
<circle x="-3.81" y="0" radius="1.02390625" width="0" layer="30"/>
<circle x="3.81" y="0" radius="1.04726875" width="0" layer="30"/>
</package>
<package name="AXIAL-0.1EZ">
<wire x1="1.27" y1="-0.762" x2="1.27" y2="0" width="0.2032" layer="21"/>
<wire x1="1.27" y1="0" x2="1.27" y2="0.762" width="0.2032" layer="21"/>
<wire x1="1.524" y1="0" x2="1.27" y2="0" width="0.2032" layer="21"/>
<wire x1="1.27" y1="0" x2="1.016" y2="0" width="0.2032" layer="21"/>
<pad name="P$1" x="0" y="0" drill="0.9" diameter="1.8796" stop="no"/>
<pad name="P$2" x="2.54" y="0" drill="0.9" diameter="1.8796" stop="no"/>
<text x="0" y="1.27" size="1.016" layer="25" font="vector" ratio="15">&gt;Name</text>
<text x="0" y="-2.159" size="1.016" layer="21" font="vector" ratio="15">&gt;Value</text>
</package>
</packages>
<symbols>
<symbol name="RESISTOR">
<wire x1="-2.54" y1="0" x2="-2.159" y2="1.016" width="0.1524" layer="94"/>
<wire x1="-2.159" y1="1.016" x2="-1.524" y2="-1.016" width="0.1524" layer="94"/>
<wire x1="-1.524" y1="-1.016" x2="-0.889" y2="1.016" width="0.1524" layer="94"/>
<wire x1="-0.889" y1="1.016" x2="-0.254" y2="-1.016" width="0.1524" layer="94"/>
<wire x1="-0.254" y1="-1.016" x2="0.381" y2="1.016" width="0.1524" layer="94"/>
<wire x1="0.381" y1="1.016" x2="1.016" y2="-1.016" width="0.1524" layer="94"/>
<wire x1="1.016" y1="-1.016" x2="1.651" y2="1.016" width="0.1524" layer="94"/>
<wire x1="1.651" y1="1.016" x2="2.286" y2="-1.016" width="0.1524" layer="94"/>
<wire x1="2.286" y1="-1.016" x2="2.54" y2="0" width="0.1524" layer="94"/>
<text x="-3.81" y="1.4986" size="1.778" layer="95">&gt;NAME</text>
<text x="-3.81" y="-3.302" size="1.778" layer="96">&gt;VALUE</text>
<pin name="2" x="5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1" rot="R180"/>
<pin name="1" x="-5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="RESISTOR" prefix="R" uservalue="yes">
<description>&lt;b&gt;Resistor&lt;/b&gt;
Basic schematic elements and footprints for 0603, 1206, and PTH resistors.</description>
<gates>
<gate name="G$1" symbol="RESISTOR" x="0" y="0"/>
</gates>
<devices>
<device name="1206" package="1206">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="AXIAL-0.3" package="AXIAL-0.3">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="2010" package="R2010">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="0805-RES" package="0805">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="0603-RES" package="0603-RES">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="0603" package="0603-RES">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-1/6W" package="1/6W-RES">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="2512" package="R2512">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-1/4W" package="AXIAL-0.4">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-1/2W" package="AXIAL-0.5">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-1W" package="AXIAL-0.6">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-2W" package="AXIAL-0.8">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="KIT" package="AXIAL-0.3-KIT">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="EZ" package="AXIAL-0.3EZ">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-1/4W-VERT" package="AXIAL-0.1EZ">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0.127" drill="0">
................................................................................
<part name="U$9" library="firenet" deviceset="PIN16" device="" value="V-"/>
<part name="R16" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="1K"/>
<part name="R17" library="resistor-power" deviceset="R" device="KP292" value="1.25 ohm 2W"/>
<part name="R13" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="R19" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="R20" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="R21" library="SparkFun" deviceset="RESISTOR" device="PTH1" value="0"/>
<part name="GND2" library="supply1" deviceset="GND" device=""/>
<part name="C11" library="SparkFun-Capacitors" deviceset="CAP_POL" device="PTH4" value="1000 uf"/>
<part name="R22" library="SparkFun-Resistors" deviceset="RESISTOR" device="PTH-1/4W" value="15K"/>
<part name="GND20" library="supply1" deviceset="GND" device=""/>
</parts>
<sheets>
<sheet>
<plain>
<text x="251.46" y="-5.08" size="1.778" layer="91">1.3</text>
<text x="25.4" y="58.42" size="1.778" layer="91">NOTE: NODE BOARD R1-1K, R19-0K</text>
<text x="25.4" y="50.8" size="1.778" layer="91">NOTE: HEAD BOARD R13-0K,R20-0K, R21-0K</text>
................................................................................
<instance part="U$9" gate="G$1" x="7.62" y="0" rot="R180"/>
<instance part="R16" gate="G$1" x="-5.08" y="152.4" rot="R270"/>
<instance part="R17" gate="G$1" x="91.44" y="43.18"/>
<instance part="R13" gate="G$1" x="35.56" y="172.72"/>
<instance part="R19" gate="G$1" x="-2.54" y="132.08"/>
<instance part="R20" gate="G$1" x="27.94" y="104.14" rot="R270"/>
<instance part="R21" gate="G$1" x="38.1" y="124.46" rot="R270"/>
<instance part="GND2" gate="1" x="116.84" y="63.5"/>
<instance part="C11" gate="G$1" x="116.84" y="71.12"/>
<instance part="R22" gate="G$1" x="109.22" y="68.58" rot="R90"/>
<instance part="GND20" gate="1" x="109.22" y="60.96"/>
</instances>
<busses>
</busses>
<nets>
<net name="GND" class="4">
<segment>
<wire x1="215.9" y1="177.8" x2="213.36" y2="177.8" width="0.1524" layer="91"/>
................................................................................
<pinref part="U$1" gate="G$1" pin="C-"/>
<pinref part="U$1" gate="G$1" pin="C-1"/>
</segment>
<segment>
<pinref part="GND25" gate="1" pin="GND"/>
<pinref part="U$5" gate="G$1" pin="PIN"/>
</segment>
<segment>
<pinref part="C11" gate="G$1" pin="-"/>
<pinref part="GND2" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="R22" gate="G$1" pin="1"/>
<pinref part="GND20" gate="1" pin="GND"/>
</segment>
</net>
<net name="N$13" class="3">
<segment>
<wire x1="215.9" y1="137.16" x2="213.36" y2="137.16" width="0.1524" layer="91"/>
<wire x1="215.9" y1="137.16" x2="223.52" y2="137.16" width="0.1524" layer="91"/>
<wire x1="223.52" y1="137.16" x2="223.52" y2="129.54" width="0.1524" layer="91"/>
<junction x="215.9" y="137.16"/>
................................................................................
<pinref part="BRIDGE" gate="G$1" pin="AC2"/>
<pinref part="U$9" gate="G$1" pin="PIN16"/>
</segment>
</net>
<net name="N$7" class="2">
<segment>
<wire x1="129.54" y1="81.28" x2="129.54" y2="73.66" width="0.1524" layer="91"/>
<wire x1="106.68" y1="73.66" x2="109.22" y2="73.66" width="0.1524" layer="91"/>
<wire x1="109.22" y1="73.66" x2="116.84" y2="73.66" width="0.1524" layer="91"/>
<wire x1="116.84" y1="73.66" x2="129.54" y2="73.66" width="0.1524" layer="91"/>
<wire x1="129.54" y1="81.28" x2="106.68" y2="81.28" width="0.1524" layer="91"/>
<junction x="129.54" y="81.28"/>
<junction x="129.54" y="73.66"/>
<pinref part="HOT1" gate="G$1" pin="BP"/>
<pinref part="HOT2" gate="G$1" pin="BP"/>
<pinref part="U$1" gate="G$1" pin="NO"/>
<pinref part="U$1" gate="G$1" pin="NO1"/>
<junction x="129.54" y="73.66"/>
<pinref part="C11" gate="G$1" pin="+"/>
<junction x="116.84" y="73.66"/>
<pinref part="R22" gate="G$1" pin="2"/>
<junction x="109.22" y="73.66"/>
</segment>
</net>
<net name="N$4" class="2">
<segment>
<wire x1="86.36" y1="43.18" x2="83.82" y2="43.18" width="0.1524" layer="91"/>
<pinref part="IC1" gate="1" pin="OUT"/>
<pinref part="R17" gate="G$1" pin="1"/>

Added Hardware/Board/Firenet/SparkFun-Eagle-Libraries-master/LilyPad-Wearables.lbr.





























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.3">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="yes" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="2" name="Route2" color="1" fill="3" visible="yes" active="yes"/>
<layer number="3" name="Route3" color="4" fill="3" visible="yes" active="yes"/>
<layer number="4" name="Route4" color="1" fill="4" visible="yes" active="yes"/>
<layer number="5" name="Route5" color="4" fill="4" visible="yes" active="yes"/>
<layer number="6" name="Route6" color="1" fill="8" visible="yes" active="yes"/>
<layer number="7" name="Route7" color="4" fill="8" visible="yes" active="yes"/>
<layer number="8" name="Route8" color="1" fill="2" visible="yes" active="yes"/>
<layer number="9" name="Route9" color="4" fill="2" visible="yes" active="yes"/>
<layer number="10" name="Route10" color="1" fill="7" visible="yes" active="yes"/>
<layer number="11" name="Route11" color="4" fill="7" visible="yes" active="yes"/>
<layer number="12" name="Route12" color="1" fill="5" visible="yes" active="yes"/>
<layer number="13" name="Route13" color="4" fill="5" visible="yes" active="yes"/>
<layer number="14" name="Route14" color="1" fill="6" visible="yes" active="yes"/>
<layer number="15" name="Route15" color="4" fill="6" visible="yes" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/>
<layer number="21" name="tPlace" color="16" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="yes" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="yes" active="yes"/>
<layer number="31" name="tCream" color="7" fill="4" visible="yes" active="yes"/>
<layer number="32" name="bCream" color="7" fill="5" visible="yes" active="yes"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="yes" active="yes"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="yes" active="yes"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="yes" active="yes"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="yes" active="yes"/>
<layer number="37" name="tTest" color="7" fill="1" visible="yes" active="yes"/>
<layer number="38" name="bTest" color="7" fill="1" visible="yes" active="yes"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="yes" active="yes"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="yes" active="yes"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="yes" active="yes"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="yes" active="yes"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="yes" active="yes"/>
<layer number="44" name="Drills" color="7" fill="1" visible="yes" active="yes"/>
<layer number="45" name="Holes" color="7" fill="1" visible="yes" active="yes"/>
<layer number="46" name="Milling" color="3" fill="1" visible="yes" active="yes"/>
<layer number="47" name="Measures" color="7" fill="1" visible="yes" active="yes"/>
<layer number="48" name="Document" color="7" fill="1" visible="yes" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="yes" active="yes"/>
<layer number="50" name="dxf" color="7" fill="1" visible="yes" active="yes"/>
<layer number="51" name="tDocu" color="14" fill="1" visible="yes" active="yes"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="53" name="tGND_GNDA" color="7" fill="9" visible="no" active="no"/>
<layer number="54" name="bGND_GNDA" color="1" fill="9" visible="no" active="no"/>
<layer number="56" name="wert" color="7" fill="1" visible="yes" active="yes"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="yes" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="yes" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="yes" active="yes"/>
<layer number="103" name="tMap" color="7" fill="1" visible="yes" active="yes"/>
<layer number="104" name="Name" color="7" fill="1" visible="yes" active="yes"/>
<layer number="105" name="tPlate" color="7" fill="1" visible="yes" active="yes"/>
<layer number="106" name="bPlate" color="7" fill="1" visible="yes" active="yes"/>
<layer number="107" name="Crop" color="7" fill="1" visible="yes" active="yes"/>
<layer number="116" name="Patch_BOT" color="9" fill="4" visible="yes" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="yes" active="yes"/>
<layer number="125" name="_tNames" color="7" fill="1" visible="yes" active="yes"/>
<layer number="144" name="Drill_legend" color="7" fill="1" visible="yes" active="yes"/>
<layer number="151" name="HeatSink" color="7" fill="1" visible="yes" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="no"/>
<layer number="201" name="201bmp" color="2" fill="1" visible="no" active="no"/>
<layer number="202" name="202bmp" color="3" fill="1" visible="no" active="no"/>
<layer number="203" name="203bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="204" name="204bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="205" name="205bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="207" name="207bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="208" name="208bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="209" name="209bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="210" name="210bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="211" name="211bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="212" name="212bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="213" name="213bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="214" name="214bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="215" name="215bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="216" name="216bmp" color="7" fill="1" visible="yes" active="yes"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="yes" active="yes"/>
</layers>
<library>
<packages>
<package name="PETAL-NOHOLE">
<polygon width="0.2032" layer="1">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
</package>
<package name="BUTTONHOLE-SM">
<pad name="P$1" x="0" y="0" drill="1.6"/>
<pad name="P$2" x="2.54" y="0" drill="1.6"/>
<smd name="P$3" x="1.27" y="1.27" dx="1.27" dy="0.635" layer="1" rot="R90"/>
<smd name="P$4" x="1.27" y="1.27" dx="1.27" dy="0.635" layer="16" rot="R90"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="1.27"/>
<vertex x="2.54" y="1.27" curve="-90"/>
<vertex x="3.81" y="0" curve="-90"/>
<vertex x="2.54" y="-1.27"/>
<vertex x="0" y="-1.27" curve="-90"/>
<vertex x="-1.27" y="0" curve="-90"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="1.27"/>
<vertex x="2.54" y="1.27" curve="-180"/>
<vertex x="2.54" y="-1.27"/>
<vertex x="0" y="-1.27" curve="-180"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="1.27"/>
<vertex x="2.54" y="1.27" curve="-180"/>
<vertex x="2.54" y="-1.27"/>
<vertex x="0" y="-1.27" curve="-180"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="1.27"/>
<vertex x="2.54" y="1.27" curve="-180"/>
<vertex x="2.54" y="-1.27"/>
<vertex x="0" y="-1.27" curve="-180"/>
</polygon>
<polygon width="0.127" layer="41">
<vertex x="0" y="0.762" curve="90"/>
<vertex x="-0.762" y="0" curve="90"/>
<vertex x="0" y="-0.762" curve="90"/>
<vertex x="0.762" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="41">
<vertex x="2.54" y="0.762" curve="90"/>
<vertex x="1.778" y="0" curve="90"/>
<vertex x="2.54" y="-0.762" curve="90"/>
<vertex x="3.302" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="42">
<vertex x="0" y="0.762" curve="90"/>
<vertex x="-0.762" y="0" curve="90"/>
<vertex x="0" y="-0.762" curve="90"/>
<vertex x="0.762" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="42">
<vertex x="2.54" y="0.762" curve="90"/>
<vertex x="1.778" y="0" curve="90"/>
<vertex x="2.54" y="-0.762" curve="90"/>
<vertex x="3.302" y="0" curve="90"/>
</polygon>
</package>
<package name="BUTTONHOLE">
<pad name="1" x="0" y="0" drill="2.2" diameter="3.81"/>
<pad name="P$2" x="5.08" y="0" drill="2.2" diameter="3.81"/>
<smd name="P$1" x="2.54" y="1.905" dx="1.27" dy="0.635" layer="1" rot="R90"/>
<smd name="P$3" x="2.54" y="-1.905" dx="1.27" dy="0.635" layer="1" rot="R90"/>
<polygon width="0.127" layer="29">
<vertex x="0" y="1.905"/>
<vertex x="5.08" y="1.905" curve="-180"/>
<vertex x="5.08" y="-1.905"/>
<vertex x="0" y="-1.905" curve="-180"/>
</polygon>
<polygon width="0.127" layer="1">
<vertex x="0" y="1.905"/>
<vertex x="5.08" y="1.905" curve="-180"/>
<vertex x="5.08" y="-1.905"/>
<vertex x="0" y="-1.905" curve="-180"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="1.905"/>
<vertex x="5.08" y="1.905" curve="-180"/>
<vertex x="5.08" y="-1.905"/>
<vertex x="0" y="-1.905" curve="-180"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="1.905"/>
<vertex x="5.08" y="1.905" curve="-180"/>
<vertex x="5.08" y="-1.905"/>
<vertex x="0" y="-1.905" curve="-180"/>
</polygon>
<polygon width="0.127" layer="41">
<vertex x="0" y="1.27" curve="90"/>
<vertex x="-1.27" y="0" curve="90"/>
<vertex x="0" y="-1.27" curve="90"/>
<vertex x="1.27" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="41">
<vertex x="5.08" y="1.27" curve="90"/>
<vertex x="3.81" y="0" curve="90"/>
<vertex x="5.08" y="-1.27" curve="90"/>
<vertex x="6.35" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="42">
<vertex x="0" y="1.27" curve="90"/>
<vertex x="-1.27" y="0" curve="90"/>
<vertex x="0" y="-1.27" curve="90"/>
<vertex x="1.27" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="42">
<vertex x="5.08" y="1.27" curve="90"/>
<vertex x="3.81" y="0" curve="90"/>
<vertex x="5.08" y="-1.27" curve="90"/>
<vertex x="6.35" y="0" curve="90"/>
</polygon>
</package>
<package name="LOGO-LILYPAD">
<wire x1="1.41" y1="-0.965" x2="1.41" y2="1.135" width="0.2032" layer="21"/>
<wire x1="1.41" y1="1.135" x2="2.01" y2="1.635" width="0.2032" layer="21" curve="-90"/>
<wire x1="2.01" y1="1.635" x2="2.61" y2="1.135" width="0.2032" layer="21" curve="-89.980905"/>
<wire x1="2.61" y1="1.135" x2="2.61" y2="0.935" width="0.2032" layer="21"/>
<wire x1="2.61" y1="0.935" x2="2.11" y2="0.485" width="0.2032" layer="21" curve="-89.977086"/>
<wire x1="2.11" y1="0.485" x2="1.81" y2="0.485" width="0.2032" layer="21"/>
<wire x1="2.86" y1="-0.565" x2="2.56" y2="-0.965" width="0.2032" layer="21" curve="-90"/>
<wire x1="2.56" y1="-0.965" x2="2.36" y2="-0.965" width="0.2032" layer="21"/>
<wire x1="2.36" y1="-0.965" x2="1.96" y2="-0.465" width="0.2032" layer="21" curve="-90"/>
<wire x1="1.96" y1="-0.465" x2="2.36" y2="0.035" width="0.2032" layer="21" curve="-90"/>
<wire x1="2.36" y1="0.035" x2="2.46" y2="0.035" width="0.2032" layer="21"/>
<wire x1="2.46" y1="0.035" x2="2.86" y2="-0.365" width="0.2032" layer="21" curve="-90"/>
<wire x1="2.86" y1="-0.365" x2="2.86" y2="-0.565" width="0.2032" layer="21"/>
<wire x1="2.86" y1="-0.565" x2="3.11" y2="-0.965" width="0.2032" layer="21" curve="90"/>
<wire x1="3.11" y1="-0.965" x2="3.46" y2="-0.765" width="0.2032" layer="21" curve="90"/>
<wire x1="3.46" y1="-0.765" x2="3.46" y2="-0.715" width="0.2032" layer="21"/>
<wire x1="3.46" y1="-0.715" x2="3.46" y2="-0.465" width="0.2032" layer="21"/>
<wire x1="3.46" y1="-0.465" x2="3.91" y2="0.035" width="0.2032" layer="21" curve="-90"/>
<wire x1="3.91" y1="0.035" x2="4.36" y2="-0.515" width="0.2032" layer="21" curve="-90"/>
<wire x1="4.36" y1="-0.515" x2="4.36" y2="-0.715" width="0.2032" layer="21" curve="-28.072487"/>
<wire x1="4.36" y1="-0.715" x2="4.06" y2="-1.015" width="0.2032" layer="21" curve="-61.927513"/>
<wire x1="4.06" y1="-1.015" x2="3.46" y2="-0.715" width="0.2032" layer="21" curve="-90"/>
<wire x1="4.36" y1="-0.715" x2="4.36" y2="-0.815" width="0.2032" layer="21"/>
<wire x1="4.36" y1="-0.815" x2="4.56" y2="-1.015" width="0.2032" layer="21" curve="90"/>
<wire x1="4.56" y1="-1.015" x2="4.76" y2="-0.815" width="0.2032" layer="21" curve="90"/>
<wire x1="4.36" y1="-0.615" x2="4.36" y2="1.385" width="0.2032" layer="21"/>
<wire x1="-2.14" y1="0.235" x2="-2.14" y2="0.285" width="0.2032" layer="21"/>
<wire x1="-2.94" y1="0.685" x2="-4.24" y2="1.985" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.94" y1="0.685" x2="-2.79" y2="0.685" width="0.2032" layer="21"/>
<wire x1="-2.79" y1="0.685" x2="-2.09" y2="1.335" width="0.2032" layer="21" curve="90"/>
<wire x1="-2.39" y1="1.635" x2="-2.09" y2="1.335" width="0.2032" layer="21" curve="-90"/>
<wire x1="-4.39" y1="0.035" x2="-3.44" y2="-0.565" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.49" y1="1.635" x2="-2.39" y2="1.635" width="0.2032" layer="21"/>
<wire x1="-3.19" y1="0.935" x2="-2.49" y2="1.635" width="0.2032" layer="21" curve="-90"/>
<wire x1="-4.84" y1="-0.565" x2="-4.39" y2="0.035" width="0.2032" layer="21" curve="-90"/>
<wire x1="-3.19" y1="0.235" x2="-3.19" y2="0.935" width="0.2032" layer="21"/>
<wire x1="-4.39" y1="-0.965" x2="-3.19" y2="0.235" width="0.2032" layer="21" curve="90"/>
<wire x1="-4.39" y1="-0.965" x2="-4.84" y2="-0.565" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.14" y1="-0.515" x2="-3.19" y2="-0.915" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.14" y1="-0.365" x2="-2.14" y2="-0.065" width="0.2032" layer="21"/>
<wire x1="-2.14" y1="-0.365" x2="-2.14" y2="-0.515" width="0.2032" layer="21"/>
<wire x1="-1.19" y1="-0.265" x2="-1.19" y2="1.385" width="0.2032" layer="21"/>
<wire x1="-1.69" y1="-0.965" x2="-2.14" y2="-0.365" width="0.2032" layer="21" curve="-90"/>
<wire x1="-1.19" y1="-0.415" x2="-1.69" y2="-0.965" width="0.2032" layer="21" curve="-81.226126"/>
<wire x1="-1.19" y1="-0.415" x2="-1.19" y2="-0.265" width="0.2032" layer="21" curve="8.79831"/>
<wire x1="-1.19" y1="-0.465" x2="-1.19" y2="-0.415" width="0.2032" layer="21"/>
<wire x1="-0.69" y1="-0.965" x2="-1.19" y2="-0.465" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.19" y1="-0.465" x2="-0.69" y2="-0.965" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.19" y1="-0.465" x2="-0.19" y2="0.135" width="0.2032" layer="21"/>
<wire x1="0.31" y1="-0.965" x2="-0.19" y2="-0.465" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.29" y1="-1.465" x2="1.11" y2="-2.665" width="0.2032" layer="21" curve="-90"/>
<wire x1="0.81" y1="-0.465" x2="0.31" y2="-0.965" width="0.2032" layer="21" curve="-90"/>
<wire x1="0.81" y1="-0.465" x2="0.81" y2="0.135" width="0.2032" layer="21"/>
<wire x1="0.81" y1="-1.265" x2="0.81" y2="-0.465" width="0.2032" layer="21"/>
<wire x1="-0.49" y1="-1.465" x2="-0.29" y2="-1.465" width="0.2032" layer="21"/>
<wire x1="-1.09" y1="-2.065" x2="-0.49" y2="-1.465" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.49" y1="-2.565" x2="0.81" y2="-1.265" width="0.2032" layer="21" curve="90"/>
<wire x1="-0.59" y1="-2.565" x2="-0.49" y2="-2.565" width="0.2032" layer="21"/>
<wire x1="-0.59" y1="-2.565" x2="-1.09" y2="-2.065" width="0.2032" layer="21" curve="-90"/>
<wire x1="-3.44" y1="-0.565" x2="-2.84" y2="-0.965" width="0.2032" layer="21" curve="90"/>
</package>
<package name="LOGO-A">
<wire x1="0.73" y1="1.1" x2="2.18" y2="0.15" width="0.2032" layer="21" curve="90"/>
<wire x1="4.13" y1="-1" x2="4.38" y2="-0.75" width="0.2032" layer="21" curve="90"/>
<wire x1="4.38" y1="-0.75" x2="4.38" y2="-0.7" width="0.2032" layer="21"/>
<wire x1="4.38" y1="-0.7" x2="4.38" y2="-0.45" width="0.2032" layer="21"/>
<wire x1="4.38" y1="-0.45" x2="4.83" y2="0" width="0.2032" layer="21" curve="-90"/>
<wire x1="4.83" y1="0" x2="5.28" y2="-0.5" width="0.2032" layer="21" curve="-90"/>
<wire x1="5.28" y1="-0.5" x2="5.28" y2="-0.7" width="0.2032" layer="21" curve="-28.072487"/>
<wire x1="5.28" y1="-0.7" x2="4.98" y2="-1" width="0.2032" layer="21" curve="-61.927513"/>
<wire x1="4.98" y1="-1" x2="4.38" y2="-0.7" width="0.2032" layer="21" curve="-90"/>
<wire x1="5.28" y1="-0.7" x2="5.28" y2="-0.8" width="0.2032" layer="21"/>
<wire x1="5.28" y1="-0.8" x2="5.58" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="5.58" y1="-1" x2="5.78" y2="-0.8" width="0.2032" layer="21" curve="90"/>
<wire x1="5.28" y1="-0.6" x2="5.28" y2="1.4" width="0.2032" layer="21"/>
<wire x1="9.13" y1="-0.6" x2="9.53" y2="-0.1" width="0.2032" layer="21" curve="-90"/>
<wire x1="9.53" y1="-0.1" x2="9.63" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="10.03" y1="-0.5" x2="9.63" y2="-0.1" width="0.2032" layer="21" curve="90"/>
<wire x1="10.03" y1="-0.6" x2="10.03" y2="-0.5" width="0.2032" layer="21"/>
<wire x1="9.63" y1="-1.05" x2="10.03" y2="-0.6" width="0.2032" layer="21" curve="90"/>
<wire x1="9.53" y1="-1.05" x2="9.63" y2="-1.05" width="0.2032" layer="21"/>
<wire x1="9.53" y1="-1.05" x2="9.13" y2="-0.6" width="0.2032" layer="21" curve="-90"/>
<wire x1="10.03" y1="-0.6" x2="9.38" y2="-0.15" width="0.2032" layer="21" curve="-90"/>
<wire x1="10.03" y1="-0.6" x2="9.98" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="9.98" y1="-0.6" x2="10.43" y2="-0.3" width="0.2032" layer="21" curve="90"/>
<wire x1="10.43" y1="-0.3" x2="10.43" y2="-0.15" width="0.2032" layer="21"/>
<wire x1="8.93" y1="-1" x2="9.13" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="8.78" y1="-1" x2="8.93" y2="-1" width="0.2032" layer="21"/>
<wire x1="8.63" y1="-0.75" x2="8.78" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="8.63" y1="-0.35" x2="8.63" y2="-0.75" width="0.2032" layer="21"/>
<wire x1="8.33" y1="-0.1" x2="8.63" y2="-0.35" width="0.2032" layer="21" curve="-90"/>
<wire x1="8.18" y1="-0.1" x2="8.33" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="7.88" y1="-0.4" x2="8.18" y2="-0.1" width="0.2032" layer="21" curve="-90"/>
<wire x1="7.88" y1="-0.7" x2="7.88" y2="0" width="0.2032" layer="21"/>
<wire x1="7.88" y1="-0.7" x2="7.88" y2="-0.4" width="0.2032" layer="21"/>
<wire x1="7.58" y1="-1" x2="7.88" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="7.18" y1="-0.6" x2="7.58" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="7.18" y1="-0.55" x2="7.18" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="7.18" y1="-0.55" x2="7.18" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="7.18" y1="-0.7" x2="7.18" y2="-0.55" width="0.2032" layer="21"/>
<wire x1="6.88" y1="-1" x2="7.18" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="6.58" y1="-0.6" x2="6.58" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="6.58" y1="-0.6" x2="6.88" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="5.78" y1="-0.7" x2="5.78" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="6.23" y1="-1" x2="5.78" y2="-0.7" width="0.2032" layer="21" curve="-90"/>
<wire x1="6.23" y1="-1" x2="6.58" y2="-0.6" width="0.2032" layer="21" curve="90"/>
<wire x1="3.63" y1="-0.2" x2="3.83" y2="-0.2" width="0.2032" layer="21"/>
<wire x1="3.03" y1="0.3" x2="3.63" y2="-0.2" width="0.2032" layer="21" curve="89.980905"/>
<wire x1="3.03" y1="-0.7" x2="3.03" y2="0.3" width="0.2032" layer="21"/>
<wire x1="2.63" y1="-1" x2="3.03" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="2.23" y1="-0.6" x2="2.63" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="2.13" y1="1" x2="2.23" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="1.53" y1="1.6" x2="2.13" y2="1" width="0.2032" layer="21" curve="-90"/>
<wire x1="1.43" y1="1.6" x2="1.53" y2="1.6" width="0.2032" layer="21"/>
<wire x1="1.43" y1="0.3" x2="1.43" y2="1.6" width="0.2032" layer="21"/>
<wire x1="-0.57" y1="-1.85" x2="1.43" y2="0.3" width="0.2032" layer="21" curve="90"/>
<wire x1="3.83" y1="-0.2" x2="3.83" y2="-0.75" width="0.2032" layer="21"/>
<wire x1="3.83" y1="-0.75" x2="4.08" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="7.18" y1="0.25" x2="7.18" y2="0.2" width="0.2032" layer="21"/>
</package>
<package name="LOGO-LPA">
<wire x1="-3.77" y1="-1" x2="-3.77" y2="1.1" width="0.2032" layer="21"/>
<wire x1="-3.77" y1="1.1" x2="-3.17" y2="1.6" width="0.2032" layer="21" curve="-90"/>
<wire x1="-3.17" y1="1.6" x2="-2.57" y2="1.1" width="0.2032" layer="21" curve="-89.980905"/>
<wire x1="-2.57" y1="1.1" x2="-2.57" y2="0.9" width="0.2032" layer="21"/>
<wire x1="-2.57" y1="0.9" x2="-3.07" y2="0.45" width="0.2032" layer="21" curve="-89.977086"/>
<wire x1="-3.07" y1="0.45" x2="-3.37" y2="0.45" width="0.2032" layer="21"/>
<wire x1="-2.32" y1="-0.6" x2="-2.62" y2="-1" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.62" y1="-1" x2="-2.82" y2="-1" width="0.2032" layer="21"/>
<wire x1="-2.82" y1="-1" x2="-3.22" y2="-0.5" width="0.2032" layer="21" curve="-90"/>
<wire x1="-3.22" y1="-0.5" x2="-2.82" y2="0" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.82" y1="0" x2="-2.72" y2="0" width="0.2032" layer="21"/>
<wire x1="-2.72" y1="0" x2="-2.32" y2="-0.4" width="0.2032" layer="21" curve="-90"/>
<wire x1="-2.32" y1="-0.4" x2="-2.32" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="-2.32" y1="-0.6" x2="-2.07" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="-2.07" y1="-1" x2="-1.72" y2="-0.8" width="0.2032" layer="21" curve="90"/>
<wire x1="-1.72" y1="-0.8" x2="-1.72" y2="-0.75" width="0.2032" layer="21"/>
<wire x1="-1.72" y1="-0.75" x2="-1.72" y2="-0.5" width="0.2032" layer="21"/>
<wire x1="-1.72" y1="-0.5" x2="-1.27" y2="0" width="0.2032" layer="21" curve="-90"/>
<wire x1="-1.27" y1="0" x2="-0.82" y2="-0.55" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.82" y1="-0.55" x2="-0.82" y2="-0.75" width="0.2032" layer="21" curve="-28.072487"/>
<wire x1="-0.82" y1="-0.75" x2="-1.12" y2="-1.05" width="0.2032" layer="21" curve="-61.927513"/>
<wire x1="-1.12" y1="-1.05" x2="-1.72" y2="-0.75" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.82" y1="-0.75" x2="-0.82" y2="-0.85" width="0.2032" layer="21"/>
<wire x1="-0.82" y1="-0.85" x2="-0.62" y2="-1.05" width="0.2032" layer="21" curve="90"/>
<wire x1="-0.62" y1="-1.05" x2="-0.42" y2="-0.85" width="0.2032" layer="21" curve="90"/>
<wire x1="-0.82" y1="-0.65" x2="-0.82" y2="1.35" width="0.2032" layer="21"/>
<wire x1="0.73" y1="1.1" x2="2.18" y2="0.15" width="0.2032" layer="21" curve="90"/>
<wire x1="4.13" y1="-1" x2="4.38" y2="-0.75" width="0.2032" layer="21" curve="90"/>
<wire x1="4.38" y1="-0.75" x2="4.38" y2="-0.7" width="0.2032" layer="21"/>
<wire x1="4.38" y1="-0.7" x2="4.38" y2="-0.45" width="0.2032" layer="21"/>
<wire x1="4.38" y1="-0.45" x2="4.83" y2="0" width="0.2032" layer="21" curve="-90"/>
<wire x1="4.83" y1="0" x2="5.28" y2="-0.5" width="0.2032" layer="21" curve="-90"/>
<wire x1="5.28" y1="-0.5" x2="5.28" y2="-0.7" width="0.2032" layer="21" curve="-28.072487"/>
<wire x1="5.28" y1="-0.7" x2="4.98" y2="-1" width="0.2032" layer="21" curve="-61.927513"/>
<wire x1="4.98" y1="-1" x2="4.38" y2="-0.7" width="0.2032" layer="21" curve="-90"/>
<wire x1="5.28" y1="-0.7" x2="5.28" y2="-0.8" width="0.2032" layer="21"/>
<wire x1="5.28" y1="-0.8" x2="5.58" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="5.58" y1="-1" x2="5.78" y2="-0.8" width="0.2032" layer="21" curve="90"/>
<wire x1="5.28" y1="-0.6" x2="5.28" y2="1.4" width="0.2032" layer="21"/>
<wire x1="9.13" y1="-0.6" x2="9.53" y2="-0.1" width="0.2032" layer="21" curve="-90"/>
<wire x1="9.53" y1="-0.1" x2="9.63" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="10.03" y1="-0.5" x2="9.63" y2="-0.1" width="0.2032" layer="21" curve="90"/>
<wire x1="10.03" y1="-0.6" x2="10.03" y2="-0.5" width="0.2032" layer="21"/>
<wire x1="9.63" y1="-1.05" x2="10.03" y2="-0.6" width="0.2032" layer="21" curve="90"/>
<wire x1="9.53" y1="-1.05" x2="9.63" y2="-1.05" width="0.2032" layer="21"/>
<wire x1="9.53" y1="-1.05" x2="9.13" y2="-0.6" width="0.2032" layer="21" curve="-90"/>
<wire x1="10.03" y1="-0.6" x2="9.38" y2="-0.15" width="0.2032" layer="21" curve="-90"/>
<wire x1="10.03" y1="-0.6" x2="9.98" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="9.98" y1="-0.6" x2="10.43" y2="-0.3" width="0.2032" layer="21" curve="90"/>
<wire x1="10.43" y1="-0.3" x2="10.43" y2="-0.15" width="0.2032" layer="21"/>
<wire x1="8.93" y1="-1" x2="9.13" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="8.78" y1="-1" x2="8.93" y2="-1" width="0.2032" layer="21"/>
<wire x1="8.63" y1="-0.75" x2="8.78" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="8.63" y1="-0.35" x2="8.63" y2="-0.75" width="0.2032" layer="21"/>
<wire x1="8.33" y1="-0.1" x2="8.63" y2="-0.35" width="0.2032" layer="21" curve="-90"/>
<wire x1="8.18" y1="-0.1" x2="8.33" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="7.88" y1="-0.4" x2="8.18" y2="-0.1" width="0.2032" layer="21" curve="-90"/>
<wire x1="7.88" y1="-0.7" x2="7.88" y2="0" width="0.2032" layer="21"/>
<wire x1="7.88" y1="-0.7" x2="7.88" y2="-0.4" width="0.2032" layer="21"/>
<wire x1="7.58" y1="-1" x2="7.88" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="7.18" y1="-0.6" x2="7.58" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="7.18" y1="-0.55" x2="7.18" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="7.18" y1="-0.55" x2="7.18" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="7.18" y1="-0.7" x2="7.18" y2="-0.55" width="0.2032" layer="21"/>
<wire x1="6.88" y1="-1" x2="7.18" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="6.58" y1="-0.6" x2="6.58" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="6.58" y1="-0.6" x2="6.88" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="5.78" y1="-0.7" x2="5.78" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="6.23" y1="-1" x2="5.78" y2="-0.7" width="0.2032" layer="21" curve="-90"/>
<wire x1="6.23" y1="-1" x2="6.58" y2="-0.6" width="0.2032" layer="21" curve="90"/>
<wire x1="3.63" y1="-0.2" x2="3.83" y2="-0.2" width="0.2032" layer="21"/>
<wire x1="3.03" y1="0.3" x2="3.63" y2="-0.2" width="0.2032" layer="21" curve="89.980905"/>
<wire x1="3.03" y1="-0.7" x2="3.03" y2="0.3" width="0.2032" layer="21"/>
<wire x1="2.63" y1="-1" x2="3.03" y2="-0.7" width="0.2032" layer="21" curve="90"/>
<wire x1="2.23" y1="-0.6" x2="2.63" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="2.13" y1="1" x2="2.23" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="1.53" y1="1.6" x2="2.13" y2="1" width="0.2032" layer="21" curve="-90"/>
<wire x1="1.43" y1="1.6" x2="1.53" y2="1.6" width="0.2032" layer="21"/>
<wire x1="1.43" y1="0.3" x2="1.43" y2="1.6" width="0.2032" layer="21"/>
<wire x1="-0.57" y1="-1.85" x2="1.43" y2="0.3" width="0.2032" layer="21" curve="90"/>
<wire x1="3.83" y1="-0.2" x2="3.83" y2="-0.75" width="0.2032" layer="21"/>
<wire x1="3.83" y1="-0.75" x2="4.08" y2="-1" width="0.2032" layer="21" curve="90"/>
<wire x1="-7.32" y1="0.2" x2="-7.32" y2="0.25" width="0.2032" layer="21"/>
<wire x1="7.18" y1="0.25" x2="7.18" y2="0.2" width="0.2032" layer="21"/>
<wire x1="-8.12" y1="0.65" x2="-9.42" y2="1.95" width="0.2032" layer="21" curve="-90"/>
<wire x1="-8.12" y1="0.65" x2="-7.97" y2="0.65" width="0.2032" layer="21"/>
<wire x1="-7.97" y1="0.65" x2="-7.27" y2="1.3" width="0.2032" layer="21" curve="90"/>
<wire x1="-7.57" y1="1.6" x2="-7.27" y2="1.3" width="0.2032" layer="21" curve="-90"/>
<wire x1="-9.57" y1="0" x2="-8.62" y2="-0.6" width="0.2032" layer="21" curve="-90"/>
<wire x1="-7.67" y1="1.6" x2="-7.57" y2="1.6" width="0.2032" layer="21"/>
<wire x1="-8.37" y1="0.9" x2="-7.67" y2="1.6" width="0.2032" layer="21" curve="-90"/>
<wire x1="-10.02" y1="-0.6" x2="-9.57" y2="0" width="0.2032" layer="21" curve="-90"/>
<wire x1="-8.37" y1="0.2" x2="-8.37" y2="0.9" width="0.2032" layer="21"/>
<wire x1="-9.57" y1="-1" x2="-8.37" y2="0.2" width="0.2032" layer="21" curve="90"/>
<wire x1="-9.57" y1="-1" x2="-10.02" y2="-0.6" width="0.2032" layer="21" curve="-90"/>
<wire x1="-7.32" y1="-0.55" x2="-8.37" y2="-0.95" width="0.2032" layer="21" curve="-90"/>
<wire x1="-7.32" y1="-0.4" x2="-7.32" y2="-0.1" width="0.2032" layer="21"/>
<wire x1="-7.32" y1="-0.4" x2="-7.32" y2="-0.55" width="0.2032" layer="21"/>
<wire x1="-6.37" y1="-0.3" x2="-6.37" y2="1.35" width="0.2032" layer="21"/>
<wire x1="-6.87" y1="-1" x2="-7.32" y2="-0.4" width="0.2032" layer="21" curve="-90"/>
<wire x1="-6.37" y1="-0.45" x2="-6.87" y2="-1" width="0.2032" layer="21" curve="-81.226126"/>
<wire x1="-6.37" y1="-0.45" x2="-6.37" y2="-0.3" width="0.2032" layer="21" curve="8.79831"/>
<wire x1="-6.37" y1="-0.5" x2="-6.37" y2="-0.45" width="0.2032" layer="21"/>
<wire x1="-5.87" y1="-1" x2="-6.37" y2="-0.5" width="0.2032" layer="21" curve="-90"/>
<wire x1="-5.37" y1="-0.5" x2="-5.87" y2="-1" width="0.2032" layer="21" curve="-90"/>
<wire x1="-5.37" y1="-0.5" x2="-5.37" y2="0.1" width="0.2032" layer="21"/>
<wire x1="-4.87" y1="-1" x2="-5.37" y2="-0.5" width="0.2032" layer="21" curve="-90"/>
<wire x1="-5.47" y1="-1.5" x2="-4.07" y2="-2.7" width="0.2032" layer="21" curve="-90"/>
<wire x1="-4.37" y1="-0.5" x2="-4.87" y2="-1" width="0.2032" layer="21" curve="-90"/>
<wire x1="-4.37" y1="-0.5" x2="-4.37" y2="0.1" width="0.2032" layer="21"/>
<wire x1="-4.37" y1="-1.3" x2="-4.37" y2="-0.5" width="0.2032" layer="21"/>
<wire x1="-5.67" y1="-1.5" x2="-5.47" y2="-1.5" width="0.2032" layer="21"/>
<wire x1="-6.27" y1="-2.1" x2="-5.67" y2="-1.5" width="0.2032" layer="21" curve="-90"/>
<wire x1="-5.67" y1="-2.6" x2="-4.37" y2="-1.3" width="0.2032" layer="21" curve="90"/>
<wire x1="-5.77" y1="-2.6" x2="-5.67" y2="-2.6" width="0.2032" layer="21"/>
<wire x1="-5.77" y1="-2.6" x2="-6.27" y2="-2.1" width="0.2032" layer="21" curve="-90"/>
<wire x1="-8.62" y1="-0.6" x2="-8.02" y2="-1" width="0.2032" layer="21" curve="90"/>
</package>
<package name="LOGO-L">
<wire x1="-0.7732" y1="1.6244" x2="0.5268" y2="0.3244" width="0.2032" layer="21" curve="90"/>
<wire x1="0.5268" y1="0.3244" x2="0.7268" y2="0.3244" width="0.2032" layer="21"/>
<wire x1="0.7268" y1="0.3244" x2="1.3768" y2="0.9744" width="0.2032" layer="21" curve="90"/>
<wire x1="1.3768" y1="0.9744" x2="1.3768" y2="1.0244" width="0.2032" layer="21"/>
<wire x1="1.3768" y1="1.0244" x2="1.1268" y2="1.2744" width="0.2032" layer="21" curve="90"/>
<wire x1="1.1268" y1="1.2744" x2="1.0268" y2="1.2744" width="0.2032" layer="21"/>
<wire x1="1.0268" y1="1.2744" x2="0.2768" y2="0.5244" width="0.2032" layer="21" curve="90"/>
<wire x1="0.2768" y1="0.5244" x2="0.2768" y2="-0.1256" width="0.2032" layer="21"/>
<wire x1="0.2768" y1="-0.1256" x2="-0.9232" y2="-1.3256" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.9232" y1="-1.3256" x2="-1.3732" y2="-0.8756" width="0.2032" layer="21" curve="-90"/>
<wire x1="-1.3732" y1="-0.8756" x2="-0.8232" y2="-0.3256" width="0.2032" layer="21" curve="-90"/>
<wire x1="-0.8232" y1="-0.3256" x2="-0.7232" y2="-0.3256" width="0.2032" layer="21"/>
<wire x1="-0.7232" y1="-0.3256" x2="0.0268" y2="-1.0756" width="0.2032" layer="21" curve="-90"/>
<wire x1="0.0268" y1="-1.0756" x2="0.8768" y2="-1.5756" width="0.2032" layer="21" curve="90"/>
</package>
<package name="PETAL-LONG-1">
<wire x1="0" y1="0" x2="2.7" y2="0" width="0.01" layer="49"/>
<circle x="5" y="0" radius="2.3" width="0.01" layer="49"/>
<pad name="1" x="0.03" y="0" drill="2.794" diameter="4.064"/>
<polygon width="0.2032" layer="1" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
<polygon width="0.2032" layer="29" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
</package>
<package name="PETAL-LONG-2">
<pad name="1" x="0" y="0" drill="2.794" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
</package>
<package name="PETAL-MEDIUM">
<pad name="1" x="0" y="-0.254" drill="2.794"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
</package>
<package name="PETAL-LARGE">
<wire x1="0" y1="3.81" x2="0" y2="1.27" width="1.524" layer="1"/>
<pad name="1" x="0" y="3.556" drill="2.794"/>
<hole x="0" y="3.556" drill="1.5"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
</package>
<package name="PETAL-SMALL">
<pad name="1" x="0" y="0" drill="2.2" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
</package>
<package name="LED-1206">
<wire x1="0.3" y1="0.7" x2="0.3" y2="0" width="0.2032" layer="21"/>
<wire x1="0.3" y1="0" x2="0.3" y2="-0.7" width="0.2032" layer="21"/>
<wire x1="0.3" y1="0" x2="-0.3" y2="0.6" width="0.2032" layer="21"/>
<wire x1="-0.3" y1="0.6" x2="-0.3" y2="-0.6" width="0.2032" layer="21"/>
<wire x1="-0.3" y1="-0.6" x2="0.3" y2="0" width="0.2032" layer="21"/>
<smd name="A" x="-1.5" y="0" dx="1.2" dy="1.4" layer="1"/>
<smd name="C" x="1.5" y="0" dx="1.2" dy="1.4" layer="1"/>
<text x="-2.17" y="1.67" size="1.27" layer="25">&gt;NAME</text>
<text x="-2.17" y="-2.74" size="1.27" layer="27">&gt;VALUE</text>
</package>
<package name="PETAL-SMALL-2SIDE">
<pad name="1" x="0" y="0" drill="2.2" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="2.4" y="0.6" curve="-96.730733"/>
<vertex x="0" y="-2" curve="-96.730733"/>
<vertex x="-2.4" y="0.6" curve="106.260205"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="2.4" y="0.6" curve="-96.730733"/>
<vertex x="0" y="-2" curve="-96.730733"/>
<vertex x="-2.4" y="0.6" curve="106.260205"/>
</polygon>
</package>
<package name="PETAL-NOHOLE-2SIDE">
<polygon width="0.2032" layer="1">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="2.4" y="0.6" curve="-96.730733"/>
<vertex x="0" y="-2" curve="-96.730733"/>
<vertex x="-2.4" y="0.6" curve="106.260205"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="2.4" y="0.6" curve="-96.730733"/>
<vertex x="0" y="-2" curve="-96.730733"/>
<vertex x="-2.4" y="0.6" curve="106.260205"/>
</polygon>
</package>
<package name="PETAL-LARGE-2SIDE">
<wire x1="0" y1="3.81" x2="0" y2="1.27" width="1.524" layer="1"/>
<pad name="1" x="0" y="3.556" drill="2.794"/>
<hole x="0" y="3.556" drill="1.5"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="0" curve="-90"/>
<vertex x="-5.08" y="5.08" curve="73.73763"/>
<vertex x="5.08" y="5.08" curve="-90"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="0" curve="-90"/>
<vertex x="-5.08" y="5.08" curve="73.73763"/>
<vertex x="5.08" y="5.08" curve="-90"/>
</polygon>
</package>
<package name="PETAL-MEDIUM-2SIDE">
<pad name="1" x="0" y="-0.254" drill="2.794"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="-3.81" curve="-90"/>
<vertex x="-3.81" y="0" curve="73.739795"/>
<vertex x="3.81" y="0" curve="-90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="-3.81" curve="-90"/>
<vertex x="-3.81" y="0" curve="73.739795"/>
<vertex x="3.81" y="0" curve="-90"/>
</polygon>
</package>
<package name="PETAL-LONG-1-2SIDE">
<wire x1="0" y1="0" x2="2.7" y2="0" width="0.01" layer="49"/>
<circle x="5" y="0" radius="2.3" width="0.01" layer="49"/>
<pad name="1" x="0.03" y="0" drill="2.794" diameter="4.064"/>
<polygon width="0.2032" layer="1" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
<polygon width="0.2032" layer="29" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
<polygon width="0.2032" layer="30" spacing="0.4064">
<vertex x="3.6" y="1.9" curve="110.088851"/>
<vertex x="3.6" y="-1.9"/>
<vertex x="-0.4" y="-2.5" curve="-89.995593"/>
<vertex x="-3" y="0" curve="-89.991186"/>
<vertex x="-0.4" y="2.5"/>
</polygon>
<polygon width="0.2032" layer="16" spacing="0.4064">
<vertex x="3.6" y="1.9" curve="110.088851"/>
<vertex x="3.6" y="-1.9"/>
<vertex x="-0.4" y="-2.5" curve="-89.995593"/>
<vertex x="-3" y="0" curve="-89.991186"/>
<vertex x="-0.4" y="2.5"/>
</polygon>
</package>
<package name="PETAL-LONG-2-2SIDE">
<pad name="1" x="0" y="0" drill="2.794" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="1.27" y="2.255" curve="-12.680383"/>
<vertex x="2.406" y="-0.02" curve="-89.995453"/>
<vertex x="0" y="-2.54" curve="-89.991152"/>
<vertex x="-2.436" y="0.05" curve="9.397466"/>
<vertex x="-1.27" y="2.255" curve="-154.643527"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="1.27" y="2.255" curve="-12.680383"/>
<vertex x="2.406" y="-0.02" curve="-89.995453"/>
<vertex x="0" y="-2.54" curve="-89.991152"/>
<vertex x="-2.436" y="0.05" curve="-9.397466"/>
<vertex x="-1.27" y="2.255" curve="-154.643527"/>
</polygon>
</package>
<package name="LOGO-L-TINY">
<rectangle x1="0.4064" y1="-1.0813" x2="0.4511" y2="-1.0757" layer="21"/>
<rectangle x1="0.3561" y1="-1.0757" x2="0.4844" y2="-1.0701" layer="21"/>
<rectangle x1="0.317" y1="-1.0701" x2="0.5179" y2="-1.0645" layer="21"/>
<rectangle x1="0.3002" y1="-1.0645" x2="0.5458" y2="-1.0589" layer="21"/>
<rectangle x1="0.2779" y1="-1.0589" x2="0.557" y2="-1.0533" layer="21"/>
<rectangle x1="0.2611" y1="-1.0533" x2="0.5682" y2="-1.0477" layer="21"/>
<rectangle x1="0.2443" y1="-1.0477" x2="0.5738" y2="-1.0422" layer="21"/>
<rectangle x1="0.222" y1="-1.0422" x2="0.5794" y2="-1.0366" layer="21"/>
<rectangle x1="0.2108" y1="-1.0366" x2="0.5794" y2="-1.031" layer="21"/>
<rectangle x1="0.1996" y1="-1.031" x2="0.585" y2="-1.0254" layer="21"/>
<rectangle x1="0.1885" y1="-1.0254" x2="0.585" y2="-1.0198" layer="21"/>
<rectangle x1="0.1829" y1="-1.0198" x2="0.5906" y2="-1.0142" layer="21"/>
<rectangle x1="0.1717" y1="-1.0142" x2="0.5906" y2="-1.0086" layer="21"/>
<rectangle x1="0.1605" y1="-1.0086" x2="0.5906" y2="-1.003" layer="21"/>
<rectangle x1="0.1549" y1="-1.003" x2="0.5906" y2="-0.9975" layer="21"/>
<rectangle x1="0.1438" y1="-0.9975" x2="0.5906" y2="-0.9919" layer="21"/>
<rectangle x1="0.1326" y1="-0.9919" x2="0.5906" y2="-0.9863" layer="21"/>
<rectangle x1="0.127" y1="-0.9863" x2="0.5906" y2="-0.9807" layer="21"/>
<rectangle x1="0.1158" y1="-0.9807" x2="0.585" y2="-0.9751" layer="21"/>
<rectangle x1="0.1102" y1="-0.9751" x2="0.585" y2="-0.9695" layer="21"/>
<rectangle x1="0.1046" y1="-0.9695" x2="0.5794" y2="-0.9639" layer="21"/>
<rectangle x1="0.0991" y1="-0.9639" x2="0.5794" y2="-0.9583" layer="21"/>
<rectangle x1="0.0935" y1="-0.9583" x2="0.5738" y2="-0.9528" layer="21"/>
<rectangle x1="0.0879" y1="-0.9528" x2="0.412" y2="-0.9472" layer="21"/>
<rectangle x1="0.4399" y1="-0.9528" x2="0.5682" y2="-0.9472" layer="21"/>
<rectangle x1="0.0823" y1="-0.9472" x2="0.3617" y2="-0.9416" layer="21"/>
<rectangle x1="0.4732" y1="-0.9472" x2="0.557" y2="-0.9416" layer="21"/>
<rectangle x1="0.0767" y1="-0.9416" x2="0.3338" y2="-0.936" layer="21"/>
<rectangle x1="0.5067" y1="-0.9416" x2="0.5458" y2="-0.936" layer="21"/>
<rectangle x1="0.0711" y1="-0.936" x2="0.317" y2="-0.9304" layer="21"/>
<rectangle x1="0.0655" y1="-0.9304" x2="0.3002" y2="-0.9248" layer="21"/>
<rectangle x1="0.0544" y1="-0.9248" x2="0.2779" y2="-0.9192" layer="21"/>
<rectangle x1="0.0488" y1="-0.9192" x2="0.2667" y2="-0.9136" layer="21"/>
<rectangle x1="0.0432" y1="-0.9136" x2="0.2555" y2="-0.908" layer="21"/>
<rectangle x1="-0.6383" y1="-0.908" x2="-0.5433" y2="-0.9025" layer="21"/>
<rectangle x1="0.0376" y1="-0.908" x2="0.2443" y2="-0.9025" layer="21"/>
<rectangle x1="-0.6942" y1="-0.9025" x2="-0.4653" y2="-0.8969" layer="21"/>
<rectangle x1="0.032" y1="-0.9025" x2="0.2388" y2="-0.8969" layer="21"/>
<rectangle x1="-0.7054" y1="-0.8969" x2="-0.443" y2="-0.8913" layer="21"/>
<rectangle x1="0.032" y1="-0.8969" x2="0.2276" y2="-0.8913" layer="21"/>
<rectangle x1="-0.7221" y1="-0.8913" x2="-0.4206" y2="-0.8857" layer="21"/>
<rectangle x1="0.0264" y1="-0.8913" x2="0.2164" y2="-0.8857" layer="21"/>
<rectangle x1="-0.7333" y1="-0.8857" x2="-0.3983" y2="-0.8801" layer="21"/>
<rectangle x1="0.0208" y1="-0.8857" x2="0.2108" y2="-0.8801" layer="21"/>
<rectangle x1="-0.7501" y1="-0.8801" x2="-0.3703" y2="-0.8745" layer="21"/>
<rectangle x1="0.0208" y1="-0.8801" x2="0.1996" y2="-0.8745" layer="21"/>
<rectangle x1="-0.7612" y1="-0.8745" x2="-0.348" y2="-0.8689" layer="21"/>
<rectangle x1="0.0152" y1="-0.8745" x2="0.1941" y2="-0.8689" layer="21"/>
<rectangle x1="-0.7724" y1="-0.8689" x2="-0.3368" y2="-0.8633" layer="21"/>
<rectangle x1="0.0097" y1="-0.8689" x2="0.1885" y2="-0.8633" layer="21"/>
<rectangle x1="-0.7836" y1="-0.8633" x2="-0.32" y2="-0.8578" layer="21"/>
<rectangle x1="0.0041" y1="-0.8633" x2="0.1773" y2="-0.8578" layer="21"/>
<rectangle x1="-0.7892" y1="-0.8578" x2="-0.3089" y2="-0.8522" layer="21"/>
<rectangle x1="0.0041" y1="-0.8578" x2="0.1717" y2="-0.8522" layer="21"/>
<rectangle x1="-0.7948" y1="-0.8522" x2="-0.2921" y2="-0.8466" layer="21"/>
<rectangle x1="-0.0015" y1="-0.8522" x2="0.1661" y2="-0.8466" layer="21"/>
<rectangle x1="-0.8004" y1="-0.8466" x2="-0.2809" y2="-0.841" layer="21"/>
<rectangle x1="-0.0071" y1="-0.8466" x2="0.1605" y2="-0.841" layer="21"/>
<rectangle x1="-0.8115" y1="-0.841" x2="-0.2642" y2="-0.8354" layer="21"/>
<rectangle x1="-0.0071" y1="-0.841" x2="0.1549" y2="-0.8354" layer="21"/>
<rectangle x1="-0.8171" y1="-0.8354" x2="-0.253" y2="-0.8298" layer="21"/>
<rectangle x1="-0.0127" y1="-0.8354" x2="0.1494" y2="-0.8298" layer="21"/>
<rectangle x1="-0.8227" y1="-0.8298" x2="-0.2362" y2="-0.8242" layer="21"/>
<rectangle x1="-0.0183" y1="-0.8298" x2="0.1438" y2="-0.8242" layer="21"/>
<rectangle x1="-0.8283" y1="-0.8242" x2="-0.225" y2="-0.8186" layer="21"/>
<rectangle x1="-0.0239" y1="-0.8242" x2="0.1382" y2="-0.8186" layer="21"/>
<rectangle x1="-0.8395" y1="-0.8186" x2="-0.2139" y2="-0.8131" layer="21"/>
<rectangle x1="-0.0239" y1="-0.8186" x2="0.1326" y2="-0.8131" layer="21"/>
<rectangle x1="-0.8451" y1="-0.8131" x2="-0.2027" y2="-0.8075" layer="21"/>
<rectangle x1="-0.0295" y1="-0.8131" x2="0.127" y2="-0.8075" layer="21"/>
<rectangle x1="-0.8506" y1="-0.8075" x2="-0.1971" y2="-0.8019" layer="21"/>
<rectangle x1="-0.0295" y1="-0.8075" x2="0.1214" y2="-0.8019" layer="21"/>
<rectangle x1="-0.8506" y1="-0.8019" x2="-0.1859" y2="-0.7963" layer="21"/>
<rectangle x1="-0.0351" y1="-0.8019" x2="0.1214" y2="-0.7963" layer="21"/>
<rectangle x1="-0.8562" y1="-0.7963" x2="-0.1803" y2="-0.7907" layer="21"/>
<rectangle x1="-0.0351" y1="-0.7963" x2="0.1158" y2="-0.7907" layer="21"/>
<rectangle x1="-0.8618" y1="-0.7907" x2="-0.1692" y2="-0.7851" layer="21"/>
<rectangle x1="-0.0351" y1="-0.7907" x2="0.1102" y2="-0.7851" layer="21"/>
<rectangle x1="-0.8674" y1="-0.7851" x2="-0.158" y2="-0.7795" layer="21"/>
<rectangle x1="-0.0406" y1="-0.7851" x2="0.1102" y2="-0.7795" layer="21"/>
<rectangle x1="-0.8674" y1="-0.7795" x2="-0.6383" y2="-0.7739" layer="21"/>
<rectangle x1="-0.5489" y1="-0.7795" x2="-0.1524" y2="-0.7739" layer="21"/>
<rectangle x1="-0.0406" y1="-0.7795" x2="0.1046" y2="-0.7739" layer="21"/>
<rectangle x1="-0.873" y1="-0.7739" x2="-0.6662" y2="-0.7683" layer="21"/>
<rectangle x1="-0.4821" y1="-0.7739" x2="-0.1412" y2="-0.7683" layer="21"/>
<rectangle x1="-0.0406" y1="-0.7739" x2="0.0991" y2="-0.7683" layer="21"/>
<rectangle x1="-0.8786" y1="-0.7683" x2="-0.683" y2="-0.7628" layer="21"/>
<rectangle x1="-0.4597" y1="-0.7683" x2="-0.13" y2="-0.7628" layer="21"/>
<rectangle x1="-0.0462" y1="-0.7683" x2="0.0935" y2="-0.7628" layer="21"/>
<rectangle x1="-0.8786" y1="-0.7628" x2="-0.6942" y2="-0.7572" layer="21"/>
<rectangle x1="-0.4318" y1="-0.7628" x2="-0.1245" y2="-0.7572" layer="21"/>
<rectangle x1="-0.0462" y1="-0.7628" x2="0.0935" y2="-0.7572" layer="21"/>
<rectangle x1="-0.8842" y1="-0.7572" x2="-0.7109" y2="-0.7516" layer="21"/>
<rectangle x1="-0.4094" y1="-0.7572" x2="-0.1133" y2="-0.7516" layer="21"/>
<rectangle x1="-0.0462" y1="-0.7572" x2="0.0879" y2="-0.7516" layer="21"/>
<rectangle x1="-0.8898" y1="-0.7516" x2="-0.7165" y2="-0.746" layer="21"/>
<rectangle x1="-0.3871" y1="-0.7516" x2="-0.1077" y2="-0.746" layer="21"/>
<rectangle x1="-0.0518" y1="-0.7516" x2="0.0879" y2="-0.746" layer="21"/>
<rectangle x1="-0.8953" y1="-0.746" x2="-0.7221" y2="-0.7404" layer="21"/>
<rectangle x1="-0.3759" y1="-0.746" x2="-0.1021" y2="-0.7404" layer="21"/>
<rectangle x1="-0.0518" y1="-0.746" x2="0.0823" y2="-0.7404" layer="21"/>
<rectangle x1="-0.8953" y1="-0.7404" x2="-0.7277" y2="-0.7348" layer="21"/>
<rectangle x1="-0.3592" y1="-0.7404" x2="-0.0965" y2="-0.7348" layer="21"/>
<rectangle x1="-0.0574" y1="-0.7404" x2="0.0823" y2="-0.7348" layer="21"/>
<rectangle x1="-0.9009" y1="-0.7348" x2="-0.7389" y2="-0.7292" layer="21"/>
<rectangle x1="-0.348" y1="-0.7348" x2="-0.0909" y2="-0.7292" layer="21"/>
<rectangle x1="-0.0574" y1="-0.7348" x2="0.0823" y2="-0.7292" layer="21"/>
<rectangle x1="-0.9009" y1="-0.7292" x2="-0.7445" y2="-0.7236" layer="21"/>
<rectangle x1="-0.3312" y1="-0.7292" x2="-0.0853" y2="-0.7236" layer="21"/>
<rectangle x1="-0.0574" y1="-0.7292" x2="0.0767" y2="-0.7236" layer="21"/>
<rectangle x1="-0.9065" y1="-0.7236" x2="-0.7501" y2="-0.7181" layer="21"/>
<rectangle x1="-0.32" y1="-0.7236" x2="-0.0742" y2="-0.7181" layer="21"/>
<rectangle x1="-0.063" y1="-0.7236" x2="0.0767" y2="-0.7181" layer="21"/>
<rectangle x1="-0.9065" y1="-0.7181" x2="-0.7556" y2="-0.7125" layer="21"/>
<rectangle x1="-0.3033" y1="-0.7181" x2="-0.0686" y2="-0.7125" layer="21"/>
<rectangle x1="-0.063" y1="-0.7181" x2="0.0711" y2="-0.7125" layer="21"/>
<rectangle x1="-0.9121" y1="-0.7125" x2="-0.7612" y2="-0.7069" layer="21"/>
<rectangle x1="-0.2921" y1="-0.7125" x2="0.0711" y2="-0.7069" layer="21"/>
<rectangle x1="-0.9121" y1="-0.7069" x2="-0.7612" y2="-0.7013" layer="21"/>
<rectangle x1="-0.2809" y1="-0.7069" x2="0.0711" y2="-0.7013" layer="21"/>
<rectangle x1="-0.9121" y1="-0.7013" x2="-0.7668" y2="-0.6957" layer="21"/>
<rectangle x1="-0.2697" y1="-0.7013" x2="0.0655" y2="-0.6957" layer="21"/>
<rectangle x1="-0.9177" y1="-0.6957" x2="-0.7724" y2="-0.6901" layer="21"/>
<rectangle x1="-0.2586" y1="-0.6957" x2="0.0655" y2="-0.6901" layer="21"/>
<rectangle x1="-0.9177" y1="-0.6901" x2="-0.7724" y2="-0.6845" layer="21"/>
<rectangle x1="-0.253" y1="-0.6901" x2="0.0655" y2="-0.6845" layer="21"/>
<rectangle x1="-0.9233" y1="-0.6845" x2="-0.778" y2="-0.6789" layer="21"/>
<rectangle x1="-0.2418" y1="-0.6845" x2="0.0599" y2="-0.6789" layer="21"/>
<rectangle x1="-0.9233" y1="-0.6789" x2="-0.7836" y2="-0.6734" layer="21"/>
<rectangle x1="-0.2306" y1="-0.6789" x2="0.0599" y2="-0.6734" layer="21"/>
<rectangle x1="-0.9233" y1="-0.6734" x2="-0.7892" y2="-0.6678" layer="21"/>
<rectangle x1="-0.225" y1="-0.6734" x2="0.0599" y2="-0.6678" layer="21"/>
<rectangle x1="-0.9289" y1="-0.6678" x2="-0.7892" y2="-0.6622" layer="21"/>
<rectangle x1="-0.2139" y1="-0.6678" x2="0.0599" y2="-0.6622" layer="21"/>
<rectangle x1="-0.9289" y1="-0.6622" x2="-0.7892" y2="-0.6566" layer="21"/>
<rectangle x1="-0.2027" y1="-0.6622" x2="0.0544" y2="-0.6566" layer="21"/>
<rectangle x1="-0.9345" y1="-0.6566" x2="-0.7948" y2="-0.651" layer="21"/>
<rectangle x1="-0.1971" y1="-0.6566" x2="0.0544" y2="-0.651" layer="21"/>
<rectangle x1="-0.9345" y1="-0.651" x2="-0.7948" y2="-0.6454" layer="21"/>
<rectangle x1="-0.1915" y1="-0.651" x2="0.0544" y2="-0.6454" layer="21"/>
<rectangle x1="-0.9345" y1="-0.6454" x2="-0.8004" y2="-0.6401" layer="21"/>
<rectangle x1="-0.1803" y1="-0.6454" x2="0.0544" y2="-0.6401" layer="21"/>
<rectangle x1="-0.9345" y1="-0.6401" x2="-0.8004" y2="-0.6345" layer="21"/>
<rectangle x1="-0.1748" y1="-0.6401" x2="0.0544" y2="-0.6345" layer="21"/>
<rectangle x1="-0.9345" y1="-0.6345" x2="-0.8004" y2="-0.6289" layer="21"/>
<rectangle x1="-0.1692" y1="-0.6345" x2="0.0544" y2="-0.6289" layer="21"/>
<rectangle x1="-0.9345" y1="-0.6289" x2="-0.8059" y2="-0.6233" layer="21"/>
<rectangle x1="-0.1636" y1="-0.6289" x2="0.0544" y2="-0.6233" layer="21"/>
<rectangle x1="-0.9401" y1="-0.6233" x2="-0.8059" y2="-0.6177" layer="21"/>
<rectangle x1="-0.158" y1="-0.6233" x2="0.0544" y2="-0.6177" layer="21"/>
<rectangle x1="-0.9401" y1="-0.6177" x2="-0.8059" y2="-0.6121" layer="21"/>
<rectangle x1="-0.1524" y1="-0.6177" x2="0.0488" y2="-0.6121" layer="21"/>
<rectangle x1="-0.9401" y1="-0.6121" x2="-0.8115" y2="-0.6066" layer="21"/>
<rectangle x1="-0.1468" y1="-0.6121" x2="0.0488" y2="-0.6066" layer="21"/>
<rectangle x1="-0.9401" y1="-0.6066" x2="-0.8115" y2="-0.601" layer="21"/>
<rectangle x1="-0.1356" y1="-0.6066" x2="0.0488" y2="-0.601" layer="21"/>
<rectangle x1="-0.9401" y1="-0.601" x2="-0.8115" y2="-0.5954" layer="21"/>
<rectangle x1="-0.13" y1="-0.601" x2="0.0488" y2="-0.5954" layer="21"/>
<rectangle x1="-0.9401" y1="-0.5954" x2="-0.8115" y2="-0.5898" layer="21"/>
<rectangle x1="-0.1245" y1="-0.5954" x2="0.0488" y2="-0.5898" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5898" x2="-0.8115" y2="-0.5842" layer="21"/>
<rectangle x1="-0.1189" y1="-0.5898" x2="0.0488" y2="-0.5842" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5842" x2="-0.8115" y2="-0.5786" layer="21"/>
<rectangle x1="-0.1133" y1="-0.5842" x2="0.0544" y2="-0.5786" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5786" x2="-0.8171" y2="-0.573" layer="21"/>
<rectangle x1="-0.1077" y1="-0.5786" x2="0.0599" y2="-0.573" layer="21"/>
<rectangle x1="-0.9456" y1="-0.573" x2="-0.8171" y2="-0.5674" layer="21"/>
<rectangle x1="-0.1021" y1="-0.573" x2="0.0599" y2="-0.5674" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5674" x2="-0.8171" y2="-0.5618" layer="21"/>
<rectangle x1="-0.0965" y1="-0.5674" x2="0.0655" y2="-0.5618" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5618" x2="-0.8171" y2="-0.5563" layer="21"/>
<rectangle x1="-0.0965" y1="-0.5618" x2="0.0711" y2="-0.5563" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5563" x2="-0.8171" y2="-0.5507" layer="21"/>
<rectangle x1="-0.0909" y1="-0.5563" x2="0.0711" y2="-0.5507" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5507" x2="-0.8171" y2="-0.5451" layer="21"/>
<rectangle x1="-0.0965" y1="-0.5507" x2="0.0767" y2="-0.5451" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5451" x2="-0.8171" y2="-0.5395" layer="21"/>
<rectangle x1="-0.0965" y1="-0.5451" x2="0.0767" y2="-0.5395" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5395" x2="-0.8171" y2="-0.5339" layer="21"/>
<rectangle x1="-0.0965" y1="-0.5395" x2="0.0823" y2="-0.5339" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5339" x2="-0.8171" y2="-0.5283" layer="21"/>
<rectangle x1="-0.0965" y1="-0.5339" x2="0.0879" y2="-0.5283" layer="21"/>
<rectangle x1="-0.9456" y1="-0.5283" x2="-0.8115" y2="-0.5227" layer="21"/>
<rectangle x1="-0.1021" y1="-0.5283" x2="0.0879" y2="-0.5227" layer="21"/>
<rectangle x1="-0.9401" y1="-0.5227" x2="-0.8115" y2="-0.5171" layer="21"/>
<rectangle x1="-0.1077" y1="-0.5227" x2="0.0935" y2="-0.5171" layer="21"/>
<rectangle x1="-0.9401" y1="-0.5171" x2="-0.8115" y2="-0.5116" layer="21"/>
<rectangle x1="-0.1077" y1="-0.5171" x2="0.0935" y2="-0.5116" layer="21"/>
<rectangle x1="-0.9401" y1="-0.5116" x2="-0.8115" y2="-0.506" layer="21"/>
<rectangle x1="-0.1133" y1="-0.5116" x2="0.0991" y2="-0.506" layer="21"/>
<rectangle x1="-0.9401" y1="-0.506" x2="-0.8115" y2="-0.5004" layer="21"/>
<rectangle x1="-0.1133" y1="-0.506" x2="0.1046" y2="-0.5004" layer="21"/>
<rectangle x1="-0.9401" y1="-0.5004" x2="-0.8115" y2="-0.4948" layer="21"/>
<rectangle x1="-0.1189" y1="-0.5004" x2="0.1046" y2="-0.4948" layer="21"/>
<rectangle x1="-0.9401" y1="-0.4948" x2="-0.8115" y2="-0.4892" layer="21"/>
<rectangle x1="-0.1189" y1="-0.4948" x2="0.1102" y2="-0.4892" layer="21"/>
<rectangle x1="-0.9401" y1="-0.4892" x2="-0.8059" y2="-0.4836" layer="21"/>
<rectangle x1="-0.1245" y1="-0.4892" x2="0.1102" y2="-0.4836" layer="21"/>
<rectangle x1="-0.9401" y1="-0.4836" x2="-0.8059" y2="-0.478" layer="21"/>
<rectangle x1="-0.13" y1="-0.4836" x2="0.1158" y2="-0.478" layer="21"/>
<rectangle x1="-0.9401" y1="-0.478" x2="-0.8004" y2="-0.4724" layer="21"/>
<rectangle x1="-0.13" y1="-0.478" x2="0.1214" y2="-0.4724" layer="21"/>
<rectangle x1="-0.9401" y1="-0.4724" x2="-0.8004" y2="-0.4669" layer="21"/>
<rectangle x1="-0.1356" y1="-0.4724" x2="0.1214" y2="-0.4669" layer="21"/>
<rectangle x1="-0.9345" y1="-0.4669" x2="-0.8004" y2="-0.4613" layer="21"/>
<rectangle x1="-0.1356" y1="-0.4669" x2="0.127" y2="-0.4613" layer="21"/>
<rectangle x1="-0.9345" y1="-0.4613" x2="-0.7948" y2="-0.4557" layer="21"/>
<rectangle x1="-0.1412" y1="-0.4613" x2="0.127" y2="-0.4557" layer="21"/>
<rectangle x1="-0.9345" y1="-0.4557" x2="-0.7948" y2="-0.4501" layer="21"/>
<rectangle x1="-0.1468" y1="-0.4557" x2="0.1326" y2="-0.4501" layer="21"/>
<rectangle x1="-0.9289" y1="-0.4501" x2="-0.7948" y2="-0.4445" layer="21"/>
<rectangle x1="-0.1524" y1="-0.4501" x2="0.1326" y2="-0.4445" layer="21"/>
<rectangle x1="-0.9289" y1="-0.4445" x2="-0.7892" y2="-0.4389" layer="21"/>
<rectangle x1="-0.158" y1="-0.4445" x2="0.1382" y2="-0.4389" layer="21"/>
<rectangle x1="-0.9233" y1="-0.4389" x2="-0.7836" y2="-0.4333" layer="21"/>
<rectangle x1="-0.1636" y1="-0.4389" x2="0.1382" y2="-0.4333" layer="21"/>
<rectangle x1="-0.9233" y1="-0.4333" x2="-0.7836" y2="-0.4277" layer="21"/>
<rectangle x1="-0.1692" y1="-0.4333" x2="-0.0071" y2="-0.4277" layer="21"/>
<rectangle x1="-0.0015" y1="-0.4333" x2="0.1382" y2="-0.4277" layer="21"/>
<rectangle x1="-0.9233" y1="-0.4277" x2="-0.778" y2="-0.4221" layer="21"/>
<rectangle x1="-0.1692" y1="-0.4277" x2="-0.0127" y2="-0.4221" layer="21"/>
<rectangle x1="-0.0015" y1="-0.4277" x2="0.1438" y2="-0.4221" layer="21"/>
<rectangle x1="-0.9177" y1="-0.4221" x2="-0.778" y2="-0.4166" layer="21"/>
<rectangle x1="-0.1748" y1="-0.4221" x2="-0.0127" y2="-0.4166" layer="21"/>
<rectangle x1="0.0041" y1="-0.4221" x2="0.1438" y2="-0.4166" layer="21"/>
<rectangle x1="-0.9177" y1="-0.4166" x2="-0.7724" y2="-0.411" layer="21"/>
<rectangle x1="-0.1803" y1="-0.4166" x2="-0.0183" y2="-0.411" layer="21"/>
<rectangle x1="0.0041" y1="-0.4166" x2="0.1494" y2="-0.411" layer="21"/>
<rectangle x1="-0.9121" y1="-0.411" x2="-0.7668" y2="-0.4054" layer="21"/>
<rectangle x1="-0.1859" y1="-0.411" x2="-0.0239" y2="-0.4054" layer="21"/>
<rectangle x1="0.0097" y1="-0.411" x2="0.1494" y2="-0.4054" layer="21"/>
<rectangle x1="-0.9121" y1="-0.4054" x2="-0.7668" y2="-0.3998" layer="21"/>
<rectangle x1="-0.1915" y1="-0.4054" x2="-0.0239" y2="-0.3998" layer="21"/>
<rectangle x1="0.0152" y1="-0.4054" x2="0.1494" y2="-0.3998" layer="21"/>
<rectangle x1="-0.9121" y1="-0.3998" x2="-0.7612" y2="-0.3942" layer="21"/>
<rectangle x1="-0.1971" y1="-0.3998" x2="-0.0295" y2="-0.3942" layer="21"/>
<rectangle x1="0.0152" y1="-0.3998" x2="0.1549" y2="-0.3942" layer="21"/>
<rectangle x1="-0.9065" y1="-0.3942" x2="-0.7556" y2="-0.3886" layer="21"/>
<rectangle x1="-0.2027" y1="-0.3942" x2="-0.0295" y2="-0.3886" layer="21"/>
<rectangle x1="0.0152" y1="-0.3942" x2="0.1549" y2="-0.3886" layer="21"/>
<rectangle x1="-0.9065" y1="-0.3886" x2="-0.7501" y2="-0.383" layer="21"/>
<rectangle x1="-0.2083" y1="-0.3886" x2="-0.0351" y2="-0.383" layer="21"/>
<rectangle x1="0.0208" y1="-0.3886" x2="0.1605" y2="-0.383" layer="21"/>
<rectangle x1="-0.9009" y1="-0.383" x2="-0.7445" y2="-0.3774" layer="21"/>
<rectangle x1="-0.2195" y1="-0.383" x2="-0.0406" y2="-0.3774" layer="21"/>
<rectangle x1="0.0208" y1="-0.383" x2="0.1605" y2="-0.3774" layer="21"/>
<rectangle x1="-0.9009" y1="-0.3774" x2="-0.7389" y2="-0.3719" layer="21"/>
<rectangle x1="-0.225" y1="-0.3774" x2="-0.0462" y2="-0.3719" layer="21"/>
<rectangle x1="0.0264" y1="-0.3774" x2="0.1661" y2="-0.3719" layer="21"/>
<rectangle x1="-0.8953" y1="-0.3719" x2="-0.7333" y2="-0.3663" layer="21"/>
<rectangle x1="-0.2306" y1="-0.3719" x2="-0.0518" y2="-0.3663" layer="21"/>
<rectangle x1="0.0264" y1="-0.3719" x2="0.1661" y2="-0.3663" layer="21"/>
<rectangle x1="-0.8898" y1="-0.3663" x2="-0.7277" y2="-0.3607" layer="21"/>
<rectangle x1="-0.2362" y1="-0.3663" x2="-0.0574" y2="-0.3607" layer="21"/>
<rectangle x1="0.0264" y1="-0.3663" x2="0.1661" y2="-0.3607" layer="21"/>
<rectangle x1="-0.8898" y1="-0.3607" x2="-0.7221" y2="-0.3551" layer="21"/>
<rectangle x1="-0.2418" y1="-0.3607" x2="-0.0574" y2="-0.3551" layer="21"/>
<rectangle x1="0.032" y1="-0.3607" x2="0.1717" y2="-0.3551" layer="21"/>
<rectangle x1="-0.8842" y1="-0.3551" x2="-0.7165" y2="-0.3495" layer="21"/>
<rectangle x1="-0.253" y1="-0.3551" x2="-0.063" y2="-0.3495" layer="21"/>
<rectangle x1="0.032" y1="-0.3551" x2="0.1717" y2="-0.3495" layer="21"/>
<rectangle x1="-0.8842" y1="-0.3495" x2="-0.7109" y2="-0.3439" layer="21"/>
<rectangle x1="-0.2642" y1="-0.3495" x2="-0.0686" y2="-0.3439" layer="21"/>
<rectangle x1="0.0376" y1="-0.3495" x2="0.1773" y2="-0.3439" layer="21"/>
<rectangle x1="-0.8786" y1="-0.3439" x2="-0.6998" y2="-0.3383" layer="21"/>
<rectangle x1="-0.2753" y1="-0.3439" x2="-0.0742" y2="-0.3383" layer="21"/>
<rectangle x1="0.0376" y1="-0.3439" x2="0.1773" y2="-0.3383" layer="21"/>
<rectangle x1="-0.873" y1="-0.3383" x2="-0.6942" y2="-0.3327" layer="21"/>
<rectangle x1="-0.2865" y1="-0.3383" x2="-0.0798" y2="-0.3327" layer="21"/>
<rectangle x1="0.0432" y1="-0.3383" x2="0.1773" y2="-0.3327" layer="21"/>
<rectangle x1="-0.873" y1="-0.3327" x2="-0.683" y2="-0.3272" layer="21"/>
<rectangle x1="-0.2977" y1="-0.3327" x2="-0.0853" y2="-0.3272" layer="21"/>
<rectangle x1="0.0432" y1="-0.3327" x2="0.1773" y2="-0.3272" layer="21"/>
<rectangle x1="-0.8674" y1="-0.3272" x2="-0.6718" y2="-0.3216" layer="21"/>
<rectangle x1="-0.3033" y1="-0.3272" x2="-0.0909" y2="-0.3216" layer="21"/>
<rectangle x1="0.0432" y1="-0.3272" x2="0.1829" y2="-0.3216" layer="21"/>
<rectangle x1="-0.8618" y1="-0.3216" x2="-0.6662" y2="-0.316" layer="21"/>
<rectangle x1="-0.3145" y1="-0.3216" x2="-0.0909" y2="-0.316" layer="21"/>
<rectangle x1="0.0488" y1="-0.3216" x2="0.1829" y2="-0.316" layer="21"/>
<rectangle x1="-0.8618" y1="-0.316" x2="-0.6551" y2="-0.3104" layer="21"/>
<rectangle x1="-0.3312" y1="-0.316" x2="-0.0965" y2="-0.3104" layer="21"/>
<rectangle x1="0.0488" y1="-0.316" x2="0.1829" y2="-0.3104" layer="21"/>
<rectangle x1="-0.8562" y1="-0.3104" x2="-0.6383" y2="-0.3048" layer="21"/>
<rectangle x1="-0.348" y1="-0.3104" x2="-0.1021" y2="-0.3048" layer="21"/>
<rectangle x1="0.0544" y1="-0.3104" x2="0.1829" y2="-0.3048" layer="21"/>
<rectangle x1="-0.8506" y1="-0.3048" x2="-0.6215" y2="-0.2992" layer="21"/>
<rectangle x1="-0.3647" y1="-0.3048" x2="-0.1133" y2="-0.2992" layer="21"/>
<rectangle x1="0.0544" y1="-0.3048" x2="0.1829" y2="-0.2992" layer="21"/>
<rectangle x1="-0.8451" y1="-0.2992" x2="-0.6104" y2="-0.2936" layer="21"/>
<rectangle x1="-0.3871" y1="-0.2992" x2="-0.1189" y2="-0.2936" layer="21"/>
<rectangle x1="0.0544" y1="-0.2992" x2="0.1885" y2="-0.2936" layer="21"/>
<rectangle x1="-0.8395" y1="-0.2936" x2="-0.588" y2="-0.288" layer="21"/>
<rectangle x1="-0.4094" y1="-0.2936" x2="-0.1245" y2="-0.288" layer="21"/>
<rectangle x1="0.0544" y1="-0.2936" x2="0.1885" y2="-0.288" layer="21"/>
<rectangle x1="-0.8339" y1="-0.288" x2="-0.5489" y2="-0.2824" layer="21"/>
<rectangle x1="-0.4542" y1="-0.288" x2="-0.13" y2="-0.2824" layer="21"/>
<rectangle x1="0.0599" y1="-0.288" x2="0.1885" y2="-0.2824" layer="21"/>
<rectangle x1="-0.8283" y1="-0.2824" x2="-0.1356" y2="-0.2769" layer="21"/>
<rectangle x1="0.0599" y1="-0.2824" x2="0.1885" y2="-0.2769" layer="21"/>
<rectangle x1="-0.8227" y1="-0.2769" x2="-0.1468" y2="-0.2713" layer="21"/>
<rectangle x1="0.0599" y1="-0.2769" x2="0.1941" y2="-0.2713" layer="21"/>
<rectangle x1="-0.8171" y1="-0.2713" x2="-0.1524" y2="-0.2657" layer="21"/>
<rectangle x1="0.0599" y1="-0.2713" x2="0.1941" y2="-0.2657" layer="21"/>
<rectangle x1="-0.8115" y1="-0.2657" x2="-0.158" y2="-0.2601" layer="21"/>
<rectangle x1="0.0655" y1="-0.2657" x2="0.1941" y2="-0.2601" layer="21"/>
<rectangle x1="-0.8059" y1="-0.2601" x2="-0.1636" y2="-0.2545" layer="21"/>
<rectangle x1="0.0655" y1="-0.2601" x2="0.1941" y2="-0.2545" layer="21"/>
<rectangle x1="-0.8004" y1="-0.2545" x2="-0.1692" y2="-0.2489" layer="21"/>
<rectangle x1="0.0655" y1="-0.2545" x2="0.1996" y2="-0.2489" layer="21"/>
<rectangle x1="-0.7948" y1="-0.2489" x2="-0.1803" y2="-0.2433" layer="21"/>
<rectangle x1="0.0655" y1="-0.2489" x2="0.1996" y2="-0.2433" layer="21"/>
<rectangle x1="-0.7836" y1="-0.2433" x2="-0.1915" y2="-0.2377" layer="21"/>
<rectangle x1="0.0655" y1="-0.2433" x2="0.1996" y2="-0.2377" layer="21"/>
<rectangle x1="-0.7724" y1="-0.2377" x2="-0.2027" y2="-0.2322" layer="21"/>
<rectangle x1="0.0711" y1="-0.2377" x2="0.1996" y2="-0.2322" layer="21"/>
<rectangle x1="-0.7668" y1="-0.2322" x2="-0.2083" y2="-0.2266" layer="21"/>
<rectangle x1="0.0711" y1="-0.2322" x2="0.2052" y2="-0.2266" layer="21"/>
<rectangle x1="-0.7556" y1="-0.2266" x2="-0.2195" y2="-0.221" layer="21"/>
<rectangle x1="0.0711" y1="-0.2266" x2="0.2052" y2="-0.221" layer="21"/>
<rectangle x1="-0.7445" y1="-0.221" x2="-0.2306" y2="-0.2154" layer="21"/>
<rectangle x1="0.0711" y1="-0.221" x2="0.2052" y2="-0.2154" layer="21"/>
<rectangle x1="-0.7389" y1="-0.2154" x2="-0.2418" y2="-0.2098" layer="21"/>
<rectangle x1="0.0767" y1="-0.2154" x2="0.2052" y2="-0.2098" layer="21"/>
<rectangle x1="-0.7277" y1="-0.2098" x2="-0.253" y2="-0.2042" layer="21"/>
<rectangle x1="0.0767" y1="-0.2098" x2="0.2052" y2="-0.2042" layer="21"/>
<rectangle x1="-0.7165" y1="-0.2042" x2="-0.2642" y2="-0.1986" layer="21"/>
<rectangle x1="0.0767" y1="-0.2042" x2="0.2052" y2="-0.1986" layer="21"/>
<rectangle x1="-0.7054" y1="-0.1986" x2="-0.2753" y2="-0.193" layer="21"/>
<rectangle x1="0.0767" y1="-0.1986" x2="0.2052" y2="-0.193" layer="21"/>
<rectangle x1="-0.6886" y1="-0.193" x2="-0.2921" y2="-0.1875" layer="21"/>
<rectangle x1="0.0767" y1="-0.193" x2="0.2052" y2="-0.1875" layer="21"/>
<rectangle x1="-0.6774" y1="-0.1875" x2="-0.3145" y2="-0.1819" layer="21"/>
<rectangle x1="0.0767" y1="-0.1875" x2="0.2108" y2="-0.1819" layer="21"/>
<rectangle x1="-0.6607" y1="-0.1819" x2="-0.3312" y2="-0.1763" layer="21"/>
<rectangle x1="0.0823" y1="-0.1819" x2="0.2108" y2="-0.1763" layer="21"/>
<rectangle x1="-0.6495" y1="-0.1763" x2="-0.348" y2="-0.1707" layer="21"/>
<rectangle x1="0.0823" y1="-0.1763" x2="0.2108" y2="-0.1707" layer="21"/>
<rectangle x1="-0.6327" y1="-0.1707" x2="-0.3647" y2="-0.1651" layer="21"/>
<rectangle x1="0.0823" y1="-0.1707" x2="0.2108" y2="-0.1651" layer="21"/>
<rectangle x1="-0.5992" y1="-0.1651" x2="-0.4039" y2="-0.1595" layer="21"/>
<rectangle x1="0.0823" y1="-0.1651" x2="0.2108" y2="-0.1595" layer="21"/>
<rectangle x1="-0.5601" y1="-0.1595" x2="-0.4486" y2="-0.1539" layer="21"/>
<rectangle x1="0.0823" y1="-0.1595" x2="0.2108" y2="-0.1539" layer="21"/>
<rectangle x1="0.0823" y1="-0.1539" x2="0.2108" y2="-0.1483" layer="21"/>
<rectangle x1="0.0823" y1="-0.1483" x2="0.2108" y2="-0.1427" layer="21"/>
<rectangle x1="0.0823" y1="-0.1427" x2="0.2108" y2="-0.1372" layer="21"/>
<rectangle x1="0.0823" y1="-0.1372" x2="0.2108" y2="-0.1316" layer="21"/>
<rectangle x1="0.0823" y1="-0.1316" x2="0.2108" y2="-0.126" layer="21"/>
<rectangle x1="0.0823" y1="-0.126" x2="0.2164" y2="-0.1204" layer="21"/>
<rectangle x1="0.0879" y1="-0.1204" x2="0.2164" y2="-0.1148" layer="21"/>
<rectangle x1="0.0879" y1="-0.1148" x2="0.2164" y2="-0.1092" layer="21"/>
<rectangle x1="0.0879" y1="-0.1092" x2="0.2164" y2="-0.1036" layer="21"/>
<rectangle x1="0.0879" y1="-0.1036" x2="0.2164" y2="-0.098" layer="21"/>
<rectangle x1="0.0879" y1="-0.098" x2="0.2164" y2="-0.0925" layer="21"/>
<rectangle x1="0.0879" y1="-0.0925" x2="0.2164" y2="-0.0869" layer="21"/>
<rectangle x1="0.0879" y1="-0.0869" x2="0.2164" y2="-0.0813" layer="21"/>
<rectangle x1="0.0879" y1="-0.0813" x2="0.2164" y2="-0.0757" layer="21"/>
<rectangle x1="0.0879" y1="-0.0757" x2="0.2164" y2="-0.0701" layer="21"/>
<rectangle x1="0.0879" y1="-0.0701" x2="0.2164" y2="-0.0645" layer="21"/>
<rectangle x1="0.0879" y1="-0.0645" x2="0.2164" y2="-0.0589" layer="21"/>
<rectangle x1="0.0879" y1="-0.0589" x2="0.2164" y2="-0.0533" layer="21"/>
<rectangle x1="0.0879" y1="-0.0533" x2="0.2164" y2="-0.0478" layer="21"/>
<rectangle x1="0.0879" y1="-0.0478" x2="0.2164" y2="-0.0422" layer="21"/>
<rectangle x1="0.0879" y1="-0.0422" x2="0.2164" y2="-0.0366" layer="21"/>
<rectangle x1="0.0879" y1="-0.0366" x2="0.2164" y2="-0.031" layer="21"/>
<rectangle x1="0.0879" y1="-0.031" x2="0.2164" y2="-0.0254" layer="21"/>
<rectangle x1="0.0879" y1="-0.0254" x2="0.2164" y2="-0.0198" layer="21"/>
<rectangle x1="0.0879" y1="-0.0198" x2="0.2164" y2="-0.0142" layer="21"/>
<rectangle x1="0.0879" y1="-0.0142" x2="0.2164" y2="-0.0086" layer="21"/>
<rectangle x1="0.0879" y1="-0.0086" x2="0.2164" y2="-0.003" layer="21"/>
<rectangle x1="0.0879" y1="-0.003" x2="0.2164" y2="0.0025" layer="21"/>
<rectangle x1="0.0879" y1="0.0025" x2="0.2164" y2="0.0081" layer="21"/>
<rectangle x1="0.0879" y1="0.0081" x2="0.2164" y2="0.0137" layer="21"/>
<rectangle x1="0.0879" y1="0.0137" x2="0.2164" y2="0.0193" layer="21"/>
<rectangle x1="0.0879" y1="0.0193" x2="0.2164" y2="0.0249" layer="21"/>
<rectangle x1="0.0879" y1="0.0249" x2="0.2164" y2="0.0305" layer="21"/>
<rectangle x1="0.0879" y1="0.0305" x2="0.2164" y2="0.0361" layer="21"/>
<rectangle x1="0.0879" y1="0.0361" x2="0.2164" y2="0.0417" layer="21"/>
<rectangle x1="0.0879" y1="0.0417" x2="0.2164" y2="0.0472" layer="21"/>
<rectangle x1="0.0879" y1="0.0472" x2="0.2164" y2="0.0528" layer="21"/>
<rectangle x1="0.0879" y1="0.0528" x2="0.2164" y2="0.0584" layer="21"/>
<rectangle x1="0.0879" y1="0.0584" x2="0.2164" y2="0.064" layer="21"/>
<rectangle x1="0.0879" y1="0.064" x2="0.2164" y2="0.0696" layer="21"/>
<rectangle x1="0.0879" y1="0.0696" x2="0.2164" y2="0.0752" layer="21"/>
<rectangle x1="0.0879" y1="0.0752" x2="0.2164" y2="0.0808" layer="21"/>
<rectangle x1="0.0879" y1="0.0808" x2="0.2164" y2="0.0864" layer="21"/>
<rectangle x1="0.0879" y1="0.0864" x2="0.2164" y2="0.0919" layer="21"/>
<rectangle x1="0.0879" y1="0.0919" x2="0.2164" y2="0.0975" layer="21"/>
<rectangle x1="0.0879" y1="0.0975" x2="0.2164" y2="0.1031" layer="21"/>
<rectangle x1="0.0879" y1="0.1031" x2="0.2164" y2="0.1087" layer="21"/>
<rectangle x1="0.0879" y1="0.1087" x2="0.2164" y2="0.1143" layer="21"/>
<rectangle x1="0.0879" y1="0.1143" x2="0.2164" y2="0.1199" layer="21"/>
<rectangle x1="0.0879" y1="0.1199" x2="0.2164" y2="0.1255" layer="21"/>
<rectangle x1="0.2723" y1="0.1199" x2="0.4623" y2="0.1255" layer="21"/>
<rectangle x1="0.0879" y1="0.1255" x2="0.5067" y2="0.1311" layer="21"/>
<rectangle x1="0.0879" y1="0.1311" x2="0.5458" y2="0.1367" layer="21"/>
<rectangle x1="0.0879" y1="0.1367" x2="0.557" y2="0.1422" layer="21"/>
<rectangle x1="0.0879" y1="0.1422" x2="0.5738" y2="0.1478" layer="21"/>
<rectangle x1="0.0879" y1="0.1478" x2="0.585" y2="0.1534" layer="21"/>
<rectangle x1="0.0599" y1="0.1534" x2="0.6017" y2="0.159" layer="21"/>
<rectangle x1="0.0376" y1="0.159" x2="0.6129" y2="0.1646" layer="21"/>
<rectangle x1="0.0264" y1="0.1646" x2="0.6297" y2="0.1702" layer="21"/>
<rectangle x1="0.0097" y1="0.1702" x2="0.6408" y2="0.1758" layer="21"/>
<rectangle x1="-0.0015" y1="0.1758" x2="0.652" y2="0.1814" layer="21"/>
<rectangle x1="-0.0127" y1="0.1814" x2="0.6632" y2="0.1869" layer="21"/>
<rectangle x1="-0.0295" y1="0.1869" x2="0.6688" y2="0.1925" layer="21"/>
<rectangle x1="-0.0406" y1="0.1925" x2="0.68" y2="0.1981" layer="21"/>
<rectangle x1="-0.0518" y1="0.1981" x2="0.6911" y2="0.2037" layer="21"/>
<rectangle x1="-0.0686" y1="0.2037" x2="0.7023" y2="0.2093" layer="21"/>
<rectangle x1="-0.0798" y1="0.2093" x2="0.7079" y2="0.2149" layer="21"/>
<rectangle x1="-0.0909" y1="0.2149" x2="0.7191" y2="0.2205" layer="21"/>
<rectangle x1="-0.1021" y1="0.2205" x2="0.7303" y2="0.2261" layer="21"/>
<rectangle x1="-0.1133" y1="0.2261" x2="0.7358" y2="0.2316" layer="21"/>
<rectangle x1="-0.1189" y1="0.2316" x2="0.7414" y2="0.2372" layer="21"/>
<rectangle x1="-0.13" y1="0.2372" x2="0.747" y2="0.2428" layer="21"/>
<rectangle x1="-0.1412" y1="0.2428" x2="0.7526" y2="0.2484" layer="21"/>
<rectangle x1="-0.1468" y1="0.2484" x2="0.2779" y2="0.254" layer="21"/>
<rectangle x1="0.4567" y1="0.2484" x2="0.7582" y2="0.254" layer="21"/>
<rectangle x1="-0.158" y1="0.254" x2="0.2164" y2="0.2596" layer="21"/>
<rectangle x1="0.5011" y1="0.254" x2="0.7638" y2="0.2596" layer="21"/>
<rectangle x1="-0.1692" y1="0.2596" x2="0.2164" y2="0.2652" layer="21"/>
<rectangle x1="0.5179" y1="0.2596" x2="0.7694" y2="0.2652" layer="21"/>
<rectangle x1="-0.1748" y1="0.2652" x2="0.2164" y2="0.2708" layer="21"/>
<rectangle x1="0.5347" y1="0.2652" x2="0.775" y2="0.2708" layer="21"/>
<rectangle x1="-0.1859" y1="0.2708" x2="0.2164" y2="0.2764" layer="21"/>
<rectangle x1="0.5458" y1="0.2708" x2="0.7805" y2="0.2764" layer="21"/>
<rectangle x1="-0.1971" y1="0.2764" x2="0.2164" y2="0.2819" layer="21"/>
<rectangle x1="0.5626" y1="0.2764" x2="0.7861" y2="0.2819" layer="21"/>
<rectangle x1="-0.2027" y1="0.2819" x2="0.0767" y2="0.2875" layer="21"/>
<rectangle x1="0.0879" y1="0.2819" x2="0.2164" y2="0.2875" layer="21"/>
<rectangle x1="0.5738" y1="0.2819" x2="0.7917" y2="0.2875" layer="21"/>
<rectangle x1="-0.2139" y1="0.2875" x2="0.0655" y2="0.2931" layer="21"/>
<rectangle x1="0.0879" y1="0.2875" x2="0.2164" y2="0.2931" layer="21"/>
<rectangle x1="0.5906" y1="0.2875" x2="0.7973" y2="0.2931" layer="21"/>
<rectangle x1="-0.2195" y1="0.2931" x2="0.0488" y2="0.2987" layer="21"/>
<rectangle x1="0.0879" y1="0.2931" x2="0.2164" y2="0.2987" layer="21"/>
<rectangle x1="0.5961" y1="0.2931" x2="0.8029" y2="0.2987" layer="21"/>
<rectangle x1="-0.225" y1="0.2987" x2="0.0376" y2="0.3043" layer="21"/>
<rectangle x1="0.0879" y1="0.2987" x2="0.2164" y2="0.3043" layer="21"/>
<rectangle x1="0.6073" y1="0.2987" x2="0.8085" y2="0.3043" layer="21"/>
<rectangle x1="-0.2306" y1="0.3043" x2="0.0264" y2="0.3099" layer="21"/>
<rectangle x1="0.0879" y1="0.3043" x2="0.2164" y2="0.3099" layer="21"/>
<rectangle x1="0.6185" y1="0.3043" x2="0.8085" y2="0.3099" layer="21"/>
<rectangle x1="-0.2362" y1="0.3099" x2="0.0097" y2="0.3152" layer="21"/>
<rectangle x1="0.0879" y1="0.3099" x2="0.2164" y2="0.3152" layer="21"/>
<rectangle x1="0.6297" y1="0.3099" x2="0.8141" y2="0.3152" layer="21"/>
<rectangle x1="-0.2418" y1="0.3152" x2="-0.0015" y2="0.3208" layer="21"/>
<rectangle x1="0.0879" y1="0.3152" x2="0.2164" y2="0.3208" layer="21"/>
<rectangle x1="0.6353" y1="0.3152" x2="0.8141" y2="0.3208" layer="21"/>
<rectangle x1="-0.2474" y1="0.3208" x2="-0.0127" y2="0.3264" layer="21"/>
<rectangle x1="0.0879" y1="0.3208" x2="0.2164" y2="0.3264" layer="21"/>
<rectangle x1="0.6464" y1="0.3208" x2="0.8197" y2="0.3264" layer="21"/>
<rectangle x1="-0.2586" y1="0.3264" x2="-0.0295" y2="0.332" layer="21"/>
<rectangle x1="0.0879" y1="0.3264" x2="0.2164" y2="0.332" layer="21"/>
<rectangle x1="0.652" y1="0.3264" x2="0.8252" y2="0.332" layer="21"/>
<rectangle x1="-0.2642" y1="0.332" x2="-0.0351" y2="0.3376" layer="21"/>
<rectangle x1="0.0879" y1="0.332" x2="0.222" y2="0.3376" layer="21"/>
<rectangle x1="0.6576" y1="0.332" x2="0.8252" y2="0.3376" layer="21"/>
<rectangle x1="-0.2697" y1="0.3376" x2="-0.0462" y2="0.3432" layer="21"/>
<rectangle x1="0.0935" y1="0.3376" x2="0.222" y2="0.3432" layer="21"/>
<rectangle x1="0.6632" y1="0.3376" x2="0.8308" y2="0.3432" layer="21"/>
<rectangle x1="-0.2753" y1="0.3432" x2="-0.0574" y2="0.3487" layer="21"/>
<rectangle x1="0.0935" y1="0.3432" x2="0.222" y2="0.3487" layer="21"/>
<rectangle x1="0.6688" y1="0.3432" x2="0.8308" y2="0.3487" layer="21"/>
<rectangle x1="-0.2809" y1="0.3487" x2="-0.063" y2="0.3543" layer="21"/>
<rectangle x1="0.0935" y1="0.3487" x2="0.222" y2="0.3543" layer="21"/>
<rectangle x1="0.6744" y1="0.3487" x2="0.8364" y2="0.3543" layer="21"/>
<rectangle x1="-0.2865" y1="0.3543" x2="-0.0742" y2="0.3599" layer="21"/>
<rectangle x1="0.0935" y1="0.3543" x2="0.222" y2="0.3599" layer="21"/>
<rectangle x1="0.68" y1="0.3543" x2="0.8364" y2="0.3599" layer="21"/>
<rectangle x1="-0.2921" y1="0.3599" x2="-0.0853" y2="0.3655" layer="21"/>
<rectangle x1="0.0935" y1="0.3599" x2="0.222" y2="0.3655" layer="21"/>
<rectangle x1="0.6855" y1="0.3599" x2="0.842" y2="0.3655" layer="21"/>
<rectangle x1="-0.3033" y1="0.3655" x2="-0.0909" y2="0.3711" layer="21"/>
<rectangle x1="0.0935" y1="0.3655" x2="0.222" y2="0.3711" layer="21"/>
<rectangle x1="0.6911" y1="0.3655" x2="0.8476" y2="0.3711" layer="21"/>
<rectangle x1="-0.3089" y1="0.3711" x2="-0.1021" y2="0.3767" layer="21"/>
<rectangle x1="0.0935" y1="0.3711" x2="0.222" y2="0.3767" layer="21"/>
<rectangle x1="0.6967" y1="0.3711" x2="0.8476" y2="0.3767" layer="21"/>
<rectangle x1="-0.3145" y1="0.3767" x2="-0.1133" y2="0.3823" layer="21"/>
<rectangle x1="0.0935" y1="0.3767" x2="0.2276" y2="0.3823" layer="21"/>
<rectangle x1="0.7023" y1="0.3767" x2="0.8532" y2="0.3823" layer="21"/>
<rectangle x1="-0.32" y1="0.3823" x2="-0.1189" y2="0.3879" layer="21"/>
<rectangle x1="0.0991" y1="0.3823" x2="0.2276" y2="0.3879" layer="21"/>
<rectangle x1="0.7079" y1="0.3823" x2="0.8532" y2="0.3879" layer="21"/>
<rectangle x1="-0.3256" y1="0.3879" x2="-0.13" y2="0.3934" layer="21"/>
<rectangle x1="0.0991" y1="0.3879" x2="0.2276" y2="0.3934" layer="21"/>
<rectangle x1="0.7079" y1="0.3879" x2="0.8588" y2="0.3934" layer="21"/>
<rectangle x1="-0.3256" y1="0.3934" x2="-0.1356" y2="0.399" layer="21"/>
<rectangle x1="0.0991" y1="0.3934" x2="0.2276" y2="0.399" layer="21"/>
<rectangle x1="0.7135" y1="0.3934" x2="0.8588" y2="0.399" layer="21"/>
<rectangle x1="-0.3312" y1="0.399" x2="-0.1468" y2="0.4046" layer="21"/>
<rectangle x1="0.0991" y1="0.399" x2="0.2276" y2="0.4046" layer="21"/>
<rectangle x1="0.7191" y1="0.399" x2="0.8644" y2="0.4046" layer="21"/>
<rectangle x1="-0.3368" y1="0.4046" x2="-0.1524" y2="0.4102" layer="21"/>
<rectangle x1="0.0991" y1="0.4046" x2="0.2332" y2="0.4102" layer="21"/>
<rectangle x1="0.7191" y1="0.4046" x2="0.8644" y2="0.4102" layer="21"/>
<rectangle x1="-0.3424" y1="0.4102" x2="-0.158" y2="0.4158" layer="21"/>
<rectangle x1="0.0991" y1="0.4102" x2="0.2332" y2="0.4158" layer="21"/>
<rectangle x1="0.7247" y1="0.4102" x2="0.8644" y2="0.4158" layer="21"/>
<rectangle x1="-0.348" y1="0.4158" x2="-0.1636" y2="0.4214" layer="21"/>
<rectangle x1="0.0991" y1="0.4158" x2="0.2332" y2="0.4214" layer="21"/>
<rectangle x1="0.7247" y1="0.4158" x2="0.87" y2="0.4214" layer="21"/>
<rectangle x1="-0.3536" y1="0.4214" x2="-0.1692" y2="0.427" layer="21"/>
<rectangle x1="0.1046" y1="0.4214" x2="0.2332" y2="0.427" layer="21"/>
<rectangle x1="0.7303" y1="0.4214" x2="0.87" y2="0.427" layer="21"/>
<rectangle x1="-0.3592" y1="0.427" x2="-0.1748" y2="0.4326" layer="21"/>
<rectangle x1="0.1046" y1="0.427" x2="0.2388" y2="0.4326" layer="21"/>
<rectangle x1="0.7303" y1="0.427" x2="0.8755" y2="0.4326" layer="21"/>
<rectangle x1="-0.3647" y1="0.4326" x2="-0.1803" y2="0.4382" layer="21"/>
<rectangle x1="0.1046" y1="0.4326" x2="0.2388" y2="0.4382" layer="21"/>
<rectangle x1="0.7358" y1="0.4326" x2="0.8755" y2="0.4382" layer="21"/>
<rectangle x1="-0.3647" y1="0.4382" x2="-0.1915" y2="0.4437" layer="21"/>
<rectangle x1="0.1046" y1="0.4382" x2="0.2388" y2="0.4437" layer="21"/>
<rectangle x1="0.7414" y1="0.4382" x2="0.8755" y2="0.4437" layer="21"/>
<rectangle x1="-0.3703" y1="0.4437" x2="-0.1971" y2="0.4493" layer="21"/>
<rectangle x1="0.1102" y1="0.4437" x2="0.2388" y2="0.4493" layer="21"/>
<rectangle x1="0.7414" y1="0.4437" x2="0.8811" y2="0.4493" layer="21"/>
<rectangle x1="-0.3759" y1="0.4493" x2="-0.2027" y2="0.4549" layer="21"/>
<rectangle x1="0.1102" y1="0.4493" x2="0.2443" y2="0.4549" layer="21"/>
<rectangle x1="0.7414" y1="0.4493" x2="0.8811" y2="0.4549" layer="21"/>
<rectangle x1="-0.3815" y1="0.4549" x2="-0.2083" y2="0.4605" layer="21"/>
<rectangle x1="0.1102" y1="0.4549" x2="0.2443" y2="0.4605" layer="21"/>
<rectangle x1="0.747" y1="0.4549" x2="0.8867" y2="0.4605" layer="21"/>
<rectangle x1="-0.3871" y1="0.4605" x2="-0.2139" y2="0.4661" layer="21"/>
<rectangle x1="0.1102" y1="0.4605" x2="0.2443" y2="0.4661" layer="21"/>
<rectangle x1="0.747" y1="0.4605" x2="0.8867" y2="0.4661" layer="21"/>
<rectangle x1="-0.3927" y1="0.4661" x2="-0.2195" y2="0.4717" layer="21"/>
<rectangle x1="0.1158" y1="0.4661" x2="0.2443" y2="0.4717" layer="21"/>
<rectangle x1="0.7526" y1="0.4661" x2="0.8867" y2="0.4717" layer="21"/>
<rectangle x1="-0.3983" y1="0.4717" x2="-0.225" y2="0.4773" layer="21"/>
<rectangle x1="0.1158" y1="0.4717" x2="0.2499" y2="0.4773" layer="21"/>
<rectangle x1="0.7526" y1="0.4717" x2="0.8923" y2="0.4773" layer="21"/>
<rectangle x1="-0.4039" y1="0.4773" x2="-0.2306" y2="0.4829" layer="21"/>
<rectangle x1="0.1158" y1="0.4773" x2="0.2555" y2="0.4829" layer="21"/>
<rectangle x1="0.7526" y1="0.4773" x2="0.8923" y2="0.4829" layer="21"/>
<rectangle x1="-0.4039" y1="0.4829" x2="-0.2362" y2="0.4884" layer="21"/>
<rectangle x1="0.1158" y1="0.4829" x2="0.2555" y2="0.4884" layer="21"/>
<rectangle x1="0.7582" y1="0.4829" x2="0.8979" y2="0.4884" layer="21"/>
<rectangle x1="-0.4094" y1="0.4884" x2="-0.2418" y2="0.494" layer="21"/>
<rectangle x1="0.1214" y1="0.4884" x2="0.2611" y2="0.494" layer="21"/>
<rectangle x1="0.7582" y1="0.4884" x2="0.8979" y2="0.494" layer="21"/>
<rectangle x1="-0.415" y1="0.494" x2="-0.2474" y2="0.4996" layer="21"/>
<rectangle x1="0.1214" y1="0.494" x2="0.2611" y2="0.4996" layer="21"/>
<rectangle x1="0.7638" y1="0.494" x2="0.8979" y2="0.4996" layer="21"/>
<rectangle x1="-0.415" y1="0.4996" x2="-0.253" y2="0.5052" layer="21"/>
<rectangle x1="0.1214" y1="0.4996" x2="0.2667" y2="0.5052" layer="21"/>
<rectangle x1="0.7638" y1="0.4996" x2="0.8979" y2="0.5052" layer="21"/>
<rectangle x1="-0.4206" y1="0.5052" x2="-0.253" y2="0.5108" layer="21"/>
<rectangle x1="0.1214" y1="0.5052" x2="0.2667" y2="0.5108" layer="21"/>
<rectangle x1="0.7638" y1="0.5052" x2="0.8979" y2="0.5108" layer="21"/>
<rectangle x1="-0.4206" y1="0.5108" x2="-0.2586" y2="0.5164" layer="21"/>
<rectangle x1="0.127" y1="0.5108" x2="0.2723" y2="0.5164" layer="21"/>
<rectangle x1="0.7694" y1="0.5108" x2="0.8979" y2="0.5164" layer="21"/>
<rectangle x1="-0.4262" y1="0.5164" x2="-0.2642" y2="0.522" layer="21"/>
<rectangle x1="0.127" y1="0.5164" x2="0.2779" y2="0.522" layer="21"/>
<rectangle x1="0.7694" y1="0.5164" x2="0.8979" y2="0.522" layer="21"/>
<rectangle x1="-0.4318" y1="0.522" x2="-0.2697" y2="0.5276" layer="21"/>
<rectangle x1="0.1326" y1="0.522" x2="0.2779" y2="0.5276" layer="21"/>
<rectangle x1="0.7694" y1="0.522" x2="0.9035" y2="0.5276" layer="21"/>
<rectangle x1="-0.4318" y1="0.5276" x2="-0.2753" y2="0.5331" layer="21"/>
<rectangle x1="0.1326" y1="0.5276" x2="0.2835" y2="0.5331" layer="21"/>
<rectangle x1="0.775" y1="0.5276" x2="0.9035" y2="0.5331" layer="21"/>
<rectangle x1="-0.4374" y1="0.5331" x2="-0.2809" y2="0.5387" layer="21"/>
<rectangle x1="0.1382" y1="0.5331" x2="0.2835" y2="0.5387" layer="21"/>
<rectangle x1="0.775" y1="0.5331" x2="0.9035" y2="0.5387" layer="21"/>
<rectangle x1="-0.4374" y1="0.5387" x2="-0.2865" y2="0.5443" layer="21"/>
<rectangle x1="0.1382" y1="0.5387" x2="0.2891" y2="0.5443" layer="21"/>
<rectangle x1="0.775" y1="0.5387" x2="0.9035" y2="0.5443" layer="21"/>
<rectangle x1="-0.443" y1="0.5443" x2="-0.2921" y2="0.5499" layer="21"/>
<rectangle x1="0.1438" y1="0.5443" x2="0.2946" y2="0.5499" layer="21"/>
<rectangle x1="0.775" y1="0.5443" x2="0.9035" y2="0.5499" layer="21"/>
<rectangle x1="-0.4486" y1="0.5499" x2="-0.2921" y2="0.5555" layer="21"/>
<rectangle x1="0.1494" y1="0.5499" x2="0.3002" y2="0.5555" layer="21"/>
<rectangle x1="0.775" y1="0.5499" x2="0.9035" y2="0.5555" layer="21"/>
<rectangle x1="-0.4486" y1="0.5555" x2="-0.2977" y2="0.5611" layer="21"/>
<rectangle x1="0.1494" y1="0.5555" x2="0.3058" y2="0.5611" layer="21"/>
<rectangle x1="0.775" y1="0.5555" x2="0.9035" y2="0.5611" layer="21"/>
<rectangle x1="-0.4542" y1="0.5611" x2="-0.3033" y2="0.5667" layer="21"/>
<rectangle x1="0.1549" y1="0.5611" x2="0.3114" y2="0.5667" layer="21"/>
<rectangle x1="0.775" y1="0.5611" x2="0.9035" y2="0.5667" layer="21"/>
<rectangle x1="-0.4542" y1="0.5667" x2="-0.3033" y2="0.5723" layer="21"/>
<rectangle x1="0.1549" y1="0.5667" x2="0.317" y2="0.5723" layer="21"/>
<rectangle x1="0.775" y1="0.5667" x2="0.9091" y2="0.5723" layer="21"/>
<rectangle x1="-0.4597" y1="0.5723" x2="-0.3089" y2="0.5779" layer="21"/>
<rectangle x1="0.1605" y1="0.5723" x2="0.317" y2="0.5779" layer="21"/>
<rectangle x1="0.7805" y1="0.5723" x2="0.9091" y2="0.5779" layer="21"/>
<rectangle x1="-0.4653" y1="0.5779" x2="-0.3145" y2="0.5834" layer="21"/>
<rectangle x1="0.1605" y1="0.5779" x2="0.3226" y2="0.5834" layer="21"/>
<rectangle x1="0.7805" y1="0.5779" x2="0.9091" y2="0.5834" layer="21"/>
<rectangle x1="-0.4653" y1="0.5834" x2="-0.3145" y2="0.589" layer="21"/>
<rectangle x1="0.1661" y1="0.5834" x2="0.3282" y2="0.589" layer="21"/>
<rectangle x1="0.7805" y1="0.5834" x2="0.9091" y2="0.589" layer="21"/>
<rectangle x1="-0.4709" y1="0.589" x2="-0.32" y2="0.5946" layer="21"/>
<rectangle x1="0.1717" y1="0.589" x2="0.3338" y2="0.5946" layer="21"/>
<rectangle x1="0.7805" y1="0.589" x2="0.9091" y2="0.5946" layer="21"/>
<rectangle x1="-0.4709" y1="0.5946" x2="-0.32" y2="0.6002" layer="21"/>
<rectangle x1="0.1717" y1="0.5946" x2="0.3393" y2="0.6002" layer="21"/>
<rectangle x1="0.7805" y1="0.5946" x2="0.9091" y2="0.6002" layer="21"/>
<rectangle x1="-0.4765" y1="0.6002" x2="-0.3256" y2="0.6058" layer="21"/>
<rectangle x1="0.1773" y1="0.6002" x2="0.3449" y2="0.6058" layer="21"/>
<rectangle x1="0.7805" y1="0.6002" x2="0.9091" y2="0.6058" layer="21"/>
<rectangle x1="-0.4765" y1="0.6058" x2="-0.3312" y2="0.6114" layer="21"/>
<rectangle x1="0.1773" y1="0.6058" x2="0.3505" y2="0.6114" layer="21"/>
<rectangle x1="0.7805" y1="0.6058" x2="0.9091" y2="0.6114" layer="21"/>
<rectangle x1="-0.4821" y1="0.6114" x2="-0.3312" y2="0.617" layer="21"/>
<rectangle x1="0.1829" y1="0.6114" x2="0.3561" y2="0.617" layer="21"/>
<rectangle x1="0.7805" y1="0.6114" x2="0.9091" y2="0.617" layer="21"/>
<rectangle x1="-0.4821" y1="0.617" x2="-0.3368" y2="0.6226" layer="21"/>
<rectangle x1="0.1885" y1="0.617" x2="0.3673" y2="0.6226" layer="21"/>
<rectangle x1="0.7805" y1="0.617" x2="0.9091" y2="0.6226" layer="21"/>
<rectangle x1="-0.4877" y1="0.6226" x2="-0.3368" y2="0.6281" layer="21"/>
<rectangle x1="0.1941" y1="0.6226" x2="0.3729" y2="0.6281" layer="21"/>
<rectangle x1="0.7805" y1="0.6226" x2="0.9091" y2="0.6281" layer="21"/>
<rectangle x1="-0.4877" y1="0.6281" x2="-0.3424" y2="0.6337" layer="21"/>
<rectangle x1="0.1996" y1="0.6281" x2="0.3785" y2="0.6337" layer="21"/>
<rectangle x1="0.775" y1="0.6281" x2="0.9091" y2="0.6337" layer="21"/>
<rectangle x1="-0.4877" y1="0.6337" x2="-0.348" y2="0.6393" layer="21"/>
<rectangle x1="0.2052" y1="0.6337" x2="0.384" y2="0.6393" layer="21"/>
<rectangle x1="0.775" y1="0.6337" x2="0.9091" y2="0.6393" layer="21"/>
<rectangle x1="-0.493" y1="0.6393" x2="-0.348" y2="0.6449" layer="21"/>
<rectangle x1="0.2052" y1="0.6393" x2="0.3896" y2="0.6449" layer="21"/>
<rectangle x1="0.775" y1="0.6393" x2="0.9091" y2="0.6449" layer="21"/>
<rectangle x1="-0.493" y1="0.6449" x2="-0.3536" y2="0.6505" layer="21"/>
<rectangle x1="0.2108" y1="0.6449" x2="0.3952" y2="0.6505" layer="21"/>
<rectangle x1="0.775" y1="0.6449" x2="0.9035" y2="0.6505" layer="21"/>
<rectangle x1="-0.4986" y1="0.6505" x2="-0.3536" y2="0.6561" layer="21"/>
<rectangle x1="0.2164" y1="0.6505" x2="0.4064" y2="0.6561" layer="21"/>
<rectangle x1="0.7694" y1="0.6505" x2="0.9035" y2="0.6561" layer="21"/>
<rectangle x1="-0.4986" y1="0.6561" x2="-0.3592" y2="0.6617" layer="21"/>
<rectangle x1="0.222" y1="0.6561" x2="0.4176" y2="0.6617" layer="21"/>
<rectangle x1="0.7694" y1="0.6561" x2="0.9035" y2="0.6617" layer="21"/>
<rectangle x1="-0.5042" y1="0.6617" x2="-0.3647" y2="0.6673" layer="21"/>
<rectangle x1="0.2276" y1="0.6617" x2="0.4288" y2="0.6673" layer="21"/>
<rectangle x1="0.7638" y1="0.6617" x2="0.9035" y2="0.6673" layer="21"/>
<rectangle x1="-0.5042" y1="0.6673" x2="-0.3647" y2="0.6728" layer="21"/>
<rectangle x1="0.2332" y1="0.6673" x2="0.4399" y2="0.6728" layer="21"/>
<rectangle x1="0.7638" y1="0.6673" x2="0.8979" y2="0.6728" layer="21"/>
<rectangle x1="-0.5042" y1="0.6728" x2="-0.3647" y2="0.6784" layer="21"/>
<rectangle x1="0.2332" y1="0.6728" x2="0.4511" y2="0.6784" layer="21"/>
<rectangle x1="0.7582" y1="0.6728" x2="0.8979" y2="0.6784" layer="21"/>
<rectangle x1="-0.5098" y1="0.6784" x2="-0.3703" y2="0.684" layer="21"/>
<rectangle x1="0.2388" y1="0.6784" x2="0.4623" y2="0.684" layer="21"/>
<rectangle x1="0.7526" y1="0.6784" x2="0.8979" y2="0.684" layer="21"/>
<rectangle x1="-0.5098" y1="0.684" x2="-0.3703" y2="0.6896" layer="21"/>
<rectangle x1="0.2443" y1="0.684" x2="0.4788" y2="0.6896" layer="21"/>
<rectangle x1="0.747" y1="0.684" x2="0.8979" y2="0.6896" layer="21"/>
<rectangle x1="-0.5154" y1="0.6896" x2="-0.3759" y2="0.6952" layer="21"/>
<rectangle x1="0.2499" y1="0.6896" x2="0.4956" y2="0.6952" layer="21"/>
<rectangle x1="0.7414" y1="0.6896" x2="0.8923" y2="0.6952" layer="21"/>
<rectangle x1="-0.5154" y1="0.6952" x2="-0.3759" y2="0.7008" layer="21"/>
<rectangle x1="0.2555" y1="0.6952" x2="0.5123" y2="0.7008" layer="21"/>
<rectangle x1="0.7358" y1="0.6952" x2="0.8923" y2="0.7008" layer="21"/>
<rectangle x1="-0.521" y1="0.7008" x2="-0.3815" y2="0.7064" layer="21"/>
<rectangle x1="0.2667" y1="0.7008" x2="0.5347" y2="0.7064" layer="21"/>
<rectangle x1="0.7247" y1="0.7008" x2="0.8867" y2="0.7064" layer="21"/>
<rectangle x1="-0.521" y1="0.7064" x2="-0.3815" y2="0.712" layer="21"/>
<rectangle x1="0.2723" y1="0.7064" x2="0.557" y2="0.712" layer="21"/>
<rectangle x1="0.7135" y1="0.7064" x2="0.8867" y2="0.712" layer="21"/>
<rectangle x1="-0.521" y1="0.712" x2="-0.3815" y2="0.7176" layer="21"/>
<rectangle x1="0.2779" y1="0.712" x2="0.6017" y2="0.7176" layer="21"/>
<rectangle x1="0.6911" y1="0.712" x2="0.8811" y2="0.7176" layer="21"/>
<rectangle x1="-0.5265" y1="0.7176" x2="-0.3871" y2="0.7231" layer="21"/>
<rectangle x1="0.2835" y1="0.7176" x2="0.8811" y2="0.7231" layer="21"/>
<rectangle x1="-0.5265" y1="0.7231" x2="-0.3871" y2="0.7287" layer="21"/>
<rectangle x1="0.2891" y1="0.7231" x2="0.8755" y2="0.7287" layer="21"/>
<rectangle x1="-0.5321" y1="0.7287" x2="-0.3927" y2="0.7343" layer="21"/>
<rectangle x1="0.3002" y1="0.7287" x2="0.8755" y2="0.7343" layer="21"/>
<rectangle x1="-0.5321" y1="0.7343" x2="-0.3927" y2="0.7399" layer="21"/>
<rectangle x1="0.3058" y1="0.7343" x2="0.87" y2="0.7399" layer="21"/>
<rectangle x1="-0.5321" y1="0.7399" x2="-0.3983" y2="0.7455" layer="21"/>
<rectangle x1="0.3114" y1="0.7399" x2="0.87" y2="0.7455" layer="21"/>
<rectangle x1="-0.5321" y1="0.7455" x2="-0.3983" y2="0.7511" layer="21"/>
<rectangle x1="0.317" y1="0.7455" x2="0.8644" y2="0.7511" layer="21"/>
<rectangle x1="-0.5377" y1="0.7511" x2="-0.3983" y2="0.7567" layer="21"/>
<rectangle x1="0.3226" y1="0.7511" x2="0.8644" y2="0.7567" layer="21"/>
<rectangle x1="-0.5377" y1="0.7567" x2="-0.4039" y2="0.7623" layer="21"/>
<rectangle x1="0.3338" y1="0.7567" x2="0.8588" y2="0.7623" layer="21"/>
<rectangle x1="-0.5377" y1="0.7623" x2="-0.4039" y2="0.7678" layer="21"/>
<rectangle x1="0.3449" y1="0.7623" x2="0.8532" y2="0.7678" layer="21"/>
<rectangle x1="-0.5377" y1="0.7678" x2="-0.4094" y2="0.7734" layer="21"/>
<rectangle x1="0.3561" y1="0.7678" x2="0.8476" y2="0.7734" layer="21"/>
<rectangle x1="-0.5377" y1="0.7734" x2="-0.4094" y2="0.779" layer="21"/>
<rectangle x1="0.3673" y1="0.7734" x2="0.842" y2="0.779" layer="21"/>
<rectangle x1="-0.5433" y1="0.779" x2="-0.4094" y2="0.7846" layer="21"/>
<rectangle x1="0.3785" y1="0.779" x2="0.8364" y2="0.7846" layer="21"/>
<rectangle x1="-0.5433" y1="0.7846" x2="-0.4094" y2="0.7902" layer="21"/>
<rectangle x1="0.3896" y1="0.7846" x2="0.8308" y2="0.7902" layer="21"/>
<rectangle x1="-0.5433" y1="0.7902" x2="-0.415" y2="0.7958" layer="21"/>
<rectangle x1="0.4008" y1="0.7902" x2="0.8252" y2="0.7958" layer="21"/>
<rectangle x1="-0.5433" y1="0.7958" x2="-0.415" y2="0.8014" layer="21"/>
<rectangle x1="0.412" y1="0.7958" x2="0.8197" y2="0.8014" layer="21"/>
<rectangle x1="-0.5489" y1="0.8014" x2="-0.415" y2="0.807" layer="21"/>
<rectangle x1="0.4232" y1="0.8014" x2="0.8085" y2="0.807" layer="21"/>
<rectangle x1="-0.5489" y1="0.807" x2="-0.415" y2="0.8125" layer="21"/>
<rectangle x1="0.4399" y1="0.807" x2="0.7973" y2="0.8125" layer="21"/>
<rectangle x1="-0.5489" y1="0.8125" x2="-0.415" y2="0.8181" layer="21"/>
<rectangle x1="0.4623" y1="0.8125" x2="0.7861" y2="0.8181" layer="21"/>
<rectangle x1="-0.5489" y1="0.8181" x2="-0.4206" y2="0.8237" layer="21"/>
<rectangle x1="0.4788" y1="0.8181" x2="0.775" y2="0.8237" layer="21"/>
<rectangle x1="-0.5489" y1="0.8237" x2="-0.4206" y2="0.8293" layer="21"/>
<rectangle x1="0.4956" y1="0.8237" x2="0.7638" y2="0.8293" layer="21"/>
<rectangle x1="-0.5545" y1="0.8293" x2="-0.4206" y2="0.8349" layer="21"/>
<rectangle x1="0.5123" y1="0.8293" x2="0.7526" y2="0.8349" layer="21"/>
<rectangle x1="-0.5545" y1="0.8349" x2="-0.4206" y2="0.8405" layer="21"/>
<rectangle x1="0.5514" y1="0.8349" x2="0.7303" y2="0.8405" layer="21"/>
<rectangle x1="-0.5545" y1="0.8405" x2="-0.4262" y2="0.8461" layer="21"/>
<rectangle x1="0.5961" y1="0.8405" x2="0.7079" y2="0.8461" layer="21"/>
<rectangle x1="-0.5545" y1="0.8461" x2="-0.4262" y2="0.8517" layer="21"/>
<rectangle x1="-0.5601" y1="0.8517" x2="-0.4262" y2="0.8573" layer="21"/>
<rectangle x1="-0.5601" y1="0.8573" x2="-0.4262" y2="0.8628" layer="21"/>
<rectangle x1="-0.5601" y1="0.8628" x2="-0.4262" y2="0.8684" layer="21"/>
<rectangle x1="-0.5601" y1="0.8684" x2="-0.4318" y2="0.874" layer="21"/>
<rectangle x1="-0.5601" y1="0.874" x2="-0.4318" y2="0.8796" layer="21"/>
<rectangle x1="-0.5601" y1="0.8796" x2="-0.4318" y2="0.8852" layer="21"/>
<rectangle x1="-0.5601" y1="0.8852" x2="-0.4318" y2="0.8908" layer="21"/>
<rectangle x1="-0.5601" y1="0.8908" x2="-0.4318" y2="0.8964" layer="21"/>
<rectangle x1="-0.5601" y1="0.8964" x2="-0.4318" y2="0.902" layer="21"/>
<rectangle x1="-0.5657" y1="0.902" x2="-0.4318" y2="0.9075" layer="21"/>
<rectangle x1="-0.5657" y1="0.9075" x2="-0.4374" y2="0.9131" layer="21"/>
<rectangle x1="-0.5657" y1="0.9131" x2="-0.4374" y2="0.9187" layer="21"/>
<rectangle x1="-0.5657" y1="0.9187" x2="-0.4374" y2="0.9243" layer="21"/>
<rectangle x1="-0.5657" y1="0.9243" x2="-0.4374" y2="0.9299" layer="21"/>
<rectangle x1="-0.5657" y1="0.9299" x2="-0.4374" y2="0.9355" layer="21"/>
<rectangle x1="-0.5657" y1="0.9355" x2="-0.4374" y2="0.9411" layer="21"/>
<rectangle x1="-0.5657" y1="0.9411" x2="-0.4374" y2="0.9467" layer="21"/>
<rectangle x1="-0.5657" y1="0.9467" x2="-0.4374" y2="0.9522" layer="21"/>
<rectangle x1="-0.5657" y1="0.9522" x2="-0.4374" y2="0.9578" layer="21"/>
<rectangle x1="-0.5657" y1="0.9578" x2="-0.4374" y2="0.9634" layer="21"/>
<rectangle x1="-0.5712" y1="0.9634" x2="-0.4374" y2="0.969" layer="21"/>
<rectangle x1="-0.5712" y1="0.969" x2="-0.443" y2="0.9746" layer="21"/>
<rectangle x1="-0.5712" y1="0.9746" x2="-0.443" y2="0.9802" layer="21"/>
<rectangle x1="-0.5712" y1="0.9802" x2="-0.443" y2="0.9858" layer="21"/>
<rectangle x1="-0.5712" y1="0.9858" x2="-0.443" y2="0.9914" layer="21"/>
<rectangle x1="-0.5712" y1="0.9914" x2="-0.443" y2="0.997" layer="21"/>
<rectangle x1="-0.5712" y1="0.997" x2="-0.443" y2="1.0025" layer="21"/>
<rectangle x1="-0.5712" y1="1.0025" x2="-0.443" y2="1.0081" layer="21"/>
<rectangle x1="-0.5712" y1="1.0081" x2="-0.443" y2="1.0137" layer="21"/>
<rectangle x1="-0.5712" y1="1.0137" x2="-0.443" y2="1.0193" layer="21"/>
<rectangle x1="-0.5657" y1="1.0193" x2="-0.4486" y2="1.0249" layer="21"/>
<rectangle x1="-0.5657" y1="1.0249" x2="-0.4486" y2="1.0305" layer="21"/>
<rectangle x1="-0.5601" y1="1.0305" x2="-0.4542" y2="1.0361" layer="21"/>
<rectangle x1="-0.5601" y1="1.0361" x2="-0.4542" y2="1.0417" layer="21"/>
<rectangle x1="-0.5545" y1="1.0417" x2="-0.4597" y2="1.0472" layer="21"/>
<rectangle x1="-0.5489" y1="1.0472" x2="-0.4653" y2="1.0528" layer="21"/>
<rectangle x1="-0.5377" y1="1.0528" x2="-0.4765" y2="1.0584" layer="21"/>
<rectangle x1="-0.5265" y1="1.0584" x2="-0.4877" y2="1.064" layer="21"/>
</package>
<package name="PETAL-TINY">
<pad name="1" x="0" y="0" drill="1.016" diameter="2.032" rot="R90" stop="no" thermals="no"/>
<polygon width="0.2032" layer="29">
<vertex x="-1.27" y="-0.127"/>
<vertex x="-1.27" y="0.254" curve="-90"/>
<vertex x="0" y="1.524" curve="-90"/>
<vertex x="1.27" y="0.254"/>
<vertex x="1.27" y="-0.127" curve="90"/>
</polygon>
<polygon width="0.2032" layer="1">
<vertex x="-1.27" y="-0.127"/>
<vertex x="-1.27" y="0.254" curve="-90"/>
<vertex x="0" y="1.524" curve="-90"/>
<vertex x="1.27" y="0.254"/>
<vertex x="1.27" y="-0.127" curve="90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0.0025" y="-0.9525" curve="-90"/>
<vertex x="-0.9524" y="-0.0228" curve="-90.011749"/>
<vertex x="0" y="0.9526" curve="-90"/>
<vertex x="0.95" y="-0.0254" curve="-90.024193"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-0.4445" curve="-90.012891"/>
<vertex x="-0.4445" y="-0.0203" curve="-90"/>
<vertex x="0" y="0.447" curve="-90"/>
<vertex x="0.4419" y="-0.0101" curve="-90.012967"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="1.27" y="-0.127"/>
<vertex x="1.27" y="0.254" curve="90"/>
<vertex x="0" y="1.524" curve="90"/>
<vertex x="-1.27" y="0.254"/>
<vertex x="-1.27" y="-0.127" curve="-90"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="-1.27" y="-0.127"/>
<vertex x="-1.27" y="0.254" curve="-90"/>
<vertex x="0" y="1.524" curve="-90"/>
<vertex x="1.27" y="0.254"/>
<vertex x="1.27" y="-0.127" curve="90"/>
</polygon>
</package>
<package name="PETAL-MEDIUM-2SIDE-NOHOLE">
<polygon width="0.127" layer="1">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="-3.81" curve="-90"/>
<vertex x="-3.81" y="0" curve="73.739795"/>
<vertex x="3.81" y="0" curve="-90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="-3.81" curve="-90"/>
<vertex x="-3.81" y="0" curve="73.739795"/>
<vertex x="3.81" y="0" curve="-90"/>
</polygon>
</package>
<package name="PETAL-MEDIUM-NOHOLE">
<polygon width="0.127" layer="1">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
</package>
<package name="SIMPLE_HOLE">
<pad name="P$1" x="0" y="0" drill="2.54" diameter="3.048"/>
<text x="1.905" y="-0.127" size="0.4064" layer="25">&gt;NAME</text>
</package>
<package name="SIMPLE_HOLE_SM">
<pad name="P$1" x="0" y="0" drill="1.778" diameter="2.286"/>
</package>
</packages>
<symbols>
<symbol name="BUTTONHOLE">
<wire x1="-7.62" y1="2.54" x2="0" y2="2.54" width="0.254" layer="94"/>
<wire x1="0" y1="2.54" x2="0" y2="-2.54" width="0.254" layer="94" curve="-180"/>
<wire x1="0" y1="-2.54" x2="-7.62" y2="-2.54" width="0.254" layer="94"/>
<wire x1="-7.62" y1="-2.54" x2="-7.62" y2="2.54" width="0.254" layer="94" curve="-180"/>
<circle x="-7.62" y="0" radius="1.27" width="0.254" layer="94"/>
<circle x="0" y="0" radius="1.27" width="0.254" layer="94"/>
<text x="-2.54" y="3.048" size="1.27" layer="95">&gt;NAME</text>
<text x="-2.54" y="-4.318" size="1.27" layer="96">&gt;VALUE</text>
<pin name="P$1" x="-3.81" y="5.08" visible="off" length="middle" rot="R270"/>
</symbol>
<symbol name="LETTER_L">
<wire x1="0" y1="185.42" x2="248.92" y2="185.42" width="0.4064" layer="94"/>
<wire x1="248.92" y1="185.42" x2="248.92" y2="0" width="0.4064" layer="94"/>
<wire x1="0" y1="185.42" x2="0" y2="0" width="0.4064" layer="94"/>
<wire x1="0" y1="0" x2="248.92" y2="0" width="0.4064" layer="94"/>
</symbol>
<symbol name="DOCFIELD">
<wire x1="0" y1="0" x2="71.12" y2="0" width="0.254" layer="94"/>
<wire x1="101.6" y1="15.24" x2="87.63" y2="15.24" width="0.254" layer="94"/>
<wire x1="0" y1="0" x2="0" y2="5.08" width="0.254" layer="94"/>
<wire x1="0" y1="5.08" x2="71.12" y2="5.08" width="0.254" layer="94"/>
<wire x1="0" y1="5.08" x2="0" y2="15.24" width="0.254" layer="94"/>
<wire x1="101.6" y1="15.24" x2="101.6" y2="5.08" width="0.254" layer="94"/>
<wire x1="71.12" y1="5.08" x2="71.12" y2="0" width="0.254" layer="94"/>
<wire x1="71.12" y1="5.08" x2="87.63" y2="5.08" width="0.254" layer="94"/>
<wire x1="71.12" y1="0" x2="101.6" y2="0" width="0.254" layer="94"/>
<wire x1="87.63" y1="15.24" x2="87.63" y2="5.08" width="0.254" layer="94"/>
<wire x1="87.63" y1="15.24" x2="0" y2="15.24" width="0.254" layer="94"/>
<wire x1="87.63" y1="5.08" x2="101.6" y2="5.08" width="0.254" layer="94"/>
<wire x1="101.6" y1="5.08" x2="101.6" y2="0" width="0.254" layer="94"/>
<wire x1="0" y1="15.24" x2="0" y2="22.86" width="0.254" layer="94"/>
<wire x1="101.6" y1="35.56" x2="0" y2="35.56" width="0.254" layer="94"/>
<wire x1="101.6" y1="35.56" x2="101.6" y2="22.86" width="0.254" layer="94"/>
<wire x1="0" y1="22.86" x2="101.6" y2="22.86" width="0.254" layer="94"/>
<wire x1="0" y1="22.86" x2="0" y2="35.56" width="0.254" layer="94"/>
<wire x1="101.6" y1="22.86" x2="101.6" y2="15.24" width="0.254" layer="94"/>
<text x="1.27" y="1.27" size="2.54" layer="94" font="vector">Date:</text>
<text x="12.7" y="1.27" size="2.54" layer="94" font="vector">&gt;LAST_DATE_TIME</text>
<text x="72.39" y="1.27" size="2.54" layer="94" font="vector">Sheet:</text>
<text x="86.36" y="1.27" size="2.54" layer="94" font="vector">&gt;SHEET</text>
<text x="88.9" y="11.43" size="2.54" layer="94" font="vector">REV:</text>
<text x="1.27" y="19.05" size="2.54" layer="94" font="vector">TITLE:</text>
<text x="1.27" y="11.43" size="2.54" layer="94" font="vector">Document Number:</text>
</symbol>
<symbol name="SEWTAP-NOHOLE">
<wire x1="0.762" y1="0.762" x2="0.762" y2="-0.762" width="0.1524" layer="94" curve="180"/>
</symbol>
<symbol name="SEWTAP">
<wire x1="0" y1="0" x2="-2.54" y2="0" width="0.1524" layer="94"/>
<wire x1="0.762" y1="0.762" x2="0.762" y2="-0.762" width="0.1524" layer="94" curve="180"/>
<pin name="1" x="-2.54" y="0" visible="off" length="point" rot="R180"/>
</symbol>
<symbol name="LOGO-LP">
<wire x1="-2.54" y1="5.08" x2="-2.54" y2="-2.54" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-2.54" x2="12.7" y2="-2.54" width="0.254" layer="94"/>
<wire x1="12.7" y1="-2.54" x2="12.7" y2="5.08" width="0.254" layer="94"/>
<wire x1="12.7" y1="5.08" x2="-2.54" y2="5.08" width="0.254" layer="94"/>
<text x="-0.254" y="0.254" size="1.9304" layer="94">LilyPad</text>
</symbol>
<symbol name="SEWTAP-NEW">
<wire x1="0" y1="0" x2="-2.54" y2="0" width="0.1524" layer="94"/>
<wire x1="0.762" y1="0.762" x2="0.762" y2="-0.762" width="0.1524" layer="94" curve="180"/>
<pin name="1" x="-2.54" y="0" visible="off" length="point" rot="R180"/>
</symbol>
<symbol name="LED">
<wire x1="1.27" y1="0" x2="0" y2="-2.54" width="0.254" layer="94"/>
<wire x1="0" y1="-2.54" x2="-1.27" y2="0" width="0.254" layer="94"/>
<wire x1="1.27" y1="-2.54" x2="0" y2="-2.54" width="0.254" layer="94"/>
<wire x1="0" y1="-2.54" x2="-1.27" y2="-2.54" width="0.254" layer="94"/>
<wire x1="1.27" y1="0" x2="0" y2="0" width="0.254" layer="94"/>
<wire x1="0" y1="0" x2="-1.27" y2="0" width="0.254" layer="94"/>
<wire x1="0" y1="0" x2="0" y2="-2.54" width="0.1524" layer="94"/>
<wire x1="-2.032" y1="-0.762" x2="-3.429" y2="-2.159" width="0.1524" layer="94"/>
<wire x1="-1.905" y1="-1.905" x2="-3.302" y2="-3.302" width="0.1524" layer="94"/>
<text x="3.556" y="-4.572" size="1.778" layer="95" rot="R90">&gt;NAME</text>
<text x="5.715" y="-4.572" size="1.778" layer="96" rot="R90">&gt;VALUE</text>
<pin name="A" x="0" y="2.54" visible="off" length="short" direction="pas" rot="R270"/>
<pin name="C" x="0" y="-5.08" visible="off" length="short" direction="pas" rot="R90"/>
<polygon width="0.1524" layer="94">
<vertex x="-3.429" y="-2.159"/>
<vertex x="-3.048" y="-1.27"/>
<vertex x="-2.54" y="-1.778"/>
</polygon>
<polygon width="0.1524" layer="94">
<vertex x="-3.302" y="-3.302"/>
<vertex x="-2.921" y="-2.413"/>
<vertex x="-2.413" y="-2.921"/>
</polygon>
</symbol>
<symbol name="SIMPLE_HOLE">
<circle x="0" y="0" radius="2.54" width="0.254" layer="94"/>
<pin name="P$1" x="-5.08" y="0" visible="off" length="short"/>
<text x="-2.54" y="-4.318" size="1.27" layer="94">&gt;NAME</text>
</symbol>
<symbol name="SIMPLE_HOLE_SM">
<circle x="0" y="0" radius="1.481059375" width="0.254" layer="94"/>
<pin name="P$1" x="-2.54" y="0" visible="off" length="point"/>
<wire x1="-2.54" y1="0" x2="-1.524" y2="0" width="0.254" layer="94"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="BUTTONHOLE" prefix="BH">
<gates>
<gate name="G$1" symbol="BUTTONHOLE" x="3.81" y="0"/>
</gates>
<devices>
<device name="LARGE" package="BUTTONHOLE">
<connects>
<connect gate="G$1" pin="P$1" pad="P$1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="SMALL" package="BUTTONHOLE-SM">
<connects>
<connect gate="G$1" pin="P$1" pad="P$3"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="SEWTAP-NOHOLE">
<gates>
<gate name="G$1" symbol="SEWTAP-NOHOLE" x="0" y="0"/>
</gates>
<devices>
<device name="1" package="PETAL-NOHOLE">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="2" package="PETAL-NOHOLE-2SIDE">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="3" package="PETAL-MEDIUM-2SIDE-NOHOLE">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="4" package="PETAL-MEDIUM-NOHOLE">
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="LED" prefix="LED" uservalue="yes">
<description>&lt;b&gt;LEDs&lt;/b&gt;
Standard schematic elements and footprints for 5mm, 3mm, 1206, and 0603 sized LEDs. 5mm - Spark Fun Electronics SKU : Comp-SBL</description>
<gates>
<gate name="G$1" symbol="LED" x="0" y="0"/>
</gates>
<devices>
<device name="1206" package="LED-1206">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="LOGO-LP">
<gates>
<gate name="G$1" symbol="LOGO-LP" x="0" y="0"/>
</gates>
<devices>
<device name="LP" package="LOGO-LILYPAD">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="LPA" package="LOGO-LPA">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="L" package="LOGO-L">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="L-TINY" package="LOGO-L-TINY">
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="ARDUINO_ONLY" package="LOGO-A">
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="SEWTAP">
<gates>
<gate name="G$1" symbol="SEWTAP" x="2.54" y="0"/>
</gates>
<devices>
<device name="1" package="PETAL-LONG-1">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="2" package="PETAL-LONG-2">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="3" package="PETAL-MEDIUM">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="5" package="PETAL-LARGE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="4" package="PETAL-SMALL">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="6" package="PETAL-SMALL-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="7" package="PETAL-LARGE-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="8" package="PETAL-MEDIUM-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="9" package="PETAL-LONG-1-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="10" package="PETAL-LONG-2-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="11" package="PETAL-TINY">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="SEW_HOLE" prefix="H">
<description>Simple sew-hole&lt;br&gt;
.1" diameter hole with 20mil annular ring</description>
<gates>
<gate name="G$1" symbol="SIMPLE_HOLE" x="0" y="0"/>
</gates>
<devices>
<device name="" package="SIMPLE_HOLE">
<connects>
<connect gate="G$1" pin="P$1" pad="P$1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="SEW_HOLE-SMALL" prefix="H">
<description>.070" hole with 20mil annular ring</description>
<gates>
<gate name="G$1" symbol="SIMPLE_HOLE_SM" x="0" y="0"/>
</gates>
<devices>
<device name="" package="SIMPLE_HOLE_SM">
<connects>
<connect gate="G$1" pin="P$1" pad="P$1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</drawing>
</eagle>

Added Hardware/Board/Firenet/SparkFun-Eagle-Libraries-master/README.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
SparkFun Electronics' preferred foot prints using Eagle v6.0 or greater. We've spent an enormous amount of time creating and checking these footprints and parts. If you enjoy using this library, please buy one of our products at http://www.sparkfun.com. Please also note that we guarantee that there are some messed up footprints in this library. We've tried to note which are proven and tested, but by downloading these files, you acknowledge that you are using the files at your own risk. We cannot be held responsible for faulty PCBs. Always check your parts against a 1:1 printout.

Licensing CC v3.0 Share-Alike (http://creativecommons.org/licenses/by-sa/3.0/) You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.

This is the complete SparkFun Electronics default foot prints for Eagle 6.0+. We switched to Eagle back in 2006 and have been extremely impressed with its ease of use and flexibility. As with any new software, it's like learning a new language and takes time. Do it. Eagle is great. If you need more information about how to use Eagle, checkout our Eagle Tutorials http://www.sparkfun.com/tutorials/108

The library associated with Eagle v5.11 and earlier is found here:
https://github.com/sparkfun/Old-SparkFun-Eagle-Library

Added Hardware/Board/Firenet/SparkFun-Eagle-Libraries-master/SparkFun-Aesthetics.lbr.

more than 10,000 changes

Added Hardware/Board/Firenet/SparkFun-Eagle-Libraries-master/SparkFun-AnalogIC.lbr.





























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.5.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1"