Skip to content

Do some updates to the serial reference docs#6682

Merged
ganicke merged 8 commits intomasterfrom
serial-docs-update
Feb 3, 2026
Merged

Do some updates to the serial reference docs#6682
ganicke merged 8 commits intomasterfrom
serial-docs-update

Conversation

@ganicke
Copy link
Collaborator

@ganicke ganicke commented Jan 19, 2026

Update serial reference pages with info about the simulator data log's handling of newlines.

Closes #6649

@martinwork

@ganicke ganicke marked this pull request as ready for review January 23, 2026 22:14
@martinwork
Copy link
Contributor

Thanks @ganicke! I understand better now. I'd never properly tested sending lots of data without a newline.

When the "Show data" button isn't already showing (e.g. after refreshing the page), the first full buffer or newline from micro:bit triggers the button to appear, but the data is not there when "Show data" is clicked. It seems to be related to switching between simulator and hardware data, with simulator being the default.

I think maybe the buffer limit is 255 rather than 256.

Try this example: https://makecode.microbit.org/_WCDLphDTVHue
Pressing A sends 260 characters. 255 of them appear.

Did you mean to include changes in the code in libs/core/console.ts and sim/state/serial.ts, as well as updating the docs?

@ganicke
Copy link
Collaborator Author

ganicke commented Jan 27, 2026

@martinwork - Right, I didn't mean to leave in those changes to console.ts and sim\serial.ts. That was just for testing on my local build.

@ganicke ganicke requested a review from abchatra February 2, 2026 21:44
@ganicke ganicke merged commit b6b2253 into master Feb 3, 2026
7 of 11 checks passed
@ganicke ganicke deleted the serial-docs-update branch February 3, 2026 20:27
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.

Documentation of serial blocks is not clear about newlines and doesn't mention the MakeCode console

3 participants