o===============================================================================oo===============================================================================o | . . . . || . . . . | | : : : : || : : : : | | : . : . : . : || : . : . : . : | | .' . . .' . . .' . . .' . || .' . . .' . . .' . . .' . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Simple live plot reading serial data | |
| Graph is not exact as it can be altered by delays in serial communication and plot time, but it is useful nonetheless | |
| Usage example: ./live_serial_plot.py --tty /dev/ttyUSB0 --plot var1 --plot var2 --plot_n vars3 2 --save ./log.csv | |
| Data on the serial line for the above command: [note: space after prefix is optional] | |
| var1 1.4427 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Plugin nvim to change nvchad base46 theme, when gsettings notifies color-scheme change | |
| -- See `:h nvui.chadrc.options` and set `base46.theme` and `base46.theme_toggle` options | |
| local function apply_theme(theme) | |
| local dark_theme_name = require('nvconfig').base46.theme_toggle[1] | |
| local current_theme_name = require('nvconfig').base46.theme | |
| local rq_dark = (theme == "prefer-dark") | |
| local is_dark = (current_theme_name == dark_theme_name) | |
| if rq_dark ~= is_dark then |
OlderNewer