VectorOutput 1.1.1
See the version list below for details.
dotnet add package VectorOutput --version 1.1.1
NuGet\Install-Package VectorOutput -Version 1.1.1
<PackageReference Include="VectorOutput" Version="1.1.1" />
paket add VectorOutput --version 1.1.1
#r "nuget: VectorOutput, 1.1.1"
// Install VectorOutput as a Cake Addin #addin nuget:?package=VectorOutput&version=1.1.1 // Install VectorOutput as a Cake Tool #tool nuget:?package=VectorOutput&version=1.1.1
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"
- Install the Arduino IDE and Teensyduino
- Extract DrawVector.ino and open it with the Arduino IDE (If it asks you to create a sketch folder, you have to accept)
- Make sure that the Teesny 3.5 is connected and select it and its COM port under the "Tools" tab in the Arduino IDE
- 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
Package Manager: Install-Package VectorOutput -Version 1.1.1
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 | Versions 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. |
-
net6.0
- System.IO.Ports (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.