VectorOutput 1.1.3

dotnet add package VectorOutput --version 1.1.3
NuGet\Install-Package VectorOutput -Version 1.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VectorOutput" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VectorOutput --version 1.1.3
#r "nuget: VectorOutput, 1.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VectorOutput as a Cake Addin
#addin nuget:?package=VectorOutput&version=1.1.3

// Install VectorOutput as a Cake Tool
#tool nuget:?package=VectorOutput&version=1.1.3

Teensy3.5VectorDisplayController

This code allows you to use a Teensy 3.5 and a vectorscope (oscilloscope on X-Y-mode) as a vector display.

Firmware Installation

  1. Install the Arduino IDE and Teensyduino (Arduino IDE with Teensyduino for Arch based systems)
  2. Extract DrawVector and open DrawVector.ino in the Arduino IDE
  3. Make sure that the Teensy 3.5 is connected and select it and its serial port under the "Tools" tab in the Arduino IDE
  4. Hit the upload button and wait for the code to compile and upload

Hardware Configuration

Connect the pin labeled "DAC0" to the vectorscope's "X"-channel and the pin labeled "DAC1" to the "Y"-Channel. Afterward, you have to connect the Teensy's ground with the vectorscope's ground. (Teensy 3.5 pinout)

NuGet Package

NuGet-Release

Package Manager: Install-Package VectorOutput -Version 1.1.3

Usage

Create a global VectorOutput variable:

private VectorOutput vOut;

Request the COM port of your Teensy and create a new VectorOutput instance:

string? comPort = VectorOutput.ComPortForm();
while (comPort == null)
{
    comPort = VectorOutput.ComPortForm();
}

try
{
    vOut = new VectorOutput(comPort);
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}

Display an image:

vOut.Lines = new ushort[][] { new ushort[] { 0, 0, 0xFFF, 0xFFF } };
vOut.DrawFrame();

Note: Lines is a jagged array of ushort arrays. The ushort arrays represent lines and always have a length of 4. The first two ushorts are the starting X and Y coordinates of the line, the last two are the ending X and Y. All coordinates have to be between 0 (bottom/left) and 4095/0xFFF (top/right).

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 246 3/8/2023
1.1.2 388 5/21/2022
1.1.1 402 4/15/2022
1.1.0 394 4/15/2022
1.0.0 380 3/28/2022