Help needed. Pushbutton, led, send and receive strings

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
mano1979
Posts: 1
Joined: Sat Jan 12, 2013 9:35 pm

Help needed. Pushbutton, led, send and receive strings

Post by mano1979 » Sat Jan 12, 2013 9:44 pm

I need some help coding with v-usb.

I'm using a attiny85. Examples work great!

There is one package i found that is called usb_tiny85.
It can send and receive strings to and from the attiny over usb. A host program is included to communicate.
I can turn the led on and off by sending a command from the pc. This is good!
Now i want to include a pushbutton that will turn the led on, and when i push it again, it needs to send a command to the pc. Then the pc will send a command back to the (usb)tiny85 to turn the led off.

I am only used to programming in the arduino ide. This is a bit over my head...

Post Reply