USBHost e libreria Mouse

Ricevo parecchi errori di compilazioni quando cerco di utilizzare MouseController e la libreria mouse.h di arduino indipendentemente dal codice scritto. Ho un arduino Zero e utilizzo la porta nativa come Host Usb.

Sembrerebbe un conflitto tra le due librerie, qualche aiuto< Vi ringrazio!

In file included from C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h:23:0,
from C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/MouseController.h:22,
from C:\Users\io\AppData\Local\Temp.arduinoIDE-unsaved2024412-11364-ref4zq.t12j\sketch_may12b\sketch_may12b.ino:18:
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hid.h:140:21: error: 'HID' is not a type
virtual void Parse(HID *hid, uint32_t is_rpt_id, uint32_t len, uint8_t buf)= 0;
^~~
In file included from C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/MouseController.h:22:0,
from C:\Users\io\AppData\Local\Temp.arduinoIDE-unsaved2024412-11364-ref4zq.t12j\sketch_may12b\sketch_may12b.ino:18:
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h:67:21: error: 'HID' is not a type
virtual void Parse(HID hid, uint32_t is_rpt_id, uint32_t len, uint8_t buf);
^~~
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h:155:21: error: 'HID' is not a type
virtual void Parse(HID hid, uint32_t is_rpt_id, uint32_t len, uint8_t buf);
^~~
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h:158:36: error: 'HID' is not a type
virtual uint8_t HandleLockingKeys(HID
hid, uint8_t key);
^~~
In file included from C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/MouseController.h:22:0,
from C:\Users\io\AppData\Local\Temp.arduinoIDE-unsaved2024412-11364-ref4zq.t12j\sketch_may12b\sketch_may12b.ino:18:
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h: In instantiation of 'uint32_t HIDBoot<BOOT_PROTOCOL>::Poll() [with unsigned char BOOT_PROTOCOL = 2; uint32_t = long unsigned int]':
C:\Users\io\AppData\Local\Temp.arduinoIDE-unsaved2024412-11364-ref4zq.t12j\sketch_may12b\sketch_may12b.ino:93:1: required from here
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h:582:41: error: no matching function for call to 'HIDReportParser::Parse(HID
, int, uint8_t, uint8_t [16])'
pRptParser[i]->Parse((HID
)this, 0, (uint8_t)read, buf);
^~~~~~~~~~
In file included from C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hidboot.h:23:0,
from C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/MouseController.h:22,
from C:\Users\io\AppData\Local\Temp.arduinoIDE-unsaved2024412-11364-ref4zq.t12j\sketch_may12b\sketch_may12b.ino:18:
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hid.h:140:15: note: candidate: virtual void HIDReportParser::Parse(int
, uint32_t, uint32_t, uint8_t
)
virtual void Parse(HID hid, uint32_t is_rpt_id, uint32_t len, uint8_t buf)= 0;
^~~~~
C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost\src/hid.h:140:15: note: no known conversion for argument 1 from 'HID
' to 'int
'
Multiple libraries were found for "Mouse.h"
Used: C:\Users\io\Documents\Arduino\libraries\Mouse
Not used: C:\Users\io\AppData\Local\Arduino15\libraries\Mouse
Multiple libraries were found for "MouseController.h"
Used: C:\Users\io\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.14\libraries\USBHost
Not used: C:\Users\io\Documents\Arduino\libraries\USBHost
exit status 1

Compilation error: exit status 1

Buonasera e benvenuto nella sezione Italiana del forum,

cortesemente, come prima cosa, leggi attentamente il REGOLAMENTO di detta sezione, (... e, per evitare future possibili discussioni/incomprensioni, prestando molta attenzione al punto 15), dopo di che, come da suddetto regolamento (punto 16.7), fai la tua presentazione NELL'APPOSITA DISCUSSIONE spiegando bene quali esperienze hai in elettronica e programmazione, affinché noi possiamo conoscere la tua esperienza ed esprimerci con termini adeguati.

Grazie,

Guglielmo

P.S.: Ti ricordo che, purtroppo, fino a quando non sarà fatta la presentazione nell’apposita discussione, nel rispetto del succitato regolamento nessuno ti risponderà (eventuali risposte o tuoi ulteriori post, verrebbero temporaneamente nascosti), quindi ti consiglio di farla al più presto. :wink: