Skip to content

Do some updates to the serial reference docs - #6682

Merged
Galen Nickel (ganicke) merged 8 commits into
masterfrom
serial-docs-update
Feb 3, 2026
Merged

Galen Nickel (ganicke) merged 8 commits into
masterfrom
serial-docs-update

Conversation

@ganicke

@ganicke Galen Nickel (ganicke) commented Jan 19, 2026 •

Copy link
Copy Markdown
Collaborator

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

Closes #6649

Martin Williams (@martinwork)

@ganicke
Galen Nickel (ganicke) marked this pull request as ready for review January 23, 2026 22:14
@martinwork

Copy link
Copy Markdown
Contributor

Thanks Galen Nickel (@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

Galen Nickel (ganicke) commented Jan 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

Martin Williams (@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
Galen Nickel (ganicke) merged commit b6b2253 into master Feb 3, 2026
7 of 11 checks passed
@ganicke
Galen Nickel (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