- Name
- SerialInterface
- Version
- 2.0.1
- License
- BSD
- URL
- https://github.com/janelia-arduino/SerialInterface
- Author
- Peter Polidoro
- peter@polidoro.io
Modular device serial interface library.
{
"id": "getAPI",
"result": {
"ancestors": [
"ModularServer",
"ModularDeviceBase"
],
"firmware": [
{
"name": "SerialInterface",
"version": "2.0.1"
}
],
"verbosity": "NAMES",
"functions": [
"getSerialStreamCount",
"getSerialStreamIndex",
"setSerialStreamIndex",
"write",
"writeRead"
],
"parameters": [
"serial_stream_index",
"data"
],
"properties": [
"bauds",
"formats",
"writeLineEndings",
"readLineEndings",
"timeouts"
]
}
}
https://github.com/janelia-arduino/SerialInterface.git
git clone https://github.com/janelia-arduino/SerialInterface.git
https://docs.platformio.org/en/latest/core/installation/index.html
python3 -m venv .venv
source .venv/bin/activate
pip install pip --upgrade
pip install platformio
pio --version
Linux users have to install udev rules for PlatformIO supported boards/devices.
curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules
sudo service udev restart
sudo usermod -a -G dialout $USER && sudo usermod -a -G plugdev $USER
sudo apt-get purge --auto-remove modemmanager
You will need to log out and log back in again (or reboot) for the user group changes to take effect.
After this file is installed, physically unplug and reconnect your board.
make firmware
pio run -e teensy31
make upload
pio run -e teensy31 -t upload
make monitor
pio device monitor --echo --eol=LF
getAPI NAMES ["SerialInterface"]
https://www.arduino.cc/en/software
File > Preferences
https://www.pjrc.com/teensy/package_teensy_index.json https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
- Teensy by Paul Stroffregen
- Raspberry Pi Pico/RP2040 by Earle F Philhower, III