Skip to main content

An easy to use Python API for programming and accessing Renesas's GreenPak SPLD devices.

Project description

GreenPak Driver

A Python package to access and program Renesas GreenPak SPLD's.

This Python package provides a simple to use API to read/write/program Renseas GreenPak PLDs over a USB to I2C link.

As of May 2025, the package supports the following USB to I2C interfaces and new ones can be easily added based on the examples in i2c.py:

Sample usage using an I2C Adapter:

from greenpak import driver, i2c, utils

print("Connecting.")
i2c_driver = i2c.GreenPakI2cAdapter(port="COM17")
gp_driver = driver.GreenpakDriver(i2c_driver, device="SLG46826", control_code=0b0001)

print("Loading configuration.")
data = utils.read_bits_file("test_data/slg46826_blinky_fast.txt")
utils.hex_dump(data)

print("Programming the NVM.")
gp_driver.program_nvm_pages(0, data)

print("Resetting the device.")
gp_driver.reset_device()

For full documentation see https://greenpak.readthedocs.io/en/latest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greenpak-0.0.29.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greenpak-0.0.29-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file greenpak-0.0.29.tar.gz.

File metadata

  • Download URL: greenpak-0.0.29.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for greenpak-0.0.29.tar.gz
Algorithm Hash digest
SHA256 5f327bfbac0d17241e8552e84e2e2bdd669fc9431d54add71b523ae48c8c8651
MD5 e498be7c23e655aa5f032384c12794ba
BLAKE2b-256 2f7fc7eb65fe2b0fb360077bad0cbfcc1cba8ee4cbaefc5485e4b711823b43e3

See more details on using hashes here.

File details

Details for the file greenpak-0.0.29-py3-none-any.whl.

File metadata

  • Download URL: greenpak-0.0.29-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for greenpak-0.0.29-py3-none-any.whl
Algorithm Hash digest
SHA256 24aa9c805808fcbaa7074ab7e40cfa1baa3908615ab0bb15e628b979c6ad17b5
MD5 c08ab332f46b655ab3c1cc860a8ed907
BLAKE2b-256 0beed739212cde370dc3c3fa27f6f92bc845114f1df3e8fd49c172d4332dceee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page