Show Posts
|
|
Pages: 1 ... 25 26 [27]
|
|
393
|
Using Arduino / Project Guidance / Re: Keyboard emulator
|
on: March 24, 2011, 12:11:11 am
|
|
Hi Henry,
if you add the following LUFA_OPTS to your make file you can save 196 bytes: -D NO_DEVICE_SELF_POWER -D NO_DEVICE_REMOTE_WAKEUP -D NO_INTERNAL_SERIAL
I did search through the LUFA source to see if there were any obvious ways to reduce the code size but I didn't have much luck. All of the unused code is automatically stripped out so what is left is just the essentials.
Hope that helps.
Cheers, Darran.
|
|
|
|
|
395
|
Using Arduino / Project Guidance / Re: Keyboard emulator
|
on: March 23, 2011, 01:02:53 am
|
If you have an UNO or a new Mega2560 then you can reprogram the atmega8u2 on it to be a USB Keyboard HID device. This makes the Arduino appear to be a keyboard. I've put details, source, firmware hex files, and a demo "hello world" sketch here: http://hunt.net.nz/users/darran/Note that you can't upload sketches while its running the keyboard firmware, you have to flash back the Arduino-usbserial.hex firmware whenever you want to change the sketch. Cheers, Darran.
|
|
|
|
|
399
|
Using Arduino / Microcontrollers / Re: How to build UNO-dfu_and_usbserial_combined.hex?
|
on: March 19, 2011, 06:40:44 am
|
|
Never mind - I've realised that my main problem is that the keyboard HID firmware is bigger than 4K (its currently 4322 bytes), which is why dfu-programmer complains that "Bootloader and code overlap" when I try to flash it to the atmega8u2. I'll have to try and find some code to throw out of LUFA to reduce the size.
Cheers, Darran.
|
|
|
|
|
400
|
Using Arduino / Microcontrollers / How to build UNO-dfu_and_usbserial_combined.hex?
|
on: March 19, 2011, 04:09:55 am
|
|
Does anyone know how to build the UNO-dfu_and_usbserial_combined.hex file from arduino-usbdfu and arduino-usbserial? The readme says these are build from the hex files somehow but doesn't specify how.
I've built a keyboard HID driver for the atmega8u2 on the UNO and I want to try it out, but I can't figure out how to combine it with the arduino-usbdfu hex.
Cheers, Darran.
|
|
|
|
|