Comments (5)
Do you mean a command to manually specify the baud rate? Because that's done by simply setting let g:arduino_serial_baud = 9600
Lines 104 to 106 in 1a4fd15
Or do you mean a command to do the automatic baud rate detection on the current file? There's no command for that currently but you could easily map the function call
vim-arduino/ftplugin/arduino.vim
Lines 16 to 18 in 1a4fd15
from vim-arduino.
Mmm... I mean a command of this type:
The main commands you will want to use are:
:ArduinoChooseBoard - Select the type of board from a list.
:ArduinoChooseProgrammer - Select the programmer from a list.
:ArduinoChoosePort - Select the serial port from a list.
:ArduinoVerify - Build the sketch.
:ArduinoUpload - Build and upload the sketch.
:ArduinoSerial - Connect to the board for debugging over a serial port.
:ArduinoUploadAndSerial - Build, upload, and connect for debugging.
:ArduinoInfo - Display internal information. Useful for debugging issues with vim-arduino.
So that I can invoke it with a key binding for convenience.
from vim-arduino.
It's still not clear to me if what you want to do with your keybinding is set the baud rate to a value or perform the auto detection.
Assuming it's the auto detection, you can already do that by calling the function arduino#SetAutoBaud()
nnoremap <buffer> <leader>b :call arduino#SetAutoBaud()<CR>
from vim-arduino.
I would like to have a command mapped to a key binding that has the exact same functionality as let g:arduino_serial_baud = 9600
. I usually have several sketches open that use different debug serial baudrates, so it would be great to (1) be able to configure them with a mapping (and not having to look for my .vimrc, edit it, and source it) and 2. make this variable buffer specific, so that I could for example use 9600 with one sketch, and 115200 with another one.
from vim-arduino.
Gotcha! That's a pretty easy add
from vim-arduino.
Related Issues (20)
- Not working with vim under Ubuntu 18.04 HOT 4
- :ArduinoVerify fails HOT 2
- :ArduinoVerify executing job failed: Permission denied HOT 1
- Silent (or at least more discreet) compiles/uploads HOT 1
- ArduinoChoosePort Broken HOT 1
- ArduinoSerial doesn't exit cleanly HOT 2
- Not working with Ubuntu 20.04, fails in `chooser.vim` HOT 1
- How to stop Serial Monitor HOT 4
- ctags: no such file or directory HOT 2
- E716: Key not present in Dictionary: "boards" HOT 14
- avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) HOT 3
- Uploading on a Uno board fails HOT 3
- Feature request: use sketch.json for per sketch fqbn and port HOT 4
- [question] how to set tmux for Serial? HOT 3
- ArduinoUploadAndSerial: screen: device or resource busy HOT 4
- Wrong baud rate, when trying to upload a sketch HOT 6
- :ArduinoChoose* commands do not work in Vim9 HOT 2
- Run SerialMonitor in another tmux pane HOT 1
- Commands not found after installing with lazy. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-arduino.