Open gerrievanzyl opened 7 years ago
wow this is a cool feature request! I must not be getting notifications by default for this repo. Do you know how to do call backs in arduino?
This might be easy to do, but how best to make it usable? We could create an .ino file in the sketch example 'UserProcessing.ino' or so. There could live the userDataProcessing() with default empty brackets. ??
Thanks again
This suggestion may make the firmware more hackable by users with limited experience.
To make small changes how/what data is logged, would it be possible to create user function in DefaultBoard.ino that is called just before data is written to serial, wifi and SD card (something like void userDataProcessing() ). This would be setup as a simple call back that is run just before the EEG and accel/aux data is written out.
The purpose of this callback would be to give users one simple place to make any modifications to the data before it is written out. This would eliminate the need for users to mess with any of the Library code.
For example: to insert "markers" into the data streams the callback function would allow someone the ability to change the auxData[] values just before they are written out.
Make sense?