Open ghost opened 2 years ago
Hi @foxfen64 ,
sorry for the late reply. I also had this problem some time ago with the old Dragon Center installed. After I switched to the MSI Center, it works for me without problems so far.
I just tried it again on a fresh system. Here is what I did:
MysticLightAPI#initialize(Path)
should point to the project root.I used this snippet for testing
public class NativeAPIExample {
public static void main(final String[] args) {
final MysticLight4j ml = new MysticLight4j();
final String devicesAndLeds = ml.getAllAvailableDevices().stream()
.map(d -> String.format("%s: \n%s", d.getName(), getLEDList(d)))
.collect(Collectors.joining("\n\n"));
System.out.println(devicesAndLeds);
}
private static String getLEDList(Device dev) {
final List<String> ledNames = dev.getLEDs().stream()
.map(led -> String.format("\t%s", led.getName()))
.collect(Collectors.toList());
return String.join("\n", ledNames);
}
}
I hope this helps at least a little.
Getting the below error after setting up the environment running the below code: