Skip to content

Drop-in replacement for Arduino's serial monitor with variable watches.

License

Notifications You must be signed in to change notification settings

mladenilic/arduino-cereal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4f947ae · Nov 22, 2020
Nov 22, 2020
Nov 19, 2020
Nov 22, 2020
Nov 10, 2020
Nov 10, 2020
Nov 10, 2020
Nov 12, 2020
Nov 19, 2020
Nov 19, 2020
Nov 22, 2020
Nov 12, 2020
Nov 22, 2020
Nov 22, 2020

Repository files navigation

Arduino Cereal Monitor

Drop-in replacement for Arduino's serial monitor with variable watches.

image

How it works

Use Serial.print, Serial.println, etc. to print data to [Monitor] window. To track variables in [Variables] window, use Cereal library (documentation & demo).

Install

$ npm install --global arduino-cereal

OR run it with npx

$ npx arduino-cereal

Requires Node v14.0.0 or later

CLI options

$ arduino-cereal --help

  Usage
    $ arduino-cereal

  Options
    --port   Serial port
    --baud   Baud rate (default: 9600)
    --theme  Theme name (light, dark, black, white)
    --fps    Screen render rate (default: 15)
  • port: – Serial port to which Arduino board is connected.
  • baud: – Baud rate. Default value 9600
  • theme: – Change the color theme. Available options are light, dark, black, black. The default theme is dark. Read more about theme customization.
  • fps – Control the rate at which the CLI screen is updated. Helps to deal with flickering on some terminal apps (iTerm). Default: 15

Example:

$ arduino-cereal --port=/dev/tty.usbserial-1410 --baud=19200 --theme=light --fps=10

Configuration file

Alternatively, CLI options can be read from a file – cereal.config.json. This file is expected to be located in the current working directory.

{
  "port": "/dev/tty.usbserial-1410",
  "baud": 9600,
  "fps": 15,
  
  "theme": { /** Theme customization options */ }
}

Contributing

Contributions are welcome. 🎉

License

Licensed under the MIT license. See the LICENSE.md for more information.

About

Drop-in replacement for Arduino's serial monitor with variable watches.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published