Skip to content

kiltyj/serial_monitor

 
 

Repository files navigation

Sublime 3 Serial Monitor

To install, clone this repository into C:\Users\${user}\AppData\Roaming\Sublime Text 3\Packages and restart sublime

Commands

Commands are accessed through Menu->Tools->Serial Monitor or the Command Palette (ctrl+shift+p).
For all commands, if multiple ports are available a list will be shown to choose the comport to select

  • Connect: Brings up dialogs to connect to a comport. If more than one comport is available, brings up a list of available comports before choosing a baud rate

  • Disconnect: Brings up a list of connected comports to disconnect from

  • Write Line: Brings up an input box at the bottom of the window to write a line to a comport.

    • Command/Write history is saved. In the input box, use Page Up and Page Down to cycle through past entries
  • Write File: Writes the active file to a comport

  • Write Selection(s): Writes the selected text to the comport. Supports multiple selection regions (each selection will be on its own line). If no text is selected, writes the whole file.

  • New Buffer: Opens up a new output buffer for the comport

  • Clear Buffer: Clears the current output buffer for the comport

  • Timestamp Logging: Brings up dialog to enable or disable adding timestamps to the beginning of each line. Timestamps are formatted as [yy-mm-dd hh:mm:ss.xxx]

  • Line Endings: Set the line endings type of the comport so the data is correctly displayed in the output. Sublime only cares about Line Feeds, so the text will be edited based on the setting

  • CR: Line endings are carriage return characters only. All CR characters (\r) will be converted to LF (\n)

  • LF: Line endings are line feed characters only. No text manipulation occurs

  • CRLF: Line endings contain both CR and LF. CR characters are removed (default)

  • Layout: Switches the layout of the sublime window. Left/Right puts all input files on the left and serial files on the right, Over/Under puts all input files on the top and output on the bottom

Advanced Commands

For those who want to use these commands for keybindings, etc.

"command": "serial_monitor", "args":{"serial_command":"", ...}

Currently supported serial_command values and optional args for each:

  • "connect":

  • "comport": str - The comport to connect to

  • "baud": int - The baud rate to connect with

  • "enable_timestamps": bool - Enable or disable timestamped logging upon connection

  • "line_endings": str - The line ending settings to use. Should be CR, LF, or CRLF

  • "disconnect":

  • "comport": str - The comport to disconnect from

  • timestamp_logging:

  • "comport": str - The comport to enable/disable timestamp logging on

  • "enable_timestamps": bool - True to enable, False to Disable

  • line_endings:

  • "line_endings": str - THe line ending settings to use. See above for valid values

  • new_buffer:

  • "comport": str - The comport to create a new buffer for

  • clear_buffer:

  • "comport": str - The comport to create a clear the buffer on

  • "write_line":

  • "comport": str - The comport to write a line to

  • "text": str - The text to write to the comport (newline appended to end automatically)

  • "write_file":

  • "comport": str - The comport to write the currently active file to

  • "override_selection": bool - set to true if you want to write the whole file regardless if a region is currently selected

About

Serial Monitor for Sublime Text 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.6%
  • JavaScript 2.4%