Jump to navigation Jump to search
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.