Git Product home page Git Product logo

Comments (1)

fischmat avatar fischmat commented on September 25, 2024

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:

  • Install the MSI Center (the link on that page doesn't work - you need to search for it in the Microsoft Store)
  • Within this "awesome" app, install Mysic Light
  • Start your IDE as administor (such that your runs have admin privileges)
  • Make sure that you placed the DLLs in the right locations. The argument to MysticLightAPI#initialize(Path) should point to the project root.

image

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.

from mysticlight4j.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.