Quantcast
Channel: 質問!ITmedia 新着質問(Java/253)
Viewing all articles
Browse latest Browse all 2439

USB関係javaライブライリーdownLoad

$
0
0
毎度、お世話になります。 下記の3個のファイルをimportしましたが旨く生きません、eclipse4.4には存在しない様に思います。 Q1) これらのファイルのダウンロード先についてコメント頂ければ大変助かります。 以上、宜しくお願いします。 ====================== import ch.ntb.usb.LibusbJava; import ch.ntb.usb.Usb_Bus; import ch.ntb.usb.Utils; ==================== 下記は、USBを使用するための最初のExsampleです。 http://libusbjava.sourceforge.net/wp/?page_id=6   <--exampleのダウンロード先 /* * Java libusb wrapper * Copyright (c) 2005-2006 Andreas Schläpfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. */ package ch.ntb.usb.demo; import ch.ntb.usb.LibusbJava; import ch.ntb.usb.Usb_Bus; import ch.ntb.usb.Utils; /** * Initalises Libusb and prints the bus(ses) with attached devices to the * standard out.
* * * @author schlaepfer * */ public class LogBus { private static void logBus() { // if you don't use the ch.ntb.usb.Device class you must initialise // Libusb before use LibusbJava.usb_init(); LibusbJava.usb_find_busses(); LibusbJava.usb_find_devices(); // retrieve a object tree representing the bus with its devices and // descriptors Usb_Bus bus = LibusbJava.usb_get_busses(); // log the bus structure to standard out Utils.logBus(bus); } public static void main(String[] args) { logBus(); }

Viewing all articles
Browse latest Browse all 2439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>