-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Landungsbruecke: A bit of rework on the ID EEPROM handling
Mostly refactoring but also * `Landungsbruecke.eeprom_mc` changed to `id_eeprom_mc` * `Landungsbruecke.eeprom_drv` changed to `id_eeprom_drv`
- Loading branch information
1 parent
18cdcd0
commit 00d8891
Showing
4 changed files
with
145 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
################################################################################ | ||
# Copyright © 2024 Analog Devices Inc. All Rights Reserved. | ||
# This software is proprietary to Analog Devices, Inc. and its licensors. | ||
################################################################################ | ||
"""Please do not use unless you know what you are doing!""" | ||
|
||
from pytrinamic.connections import ConnectionManager | ||
from pytrinamic.modules import Landungsbruecke | ||
|
||
|
||
cm = ConnectionManager() | ||
|
||
with cm.connect() as interface: | ||
lb = Landungsbruecke(interface) | ||
|
||
lb.id_eeprom_mc.write_id_info( | ||
description="TMC4671", | ||
board_id=13, # Check out Landungsbruecke.mc_id_names for a list of IDs | ||
hw_major_version=1, # Board has printed version 1.2 on it | ||
hw_minor_version=2, # Board has printed version 1.2 on it | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters