Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photon can function as a HID device #528

Closed
towynlin opened this issue Aug 11, 2015 · 27 comments 路 Fixed by #902

Comments

@towynlin
Copy link
Member

commented Aug 11, 2015

This has been discussed for a long time in the community, and it has been in progress as a low priority story for a long time. Adding this issue mostly as a place for discussion. If you want this, please add a 馃憤 in the comments.

@bprobbins

This comment has been minimized.

Copy link

commented Aug 11, 2015

馃憤

@wgbartley

This comment has been minimized.

Copy link

commented Aug 11, 2015

馃憤 鉂わ笍

@ScruffR

This comment has been minimized.

Copy link
Contributor

commented Aug 11, 2015

馃憤
Especially cool would be the option to have a composite USB HID device (keyboard + mouse + serial + ...)
A model implementation for this would be Teensy, where you can have each combination of HIDs with or without USB serial.

@WebDust21

This comment has been minimized.

Copy link

commented Aug 11, 2015

Oh, great...as if the Windows "serial ballpoint mouse" wasn't a big enough problem, now you can do it on purpose?? I give a thumbs up anyway :-) 馃憤

@technobly

This comment has been minimized.

Copy link
Member

commented Aug 11, 2015

I'm going to add one for @rpiswag on the forums 馃憤

@harrisonhjones

This comment has been minimized.

Copy link
Contributor

commented Oct 6, 2015

馃憤 Would be nice to have a macro like:

HID_SET_TYPE(NONE)
HID_SET_TYPE(HID_MOUSE | HID_KEYBOARD) For mouse and keyboard
HID_SET_TYPE(HID_MOUSE | HID_SERIAL) for mouse and serial
... etc ...

@ScruffR

This comment has been minimized.

Copy link
Contributor

commented Oct 6, 2015

馃憤 馃憤 馃憤 馃憤 馃憤 馃憤 馃憤 for the macro idea

@rfresh737

This comment has been minimized.

Copy link

commented Dec 7, 2015

Mouse.moveTo() absolute positioning would be a very welcome feature.

@hramadan

This comment has been minimized.

Copy link

commented Dec 19, 2015

Ten thumbs up from me! Is it possible to get an ETA for a firmware release? Am sure that I am not the only one hanging out for this feature......

@greg5678

This comment has been minimized.

Copy link

commented Dec 31, 2015

馃憤 馃憤 馃憤 馃憤 馃憤 馃憤 馃憤 for the macro idea! Please!

@jtzemp

This comment has been minimized.

Copy link

commented Dec 31, 2015

Is it possible just to have a small, lightweight shim in the firmware and to have the bulk of the implementation in an external library? I'm still pretty noobish when it comes to firmware-land, but I do have interest in doing some HID-related stuff. I'm mostly just thinking about taking up space on the device for a Mouse and Keyboard library that would only get used in a fraction of the cases where people are using Photons (and Electrons, I suppose since it uses the same MCU).

@ScruffR

This comment has been minimized.

Copy link
Contributor

commented Dec 31, 2015

I'd be happy if it was an extra library too, but AFAIK things like this won't be linked into the BIN if not used anyway.

@hramadan

This comment has been minimized.

Copy link

commented Dec 31, 2015

When enabling multiple USB device types, it would be nice to only enable the ones you want at runtime so that only the devices you are going to use end up in the PC's device list. This allows the USB device types to be selected by the user via config or command.

@m-mcgowan

This comment has been minimized.

Copy link
Contributor

commented Jan 1, 2016

Totally JT. Any significant functionality is best pushed out to a library if the technical constraints allow that. (I did the same with FreeRTOS on the core - a few shims in firmware and the bulk of the freertos code available as a library.)

@bymaximus

This comment has been minimized.

Copy link

commented Jan 25, 2016

Forecast? 馃憤

@naikrovek

This comment has been minimized.

Copy link

commented Feb 12, 2016

馃憤 this would be very handy for me.

@NGenetzky

This comment has been minimized.

Copy link

commented Feb 16, 2016

I think this would be very helpful.

@amcchord

This comment has been minimized.

Copy link

commented Mar 13, 2016

馃憤

@m-mcgowan m-mcgowan added this to the 0.6.x milestone Mar 14, 2016

@holmser

This comment has been minimized.

Copy link

commented Mar 23, 2016

馃憤

@jango-fx

This comment has been minimized.

Copy link

commented Sep 23, 2016

so is this working now?
is there any documentation of it??

@ScruffR

This comment has been minimized.

Copy link
Contributor

commented Sep 23, 2016

Yes it is, but only for the STM32F2 devices Photon/P1/Electron and not for the STM32F1 Core

@jango-fx

This comment has been minimized.

Copy link

commented Sep 23, 2016

and how?

@hramadan

This comment has been minimized.

@jango-fx

This comment has been minimized.

Copy link

commented Sep 23, 2016

all I get is
error: 'Keyboard' was not declared in this scope

anything I'd have to include?

@hramadan

This comment has been minimized.

Copy link

commented Sep 23, 2016

@jango-fx, how are you compiling, with the Web IDE?

#include "application.h"

@ScruffR

This comment has been minimized.

Copy link
Contributor

commented Sep 23, 2016

I guess this discussion should not be lead in the comments section of the issue.
@jango-fx, you can open a new thread at https://community.particle.io or post a reply on the topic linked above.
Or this thread
https://community.particle.io/t/having-trouble-finding-documentation-for-emulating-a-keyboard/22983/19

@jango-fx

This comment has been minimized.

Copy link

commented Sep 23, 2016

hm, didn't find that thread during my research... switched to the forum. thx so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can鈥檛 perform that action at this time.