User talk:Danf/TurtleGraphics

From Noisebridge
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Hi Danf, I figured on a working integration of the eeg stream into turtles. Check out https://github.com/kevinjos/openbci-feature-viewer

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.