VectorOutput 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package VectorOutput --version 1.1.0
NuGet\Install-Package VectorOutput -Version 1.1.0
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.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VectorOutput --version 1.1.0
#r "nuget: VectorOutput, 1.1.0"
#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.0

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

Teensy3.5VectorDisplayController

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

Simple/Extensive

The "Simple" folder contains a simplified version of the display controller firmware and a C# file which includes the bare minimum that is required to display an image. The "Extensive" folder contains a more advanced firmware and a NuGet package that allows fluid animations and multiple other features like a cursor, sprites, stamps, and resolution control.

Firmware Installation

Note: Although the file is called "DrawVector.ino" in both cases, the firmware is not interchangeable between "Simple" and "Extensive"

  1. Install the Arduino IDE and Teensyduino
  2. Extract DrawVector.ino and open it with the Arduino IDE (If it asks you to create a sketch folder, you have to accept)
  3. Make sure that the Teesny 3.5 is connected and select it and its COM 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 vektorscope's "X"-channel and the pin labeled "DAC1" to the "Y"-Channel. Afterward, you have to connect the Teesny's ground with the vectorscope's ground. (Teensy 3.5 pinout)

NuGet Package

NuGet-Release

Package Manager: Install-Package VectorOutput -Version 1.0.0

Usage

Create a global VectorOutput variable:

private VectorOutput vOut;

Request the COM port of your Teesny 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 248 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