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.30.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.30-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greenpak-0.0.30.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.30.tar.gz
Algorithm Hash digest
SHA256 5805837fe8a314676f4ec2754d62ddb56dc598a1e184580a205926a96d485ceb
MD5 93204cbc3dffc17e1666d38c649eed0a
BLAKE2b-256 7959a3ef3c4af34c7a57c7bf0224bc933e9ba94785dbd587371b49973bab21a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: greenpak-0.0.30-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.30-py3-none-any.whl
Algorithm Hash digest
SHA256 2a95144ef7f86b26a9d998d1e86517ac4685c87adc1f08a2a6d90a63dac3782f
MD5 7d0c5bcd447fbf52e7fb3eecff4c9b82
BLAKE2b-256 b267648d0464ef10720e0618ed1b348315c9298ab7f14443958fcb4de4ecc263

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