Giter Club home page Giter Club logo

vusb-for-arduino's Introduction

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

vusb-for-arduino's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

r00kie

vusb-for-arduino's Issues

Error compiling v005 on Linux

What steps will reproduce the problem?
1. Create a new sketch
2. Include UsbKeyboard.h
3. Try co compile

What is the expected output? What do you see instead?

In file included from 
/usr/share/arduino/libraries/UsbKeyboard/UsbKeyboard.h:13:0,
                 from sketch_nov16a.ino:1:
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:479:26: error: variable 
‘usbDescriptorDevice’ must be const in order to be put into read-only 
section by means of ‘__attribute__((progmem))’
 char usbDescriptorDevice[];
                          ^
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:485:33: error: variable 
‘usbDescriptorConfiguration’ must be const in order to be put into 
read-only section by means of ‘__attribute__((progmem))’
 char usbDescriptorConfiguration[];
                                 ^
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:491:29: error: variable 
‘usbDescriptorHidReport’ must be const in order to be put into read-only 
section by means of ‘__attribute__((progmem))’
 char usbDescriptorHidReport[];
                             ^
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:497:27: error: variable 
‘usbDescriptorString0’ must be const in order to be put into read-only 
section by means of ‘__attribute__((progmem))’
 char usbDescriptorString0[];
                           ^
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:503:31: error: variable 
‘usbDescriptorStringVendor’ must be const in order to be put into read-only 
section by means of ‘__attribute__((progmem))’
 int usbDescriptorStringVendor[];
                               ^
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:509:31: error: variable 
‘usbDescriptorStringDevice’ must be const in order to be put into read-only 
section by means of ‘__attribute__((progmem))’
 int usbDescriptorStringDevice[];
                               ^
/usr/share/arduino/libraries/UsbKeyboard/usbdrv.h:515:37: error: variable 
‘usbDescriptorStringSerialNumber’ must be const in order to be put into 
read-only section by means of ‘__attribute__((progmem))’
 int usbDescriptorStringSerialNumber[];
                                     ^
In file included from sketch_nov16a.ino:1:0:
/usr/share/arduino/libraries/UsbKeyboard/UsbKeyboard.h:36:39: error: variable 
‘usbDescriptorHidReport’ must be const in order to be put into read-only 
section by means of ‘__attribute__((progmem))’
 PROGMEM char usbHidReportDescriptor[35] = { /* USB report descriptor */

What version of the product are you using? On what operating system?

# Debian Linux (amd64 architecture)
# Packages:
avr-libc 1:1.8.0-4
avrdude 6.0.1-1
binutils-avr 2.23.1-2
gcc-avr 1:4.8-2
arduino 1:1.0.5+dfsg2-1
arduino-core 1:1.0.5+dfsg2-1

Original issue reported on code.google.com by [email protected] on 16 Nov 2013 at 3:53

USBKeyboard error using Arduino IDE 1.6.7

Trying to compile practicalarduino/VirtualUsbKeyboard, i got these errors:

Arduino: 1.6.7 (Linux), Board: "Arduino/Genuino Uno"

/home/diesis/local/bin/arduino-1.6.7/arduino-builder -dump-prefs -logger=machine -hardware "/home/diesis/local/bin/arduino-1.6.7/hardware" -tools "/home/diesis/local/bin/arduino-1.6.7/tools-builder" -tools "/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr" -built-in-libraries "/home/diesis/local/bin/arduino-1.6.7/libraries" -libraries "/home/diesis/Arduino/libraries" -fqbn=arduino:avr:uno -ide-version=10607 -build-path "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/home/diesis/Desktop/usb-keyboard/VirtualUsbKeyboard/VirtualUsbKeyboard.pde"
/home/diesis/local/bin/arduino-1.6.7/arduino-builder -compile -logger=machine -hardware "/home/diesis/local/bin/arduino-1.6.7/hardware" -tools "/home/diesis/local/bin/arduino-1.6.7/tools-builder" -tools "/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr" -built-in-libraries "/home/diesis/local/bin/arduino-1.6.7/libraries" -libraries "/home/diesis/Arduino/libraries" -fqbn=arduino:avr:uno -ide-version=10607 -build-path "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/home/diesis/Desktop/usb-keyboard/VirtualUsbKeyboard/VirtualUsbKeyboard.pde"
WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/sketch/VirtualUsbKeyboard.pde.cpp" -o "/dev/null"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/sketch/VirtualUsbKeyboard.pde.cpp" -o "/dev/null"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/home/diesis/Arduino/libraries/UsbKeyboard/oddebug.c" -o "/dev/null"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.c" -o "/dev/null"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/home/diesis/Arduino/libraries/UsbKeyboard/usbdrvasm.S" -o "/dev/null"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/sketch/VirtualUsbKeyboard.pde.cpp" -o "/dev/null"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/sketch/VirtualUsbKeyboard.pde.cpp" -o "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/diesis/local/bin/arduino-1.6.7/tools-builder/ctags/5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/diesis/local/bin/arduino-1.6.7/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/cores/arduino" "-I/home/diesis/local/bin/arduino-1.6.7/hardware/arduino/avr/variants/standard" "-I/home/diesis/Arduino/libraries/UsbKeyboard" "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/sketch/VirtualUsbKeyboard.pde.cpp" -o "/tmp/build5bfb8bad8516cb7ea061ff8c9f0d290f.tmp/sketch/VirtualUsbKeyboard.pde.cpp.o"
In file included from /home/diesis/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:13:0,
                 from /home/diesis/Desktop/usb-keyboard/VirtualUsbKeyboard/VirtualUsbKeyboard.pde:23:
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:479:26: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 char usbDescriptorDevice[];
                          ^
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:485:33: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 char usbDescriptorConfiguration[];
                                 ^
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:491:29: error: variable 'usbDescriptorHidReport' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 char usbDescriptorHidReport[];
                             ^
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:497:27: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 char usbDescriptorString0[];
                           ^
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:503:31: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 int usbDescriptorStringVendor[];
                               ^
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:509:31: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 int usbDescriptorStringDevice[];
                               ^
/home/diesis/Arduino/libraries/UsbKeyboard/usbdrv.h:515:37: error: variable 'usbDescriptorStringSerialNumber' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 int usbDescriptorStringSerialNumber[];
                                     ^
In file included from /home/diesis/Desktop/usb-keyboard/VirtualUsbKeyboard/VirtualUsbKeyboard.pde:23:0:
/home/diesis/Arduino/libraries/UsbKeyboard/UsbKeyboard.h:36:39: error: variable 'usbDescriptorHidReport' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 PROGMEM char usbHidReportDescriptor[35] = { /* USB report descriptor */
                                       ^
Using library UsbKeyboard in folder: /home/diesis/Arduino/libraries/UsbKeyboard (legacy)
exit status 1
Error compiling.

VUSB for Arduino 2560?

I'm trying to get this code working on an Arduino Mega 2560 without luck. Using 
Arduino 22.

I've tried:
Compiling for the 168, then uploading to the 2560
Compiling for the 2560, uploading as usual

Do you guys know of any hardware differences between the 168 and 2560 that 
would make this code not work?

thanks!

Original issue reported on code.google.com by [email protected] on 25 May 2011 at 5:30

it doesn't work with arduino

What steps will reproduce the problem?
1.load a sketch 
2. flash it
3. should work.. It doesn't. tried everything.



What version of the product are you using? On what operating system?
win xp, linux

Please provide any additional information below.

loaded a simple sketch for a virtual keyboard, downloaded the libraries, put 
them on the library folder, tried arduino 022. 1.0.3  1.0.5.

On my main computer it works on the hub ports. not on the others.. it shows 
device not recognized..

On my laptop, device not recognized on all usb ports..
don't know what else to do. Tried everything.. with bootloader, without 
bootloader, compiled for an arduino with atmega168 and flashed the 328 with it..

Original issue reported on code.google.com by [email protected] on 11 Nov 2013 at 8:14

pb

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Oct 2013 at 1:54

code.rancidbacon.com is down

Can you please upload the required schematic that used to be on 
http://code.rancidbacon.com/ProjectLogArduinoUSB ? Thanks.

I found no other way to contact you. Delete this issue to keep the project 
clean!

Original issue reported on code.google.com by [email protected] on 26 Dec 2010 at 6:42

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.