Skip to content

Add support for data logging #36

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

Closed
wants to merge 3 commits into from
Closed

Add support for data logging #36

wants to merge 3 commits into from

Conversation

microbit-robert
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Aug 22, 2022

Deploy Preview for distracted-dubinsky-fd8a42 ready!

Name Link
🔨 Latest commit 26e9c8b
🔍 Latest deploy log https://app.netlify.com/sites/distracted-dubinsky-fd8a42/deploys/6303939106a7f1000987d7fe
😎 Deploy Preview https://deploy-preview-36--distracted-dubinsky-fd8a42.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

src/jshal.js Outdated
},

mp_js_hal_log_set_mirroring: function (serial) {
board.dataLogging.delete();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. 26e9c8b.

value: string | number;
}

export class DataLoggingSensor extends Sensor {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly to radio, I'm unsure whether this fits the sensor model. Let's see how radio works out first.

},

mp_js_hal_log_set_timestamp: function (period) {
board.dataLogging.setTimestamp(period);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be some kind of conversion here?

@microbit-matt-hillsdon
Copy link
Contributor

Reworked into #41 after the API change. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants