Embedded System/Arduino

[error] arduino leonardo WebUSB

전두선 2020. 7. 2. 17:03

Windows 10에서 동작확인.

Problem

WebUSB Lib를 사용하는데에 있어서 결과적으로 웹에서 아두이노 레오나르도를 인식해야되는데 인식자체를 하지 못함. (아두이노 IDE상에서는 레오나르도를 인식하는데 전혀 문제없음.)

 

Solution

  • {arduino 설치경로}/hardware/arduino/avr/cores/arduino/USBCore.h 파일의 #define USB_VERSION 0x200를 0x210 로 수정
  • https://github.com/webusb/arduino 이 repo의 WebUSB폴더를 아두이노 라이브러리에 copy
 

webusb/arduino

WebUSB demos running on Arduino (and compatible) hardware. - webusb/arduino

github.com

위 과정을 통해서 해결이 안된다면 아래 과정까지 추가 진행

  • Go into Device Manager
  • Find your "Arduino Leonardo" located at "Universial Serial Bus devices"
  • Right click on it
  • Choose: Uninstall device
  • Disconnect the device from your computer
  • Connect it again to your computer

 

 

'Embedded System > Arduino' 카테고리의 다른 글

[Arduino] multiple VL53L1x  (1) 2020.07.07