GPIO checked for Raspberry Pi 5B

This commit is contained in:
2024-12-03 15:22:44 +07:00
parent f2d560049f
commit ea891d2744
3 changed files with 13 additions and 1 deletions

View File

@@ -24,12 +24,14 @@ public class PanTiltController {
if (comports.length>0){
for (SerialPort port : comports){
Logger.info("Available Serial Port : {}", port.getSystemPortName());
if (port.getSystemPortName().equals(portname)){
if (portname.contains(port.getSystemPortName())){
Logger.info("Serial Port {} found", portname);
serialPort = port;
break;
}
}
if (serialPort!=null){
serialPort.setBaudRate(baudrate);