User talk:Danf/TurtleGraphics

From Noisebridge
< User talk:Danf
Revision as of 02:56, 24 January 2015 by Danf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Hi Danf, I figured on a working integration of the eeg stream into turtles. Check out

It was the try/except/finally block closing the stream all along. That was ment to encapsulate the main loop... alas. I also made the send_encoded_packet method into a generator (with coroutine side effects). After calling next() and before yielding a packet, it sends packets to the coroutine of your choosing. A veritable fountain of packets.

awesome, will check it out! Meanwhile, loaded new version of older code (no 'eeg' mode) just to the nb wiki for now.