Skip to content

Commit

Permalink
Added version logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ZodiusInfuser committed Nov 14, 2023
1 parent c671e52 commit 6dfbd5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pimoroni_yukon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# SPDX-License-Identifier: MIT

import sys
import time
import tca
from machine import ADC, Pin, I2C
Expand All @@ -14,6 +15,8 @@
from ucollections import OrderedDict, namedtuple


YUKON_VERSION = "1.0.0"

Slot = namedtuple("Slot", ("ID",
"FAST1",
"FAST2",
Expand Down Expand Up @@ -147,6 +150,8 @@ def __init__(self, voltage_limit=DEFAULT_VOLTAGE_LIMIT, current_limit=DEFAULT_CU
self.__temperature_limit = temperature_limit
logging.level = logging_level

logging.info(f"> Running Yukon {YUKON_VERSION}, {sys.version.split('; ')[1]}")

self.__slot_assignments = OrderedDict({
SLOT1: None,
SLOT2: None,
Expand Down

0 comments on commit 6dfbd5a

Please sign in to comment.