Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinichiro Oba committed Jun 29, 2019
1 parent 7960bfc commit c3f11c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Sources/BoostBLEKit/Hub/Boost.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ public final class Boost {
0x3a: .tiltSensor,
0x3b: .currentSensor,
0x3c: .voltageSensor,
]
]

public let portMap: [Port: PortId] = [
.A: 0x37,
.B: 0x38,
.C: 0x01,
.D: 0x02,
.AB: 0x39,
]
]

public func canSupportAsMotor(ioType: IOType) -> Bool {
switch ioType {
Expand Down
4 changes: 2 additions & 2 deletions Sources/BoostBLEKit/Hub/Duplo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public final class Duplo {
0x12: .trainBaseColorSensor,
0x13: .trainBaseSpeedometer,
0x14: .voltageSensor,
]
]

public let portMap: [Port: PortId] = [
.A: 0x00,
]
]

public func canSupportAsMotor(ioType: IOType) -> Bool {
switch ioType {
Expand Down
4 changes: 2 additions & 2 deletions Sources/BoostBLEKit/Hub/PoweredUp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public final class PoweredUp {
0x32: .rgbLight,
0x3b: .currentSensor,
0x3c: .voltageSensor,
]
]

public let portMap: [Port: PortId] = [
.A: 0x00,
.B: 0x01,
.AB: 0x39,
]
]

public func canSupportAsMotor(ioType: IOType) -> Bool {
switch ioType {
Expand Down

0 comments on commit c3f11c4

Please sign in to comment.