|
5 | 5 | import com.qualcomm.robotcore.eventloop.opmode.TeleOp; |
6 | 6 | import com.qualcomm.robotcore.hardware.DcMotor; |
7 | 7 | import com.qualcomm.robotcore.hardware.DcMotorEx; |
8 | | -import com.qualcomm.robotcore.hardware.LED; |
9 | 8 | import com.qualcomm.robotcore.hardware.Servo; |
10 | 9 | import com.seattlesolvers.solverslib.drivebase.MecanumDrive; |
11 | 10 | import com.seattlesolvers.solverslib.hardware.RevIMU; |
12 | 11 |
|
| 12 | +import org.firstinspires.ftc.teamcode.GoBildaPrismDriver; |
13 | 13 | import org.mrpsvt.capital_robotics.control.ControlMap; |
14 | 14 | import org.mrpsvt.capital_robotics.robot_core.DriveBase; |
15 | 15 | import org.mrpsvt.capital_robotics.robot_core.DriveConstants; |
@@ -41,7 +41,7 @@ public class lights extends OpMode { |
41 | 41 | private static final byte PCA9685_LED2_ON_L = 0x0E; // CH2 base |
42 | 42 | private static final int PCA9685_MAX_PWM = 4095; |
43 | 43 |
|
44 | | - private LED ledDriver; |
| 44 | + private GoBildaPrismDriver ledDriver; |
45 | 45 | private boolean ledsEnabled = true; |
46 | 46 | private boolean lastButtonB = false; // debounce for LED toggle (gp2 B) |
47 | 47 | private boolean lastButtonX = false; // debounce for color cycle (gp2 X) |
@@ -103,7 +103,7 @@ public void init() { |
103 | 103 | // --- LED Driver --- |
104 | 104 | // In your robot configuration, add an "I2C Device (Synch)" named "prism_led" |
105 | 105 | // on the I²C bus connected to the GoBilda Prism driver (default address 0x40). |
106 | | - ledDriver = hardwareMap.get(LED.class, "prism_led"); |
| 106 | + ledDriver = hardwareMap.get(GoBildaPrismDriver.class, "prism_led"); |
107 | 107 | initPCA9685(); |
108 | 108 | setLedColor(0, 255, 0); // Start green (idle) |
109 | 109 |
|
|
0 commit comments