-->
Page 1 of 1

UDP_Debugger

PostPosted: Sun Apr 24, 2016 7:58 am
by Electroguard
A couple of minor 'rainy day' suggestions for your UDP_debugger utility cicciocb...

Automatically append <BR> to end of 'Message to Send' string when Carraige Return is pressed, so that the message can be sent without needing to click 'Send' (CR's are just ignored at the moment).

Allow window to be resized so that it's possible to view the ends of longer msgs.

Re: UDP_Debugger

PostPosted: Tue Apr 26, 2016 1:32 pm
by cicciocb
I updated the utility.
It's available here :
https://github.com/cicciocb/UDP_tester/ ... e?raw=true

The window can be resized, pressing enter send the message without using the send button.
I also add 3 RGB sliders that permit to send a color code.
Use the following code with a neopixel strip (mine is of 30 leds) :
You'll be impressed of the rapidity of the UDP function.

Let me know.

Code: Select allmemclear
cls
print ramfree()

'this is where the UDP server is defined
udpbegin 5001
udpbranch [udpmessage]

wait


[udpmessage]
i = val(udpread())
'serialprintln i
r = (i >> 16) and 255
g = (i >> 8) and 255
b = (i and 255)
neostripcolor(0,30, r, g, b)
return

Re: UDP_Debugger

PostPosted: Tue Apr 26, 2016 1:47 pm
by Electroguard
Great, ta. I don't have any neo pixies, but I'll try modifying it for the RGB led pins on my dev module.