Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eeprom: add support to use CBUS IntEnum in _set_cbus_func #364

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Dec 1, 2023

  1. eeprom: add support to use CBUS IntEnum in _set_cbus_func

    This commit adds the capability of using FtdiEeprom.CBUS, CBUSH and CBUSX
    while setting cbus functionality as shown in the example below.
    	eeprom = FtdiEeprom()
    	eeprom.connect(f) # f is the instance of Ftdi
    	eeprom.set_property("cbus_func_0", eeprom.CBUSX.GPIO)
    
    Previously, we had to use the string to set the property for specific CBUS
    
    Signed-off-by: Talha Can Havadar <talha.can.havadar@canonical.com>
    talhaHavadar committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    6955bcf View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Update pyftdi/eeprom.py

    Co-authored-by: Evandro Arruda <ecarruda@gmail.com>
    talhaHavadar and ecarruda committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    2a7d3e8 View commit details
    Browse the repository at this point in the history