mrdavidjwatts / USB-Volume-Control

USB HID Volume Control for PCs and Macs
16 stars 3 forks source link

Consumer was not declared in this scope #2

Open LuisDiazUgena opened 9 years ago

LuisDiazUgena commented 9 years ago

Hi!

I've been working on the code, make it easier to other users to read it. Also, i've added long click support, but when trying to verify the code, arduino says "Consumer was not declared in this scope".

I've tried to with Micro and Leonardo. Is there any library for Consumer objects? What am I missing?

Cheers!

mrdavidjwatts commented 9 years ago

Hi,

I didn't specifically state it on Github, just in the youtube video I made about it. I use the NicoHood HID library and core, it avoids the need to write your own consumer USB HID descriptor. I have added a link and description into the readme.

LuisDiazUgena commented 9 years ago

Great! It was driving me mad!

LuisDiazUgena commented 9 years ago

Hi! I've downloaded HID library, but it still says that consumer was not declared. I don't know what to do, but I think that I'm going to switch to pjrc keyboard library.

mrdavidjwatts commented 9 years ago

Did you install the hardware folder? You will need to select the Hoodloader board type within the IDE in order for it to be able to use the consumer USB HID descriptor.

mrdavidjwatts commented 9 years ago

Instructions for setup should be on the Wiki page, I was up and running in a few minutes after selecting the right board from the boards menu. You can even install the boards from the boards manager.

LuisDiazUgena commented 9 years ago

I've not been able to use it. I have not been able to install HID core, so I will try in a couple of days.

Thanks anyway :D