-
Notifications
You must be signed in to change notification settings - Fork 39
[DRAFT DO NOT MERGE] Add support for simulator data logging #897
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
Conversation
Preview build will be at |
@@ -89,7 +89,7 @@ const Simulator = ({ | |||
ref={ref} | |||
as="iframe" | |||
// This needs changing before we remove the flag. | |||
src={`https://stage-python-simulator.microbit.org/simulator.html?color=${encodeURIComponent( | |||
src={`https://deploy-preview-36--distracted-dubinsky-fd8a42.netlify.app/simulator.html?color=${encodeURIComponent( |
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.
Change this back before merging!
export interface DataLoggingSensor { | ||
type: "log"; | ||
id: string; | ||
value: [LogData[]]; |
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.
Do we mean a singleton array here?
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.
It's currently not, due to some difficulties I was having, but it probably should be.
<HStack justifyContent="space-between" width="100%"> | ||
{icon} | ||
<Text>{Math.max(sensor.value.length - 1, 0)} rows</Text> | ||
<Button size="sm">Download</Button> |
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.
Currently does nothing.
Superseded by #922 which built on this branch. Closing. |
No description provided.