1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Linq ;
4+ using SharpBrick . PoweredUp . Protocol ;
5+ using SharpBrick . PoweredUp . Utils ;
6+
7+ namespace SharpBrick . PoweredUp
8+ {
9+ public class TechnicLargeAngularMotorGrey : AbsoluteMotor , IPoweredUpDevice
10+ {
11+ public TechnicLargeAngularMotorGrey ( )
12+ : base ( )
13+ { }
14+ public TechnicLargeAngularMotorGrey ( ILegoWirelessProtocol protocol , byte hubId , byte portId )
15+ : base ( protocol , hubId , portId )
16+ { }
17+
18+ public IEnumerable < byte [ ] > GetStaticPortInfoMessages ( Version softwareVersion , Version hardwareVersion , SystemType systemType )
19+ => @"
20+ 0B-00-43-00-01-0F-06-0E-00-0F-00
21+ 07-00-43-00-02-0E-00
22+ 11-00-44-00-00-00-50-4F-57-45-52-00-00-00-00-00-00
23+ 0E-00-44-00-00-01-00-00-C8-C2-00-00-C8-42
24+ 0E-00-44-00-00-02-00-00-C8-C2-00-00-C8-42
25+ 0E-00-44-00-00-03-00-00-C8-C2-00-00-C8-42
26+ 0A-00-44-00-00-04-50-43-54-00
27+ 08-00-44-00-00-05-00-50
28+ 0A-00-44-00-00-80-01-00-04-00
29+ 11-00-44-00-01-00-53-50-45-45-44-00-00-00-00-00-00
30+ 0E-00-44-00-01-01-00-00-C8-C2-00-00-C8-42
31+ 0E-00-44-00-01-02-00-00-C8-C2-00-00-C8-42
32+ 0E-00-44-00-01-03-00-00-C8-C2-00-00-C8-42
33+ 0A-00-44-00-01-04-50-43-54-00
34+ 08-00-44-00-01-05-30-70
35+ 0A-00-44-00-01-80-01-00-04-00
36+ 11-00-44-00-02-00-50-4F-53-00-00-00-00-00-00-00-00
37+ 0E-00-44-00-02-01-00-00-B4-C3-00-00-B4-43
38+ 0E-00-44-00-02-02-00-00-C8-C2-00-00-C8-42
39+ 0E-00-44-00-02-03-00-00-B4-C3-00-00-B4-43
40+ 0A-00-44-00-02-04-44-45-47-00
41+ 08-00-44-00-02-05-28-68
42+ 0A-00-44-00-02-80-01-02-0B-00
43+ 11-00-44-00-03-00-41-50-4F-53-00-00-00-00-00-00-00
44+ 0E-00-44-00-03-01-00-00-34-C3-00-00-33-43
45+ 0E-00-44-00-03-02-00-00-48-C3-00-00-48-43
46+ 0E-00-44-00-03-03-00-00-34-C3-00-00-33-43
47+ 0A-00-44-00-03-04-44-45-47-00
48+ 08-00-44-00-03-05-32-72
49+ 0A-00-44-00-03-80-01-01-03-00
50+ 11-00-44-00-04-00-43-41-4C-49-42-00-00-00-00-00-00
51+ 0E-00-44-00-04-01-00-00-00-00-00-00-61-45
52+ 0E-00-44-00-04-02-00-00-00-00-00-00-C8-42
53+ 0E-00-44-00-04-03-00-00-00-00-00-00-61-45
54+ 0A-00-44-00-04-04-43-41-4C-00
55+ 08-00-44-00-04-05-00-00
56+ 0A-00-44-00-04-80-02-01-05-00
57+ 11-00-44-00-05-00-53-54-41-54-53-00-00-00-00-00-00
58+ 0E-00-44-00-05-01-00-00-00-00-00-FF-7F-47
59+ 0E-00-44-00-05-02-00-00-00-00-00-00-C8-42
60+ 0E-00-44-00-05-03-00-00-00-00-00-FF-7F-47
61+ 0A-00-44-00-05-04-4D-49-4E-00
62+ 08-00-44-00-05-05-00-00
63+ 0A-00-44-00-05-80-0E-01-05-00
64+ " . Trim ( ) . Split ( "\n " ) . Select ( s => BytesStringUtil . StringToData ( s ) ) ;
65+ }
66+ }
0 commit comments