Commit a1222362 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Attemps to use the sampling_rate in _vab_pulse

No related merge requests found
Showing with 8 additions and 4 deletions
+8 -4
...@@ -18,7 +18,7 @@ OHMPI_CONFIG = { ...@@ -18,7 +18,7 @@ OHMPI_CONFIG = {
} }
HARDWARE_CONFIG = { HARDWARE_CONFIG = {
'controller': {'model' : 'raspberry_pi_3' 'controller': {'model' : 'raspberry_pi'
}, },
'tx' : {'model' : 'ohmpi_card_3_15', 'tx' : {'model' : 'ohmpi_card_3_15',
'mcp_board_address': 0x20, 'mcp_board_address': 0x20,
......
...@@ -18,7 +18,7 @@ OHMPI_CONFIG = { ...@@ -18,7 +18,7 @@ OHMPI_CONFIG = {
} }
HARDWARE_CONFIG = { HARDWARE_CONFIG = {
'controller': {'model' : 'raspberry_pi_3' 'controller': {'model' : 'raspberry_pi'
}, },
'tx' : {'model' : 'mb_2024_rev_0_0', 'tx' : {'model' : 'mb_2024_rev_0_0',
'mcp_board_address': 0x20, 'mcp_board_address': 0x20,
......
...@@ -18,7 +18,7 @@ OHMPI_CONFIG = { ...@@ -18,7 +18,7 @@ OHMPI_CONFIG = {
} }
HARDWARE_CONFIG = { HARDWARE_CONFIG = {
'controller': {'model' : 'raspberry_pi_3' 'controller': {'model' : 'raspberry_pi'
}, },
'tx' : {'model' : 'ohmpi_card_3_15', 'tx' : {'model' : 'ohmpi_card_3_15',
'mcp_board_address': 0x20, 'mcp_board_address': 0x20,
......
from OhmPi.hardware import ControllerAbstract from OhmPi.hardware import ControllerAbstract
import board # noqa import board # noqa
import busio # noqa import busio # noqa
from OhmPi.utils import get_platform
class Controller(ControllerAbstract): class Controller(ControllerAbstract):
def __init__(self, **kwargs): def __init__(self, **kwargs):
super().__init__(**kwargs) super().__init__(**kwargs)
self.bus = busio.I2C(board.SCL, board.SDA) # noqa self.bus = busio.I2C(board.SCL, board.SDA) # noqa
\ No newline at end of file platform, on_pi = get_platform()
assert on_pi
self.board_name = platform
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment