gloob / vusb-for-arduino Goto Github PK
View Code? Open in Web Editor NEWV-usb for Arduino with latest versions - Based on old project code.google.com/p/vusb-for-arduino
V-usb for Arduino with latest versions - Based on old project code.google.com/p/vusb-for-arduino
Arduino / AVRUSB integration ---------------------------- * NOTE: This should now work with Arduino IDE 0018 onward but I've only tested with 0020. * Source now available as a Mercurial repository here: <http://code.google.com/p/vusb-for-arduino/> * Build the USB mini-shield documented here: NOTE: The code will NOW ONLY WORK WITH THE PCB DESIGN *NOT* THE PROTOBOARD DESIGN. <http://code.rancidbacon.com/ProjectLogArduinoUSB> * Copy 'UsbKeyboard' directory in the 'libraries' directory to your Arduino 'hardware/libraries' directory. * Open an example sketch from 'examples' directory. * See 'libraries/UsbKeyboard/ArduinoNotes.txt' for more. * I've had some USB ports on a MacBook Pro not work while others do. * Consider GPL 2.0 unless licensed otherwise. * Feedback to: [email protected] Version history: * 2008-08-12 -- "Muck and Crud" -- Initial alpha release * 2009-10-16 -- "Not a Patch On" -- Incorporate previous changes & pcb design * 2009-10-18 -- "All Your Upgrade" -- Upgrade base V-USB version to 2009-08-22 * 2010-10-17 -- "Year, So What" -- Update to work with recent IDEs
Does it work with arduino redboard?
Hi,
Just discovering this library, and saw that the begin() methods disable TIMER 0 overflow interrupt. I guess that millis() function won't work after that, but my code needs it.
My question is : is it really necessary, as the TIMER 0 has lower priority than INT0 ? If so, do you know how I can find an alternative to millis() ?
So far I've tried to recreate keywords.txt and library.properties from scratch, but to no avail.
Renaming "libraries" to "src", as in another libraries examples, also didn't work.
The IDE itself spews nonsense, like "Invalid library found in C:\Users<user>\Documents\Arduino\libraries\vusb-for-arduino: C:\Users<user>\Documents\Arduino\libraries\vusb-for-arduino\src".
But even without my changes, it spells the same "invalid library" error.
About line #138 in UsbKeyboard.h
PORTD = 0; // TODO: Only for USB pins?
DDRD |= ~USBMASK;
Replace it to take the port name from the usbconfig.h with this lines
USBOUT = 0; // TODO: Only for USB pins?
USBDDR |= ~USBMASK;
But not sure about it, not tested yet.
i just wanted to ask if its possible to read numlock and capslock state (or set them) with the library. If yes can you add it to the keyboard example? and if no, take this as a feature request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.