Skip to main content

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

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.

Release history Release notifications | RSS feed

This release

0.0.30 This release

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.10

2 files

0.0.9

2 files

Supported by

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