v-usb | USB implementation for Atmel 's AVR Microcontrollers | Change Data Capture library
kandi X-RAY | v-usb Summary
kandi X-RAY | v-usb Summary
This repository contains the source code of the driver (in the usbdrv subdirectory), examples (in the examples) subdirectory and other things you might need when you design a device using V-USB. When you check out this repository, the resulting directory is not equivalent to the source code package which can be downloaded at Some files in the source code package are generated by scripts when the package is created. On the other hand, the scripts which generate source files and the package are not contained in the package itself. If you want to know more about the files and directories, see the file Readme.txt in the top level directory.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of v-usb
v-usb Key Features
v-usb Examples and Code Snippets
Community Discussions
Trending Discussions on v-usb
QUESTION
I've just started programming my AtMega8 with using V-USB link: https://www.obdev.at/products/vusb/index.html. I'm trying to make a keyboard witch will be pushing CTRL+ALT. To do this I modified one of the project "HID Keys" link: https://www.obdev.at/products/vusb/hidkeys.html. I added and modified:
...ANSWER
Answered 2020-Nov-15 at 12:18The report descriptor in the sample program defines a 2-byte report to represent a single keystroke. The first byte contains 8 bits each representing a key modifier (left ctrl, right alt, left shift etc) and the next byte is an index representing a key usage (key A, key B, key Delete, etc).
You need to logically OR the desired key modifiers in the first byte. The easiest way is to simply add them together. For example, to send Ctrl+Alt+Delete you could code:
QUESTION
I've been looking for a way to retrofit light sensors to my laptops which lack one.
The best specification I've found so far is in the ACPI 3b spec, section 9.2, that details how such a sensor would be implemented. I assume Linux would also follow the spec.
My first question: is there such a device on the market? A small USB dongle that measures light and provides that to the OS. I already have a Spyder i1 that can do this, but it's overkill and large.
Second question: would it be possible to implement this using Arduino and V-USB? If yes, how would one approach the project?
Is it even possible to do this via USB?
Background: a small USB microcontroller and an LED can function decently as a light sensor by measuring LED capacitance, with no other external parts. This is well documented and also tested by myself.
...ANSWER
Answered 2017-Feb-13 at 08:54if you have a microcontroller with a USB stack already you can use a photoresistor, photodiode and convert the voltage, resistance,current to a digital signal with the ADC of the uC, see http://www.electronics-tutorials.ws/io/io_4.html there are also ICs available (search for 'ambient light sensor ic') if you don not wnat ot use the ADC there are ICs that can be connected to I2C bus etc
normally sensors are implement USB HID class, see http://www.sensorwiki.org/doku.php/tutorials/building_a_usb_sensor_interface
the linux kernel module (driver) for ambient light sensors is acpi-als.ko
or in case of a usb (HID) light sensor hid-sensor-als.ko
http://lxr.free-electrons.com/source/drivers/iio/light/hid-sensor-als.c
( https://github.com/torvalds/linux/blob/master/Documentation/hid/hid-sensor.txt, https://lwn/net/Articles/348576/ ) if you build an own device you have to make it compliant to this driver
there are ready solutions for this (http://www.hughski.com/colorhugals , http://www.yoctopuce.com/EN/products/usb-environmental-sensors/yocto-light-v3 ) but they are really expensive
the windows driver is sensor-hid-class-driver ( https://msdn.microsoft.com/de-de/windows/hardware/drivers/hid/sensor-hid-class-driver).
(https://www.chalk-elec.com/?p=2144 control LCD backlight over HID USB)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install v-usb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page