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
Now the code that receiving serial code while running has been updated,
The main idea is that I added a function read the state of the UART buffer in the UART library, and add a function to directly read content from the UART buffer without asking for UART RX state.
In the main function, for every loop, we have a loop quit flag. We asked for UART buffer state in every interruption pulse, if there is something, we quit the main loop, go to another running state based on what we read from the UART buffer.
Now what we should do is to test whether is work smoothly.
Basically, you should send a char 'M' to start the sampling, while sampling, you will see EEG and ECG wave form directly. In the running state, you will want to send a char 'T', to trigger a stage switching. You are expected to see the HRP LED flashing, and the UART will sent '0x00,0x01 to 0x07',you need to check what you received in your cellphone.
The text was updated successfully, but these errors were encountered:
Now the code that receiving serial code while running has been updated,
The main idea is that I added a function read the state of the UART buffer in the UART library, and add a function to directly read content from the UART buffer without asking for UART RX state.
In the main function, for every loop, we have a loop quit flag. We asked for UART buffer state in every interruption pulse, if there is something, we quit the main loop, go to another running state based on what we read from the UART buffer.
Now what we should do is to test whether is work smoothly.
Basically, you should send a char 'M' to start the sampling, while sampling, you will see EEG and ECG wave form directly. In the running state, you will want to send a char 'T', to trigger a stage switching. You are expected to see the HRP LED flashing, and the UART will sent '0x00,0x01 to 0x07',you need to check what you received in your cellphone.
The text was updated successfully, but these errors were encountered: