VectorOutput 1.1.3
dotnet add package VectorOutput --version 1.1.3
NuGet\Install-Package VectorOutput -Version 1.1.3
<PackageReference Include="VectorOutput" Version="1.1.3" />
paket add VectorOutput --version 1.1.3
#r "nuget: VectorOutput, 1.1.3"
// 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
- Install the Arduino IDE and Teensyduino (Arduino IDE with Teensyduino for Arch based systems)
- Extract DrawVector and open DrawVector.ino in the Arduino IDE
- Make sure that the Teensy 3.5 is connected and select it and its serial 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.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 | 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 (>= 7.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.