You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `simulatorSampleRate` - The sample rate to use for the simulator (Default is `250`)
291
291
* `simulatorAlpha` - {Boolean} - Inject and 10Hz alpha wave in Channels 1 and 2 (Default `true`)
292
292
* `simulatorLineNoise` - Injects line noise on channels.
293
-
* `60Hz` - 60Hz line noise (Default) (ex. __Unite States__)
293
+
* `60Hz` - 60Hz line noise (Default) (ex. __United States__)
294
294
* `50Hz` - 50Hz line noise (ex. __Europe__)
295
295
* `None` - Do not inject line noise.
296
296
* `sntp` - Syncs the module up with an SNTP time server. Syncs the board on startup with the SNTP time. Adds a time stamp to the AUX channels. NOTE: (NOT FULLY IMPLEMENTED) [DO NOT USE]
@@ -599,6 +599,34 @@ Get the current sample rate.
599
599
600
600
**_Returns_** a number, the current sample rate.
601
601
602
+
### .sdStart(recordingDuration)
603
+
604
+
Start logging to the SD card. If you are not streaming when you send this command, then you should expect to get a success or failure message followed by and end of transmission `$$$`.
605
+
606
+
**_recordingDuration_**
607
+
608
+
The duration you want to log SD information for. Opens a new SD file to write into. Limited to:
609
+
610
+
* `14sec` - 14 seconds
611
+
* `5min` - 5 minutes
612
+
* `15min` - 15 minutes
613
+
* `30min` - 30 minutes
614
+
* `1hour` - 1 hour
615
+
* `2hour` - 2 hour
616
+
* `4hour` - 4 hour
617
+
* `12hour` - 12 hour
618
+
* `24hour` - 24 hour
619
+
620
+
**Note: You must have the proper type of SD card inserted into the board for logging to work.**
621
+
622
+
**_Returns_** resolves if the command was added to the write queue.
623
+
624
+
### .sdStop(recordingDuration)
625
+
626
+
Stop logging to the SD card and close any open file. If you are not streaming when you send this command, then you should expect to get a success or failure message followed by and end of transmission `$$$`. The success message contains a lot of useful information about what happened when writing to the SD card.
627
+
628
+
**_Returns_** resolves if the command was added to the write queue.
629
+
602
630
### .simulatorEnable()
603
631
604
632
To enter simulate mode. Must call `.connect()` after.
0 commit comments