red33mer
2008-10-29 23:25:39
Hey guys,
I have a button that is my trigger, and a LED next to the button i want to flash as long as the button is pressed again.
LED ON is achieved via Note On, Value 01
LED OFF is achieved via Note Off, Value 00
My Pseudo Code is as follows:
How can i do that with the timerfeature?
How do i implement the LED OFF ?
Thanks for helping a N00B
Alex
I have a button that is my trigger, and a LED next to the button i want to flash as long as the button is pressed again.
LED ON is achieved via Note On, Value 01
LED OFF is achieved via Note Off, Value 00
My Pseudo Code is as follows:
Code: Select all
Press Button: 90 22 01
LED ON: 90 4F 01, duration 500ms
LED OFF: 80 4F 00, duration 500ms
LED ON: 90 4F 01, duration 500ms
LED OFF: 80 4F 00, duratio 500ms
.
repeat that indefinetely till button is pressed again.
Code: Select all
Translator 90 22 01 -> "LED Timer", 500ms, indefinetely
Translator "LED Timer" -> 90 4F 01
???
Thanks for helping a N00B
Alex