PSGadget

0.4.2

Experimental PowerShell module for direct hardware control via FTDI chips FT232R and FT232H — drive GPIO pin states, write I2C, actuate physical devices, and more.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSGadget

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSGadget

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Mark Go. All rights reserved.

Package Details

Author(s)

  • Mark Go

Tags

FTDI Hardware GPIO UART I2C SPI PsGadget MicroPython ESP32 ESP-NOW IoT FT232H FT232R SSD1306 OLED Telemetry

Functions

New-PsGadgetFtdi Test-PsGadgetEnvironment Get-FtdiDevice Connect-PsGadgetFtdi Get-PsGadgetMpy Connect-PsGadgetMpy Set-PsGadgetGpio Get-PsGadgetGpio Get-FtdiEeprom Get-PsGadgetFtdiEeprom Set-PsGadgetFt232rCbusMode Set-PsGadgetFtdiEeprom Set-PsGadgetFtdiMode Get-PsGadgetConfig Get-PsGadgetLog Set-PsGadgetConfig Install-PsGadgetMpyScript Install-MacOSD2XXDrivers Get-PsGadgetEspNowDevices Invoke-PsGadgetI2CScan Invoke-PsGadgetI2C Invoke-PsGadgetStepper Invoke-PsGadgetSpi Invoke-PsGadgetUart Start-PsGadgetTrace

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

v0.4.2: UART support via D2XX. PsGadgetUart class with Write/Read/ReadLine/Flush/BytesAvailable. Invoke-PsGadgetUart cmdlet. GetUart() on PsGadgetFtdi. UART [PROTO] trace entries (DarkYellow in viewer). All standard baud rates, 8N1/7E2/etc, RTS/CTS and Xon/Xoff flow control. v0.4.1: SPI support via MPSSE. PsGadgetSpi class with Write/Read/Transfer. Invoke-PsGadgetSpi cmdlet. GetSpi() on PsGadgetFtdi. SPI [PROTO] trace entries (Blue in viewer). All 4 SPI modes supported. v0.4.0: Removed 9 deprecated SSD1306/PCA9685 wrapper functions; Send-PsGadgetI2CWrite demoted to internal private helper. Invoke-PsGadgetI2C is now the sole I2C entry point. PsGadgetFtdi.GetDisplay/Display/ClearDisplay use class methods directly. v0.3.6: Invoke-PsGadgetStepper - unified stepper motor cmdlet for FT232R/FT232H via async bit-bang. Bulk USB write for jitter-free step timing. Calibrated StepsPerRevolution (28BYJ-48: ~4075.77 half-steps, NOT 4096). Angle-based moves via -Degrees. PsGadgetFtdi.Step() and .StepDegrees() shorthand methods. v0.3.5: SSD1306 OLED integrated into Invoke-PsGadgetI2C. v0.3.4: ESP-NOW wireless telemetry.

FileList

Version History

Version Downloads Last updated
0.4.2 (current version) 4 4/11/2026
0.3.7 12 3/18/2026
0.0.3 17 1/26/2026
0.0.2 5 1/26/2026
0.0.1 4 1/26/2026