Page 1 of 1

Help needed. Pushbutton, led, send and receive strings

Posted: Sat Jan 12, 2013 9:44 pm
by mano1979
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...