M5Stack® USB Module USB HOST/HID with MAX3421E SPI Interface Output*5 Input*5 Compatible with M5Stack ESP32 Stackable Kit

M5Stack® USB Module USB HOST/HID with MAX3421E SPI Interface Output*5 Input*5 Compatible with M5Stack ESP32 Stackable Kit
Eachine1
артикул: 1549723
ЗГІДНО З НАШИМИ ДАНИМИ, ЦЕЙ ПРОДУКТ ЗАРАЗ НЕ ДОСТУПНИЙ
$9.99
Доставка з: Китай
   Опис
Description: USB is a USB driver module, integrated MAX3421E which adds USB host or peripheral capability to any system with an SPI interface. Ever up for adding the standard USB features on your project? this M5 moudle is the perfect solution. Series Protocol: SPI Product Features: 1x UAB stadard A port 10x extended GPIO pins extended 3v3, 5v & GND Product Size: 4.2mm x 54.2mm x 12.8mm Product weight: 14.5g Package Included: 1x M5Stack USB Module Application: USB keylogger Read and write U disk using M5Core Related Link: Offical Video Forum Datasheet - MAX3421E EasyLoader click to download EasyLoader #include #include #include #include #include #include "M5Mou se.h" // new objects USB Usb; USBHub Hub(&Usb;); HIDBoot HidMouse(&Usb;); MouseRptParser Pr s; // initialization M5.begin(); Usb.Init(); HidMouse.SetReportParser(0,(HIDReportParser*)⪻ s); // handle event coming from usb device Usb.Task(); if(Usb.getUsbTaskState() == USB_STATE_RUNNING) { M o u se_Pointer(mou_px, mou_py); mou_px = 0; mou_py = 0; /* left button pressed: draw white point */ if (mou_button == 1) M5.Lcd.drawCircle(StaPotX, StaPotY, 1, WHITE); /* right button pressed: draw green point */ if (mou_button == 2) M5.Lcd.drawCircle(StaPotX, StaPotY, 1, GREEN); /* middle button pressed: clear screen */ if (mou_button == 4) M5.Lcd.fillScreen(BLACK); }Copy to clipboardErrorCopied Schematic: Related Video
   Графік зміни ціни & курс обміну валют

Користувачі також переглядали