-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add num blinks #526
Add num blinks #526
Conversation
Visit the preview URL for this PR (updated for commit e1f6361): https://ccv-honeycomb--pr526-add-numblinks-pwa9jpqf.web.app (expires Thu, 29 Aug 2024 19:57:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4ace1dcea913a952d2a1af84b94a4421bf36e610 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! A few typos and some questions here
Where are numBlinks
being used? It looks like we're just setting it right now
Co-authored-by: Ellen Duong <[email protected]>
Co-authored-by: Ellen Duong <[email protected]>
Co-authored-by: Ellen Duong <[email protected]>
I am actually not entirely sure of this; it seems like the most relevant case I found is here: src/lib/markup/photodiode.js, we set a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR needs @RobertGemmaJr to approve since I don't think I understand the configuration enough to give the okay 😓
Sounds good! I can wait until Rob comes back to discuss more about this. Thank you for reviewing it so far : D ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks super great! Why don't we move the code
and numbBlinks
for each trial type into their trial in the settings.json
file. This way we can delete the eventCodes.json
file for some consolidation! All of the values look great!
…into add-numBlinks
…er config, changed event codes access respectively
* @param {string} trigger.productID The name of the product connected to the serial port | ||
* @param {string} trigger.vendorID The name of the vendor connected to the serial prot | ||
* @param {Object} trigger.settings The list of possible event with relative event codes to be triggered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since codes are now embedded under the settings.json, I had to import the entire settings object into the trigger object to access the code
"code": 2, | ||
"numBlinks": 2 | ||
}, | ||
"open_task": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inserted these 2 events from the original event codes file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I think eventually I will move all of the trigger stuff into the settings file but should be done in another PR. This looks fantastic! 🚀
…re.js Co-authored-by: Robert Gemma <[email protected]>
code
andnumBlinks
as nested object to each event codeeventCodes
import intrigger.js
to be more concise