-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1c374e
commit 827c570
Showing
19 changed files
with
1,603 additions
and
1,606 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 |
---|---|---|
@@ -1,3 +1 @@ | ||
include("$(PORT_DIR)/boards/manifest.py") | ||
|
||
freeze("$(BOARD_DIR)/../../lib/") |
File renamed without changes.
56 changes: 28 additions & 28 deletions
56
...e/filesystem/lib/pimoroni_yukon/errors.py → lib/pimoroni_yukon/errors.py
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
class OverVoltageError(Exception): | ||
"""Exception to be used when a voltage value exceeds safe levels""" | ||
pass | ||
|
||
|
||
class UnderVoltageError(Exception): | ||
"""Exception to be used when a voltage value falls below safe levels""" | ||
pass | ||
|
||
|
||
class OverCurrentError(Exception): | ||
"""Exception to be used when a current value exceeds safe levels""" | ||
pass | ||
|
||
|
||
class OverTemperatureError(Exception): | ||
"""Exception to be used when a temperature value exceeds safe levels""" | ||
pass | ||
|
||
|
||
class FaultError(Exception): | ||
"""Exception to be used when a part of the system triggers a fault""" | ||
pass | ||
|
||
|
||
class VerificationError(Exception): | ||
"""Exception to be used when there is an issue verifying the installed hardware modules""" | ||
pass | ||
class OverVoltageError(Exception): | ||
"""Exception to be used when a voltage value exceeds safe levels""" | ||
pass | ||
|
||
|
||
class UnderVoltageError(Exception): | ||
"""Exception to be used when a voltage value falls below safe levels""" | ||
pass | ||
|
||
|
||
class OverCurrentError(Exception): | ||
"""Exception to be used when a current value exceeds safe levels""" | ||
pass | ||
|
||
|
||
class OverTemperatureError(Exception): | ||
"""Exception to be used when a temperature value exceeds safe levels""" | ||
pass | ||
|
||
|
||
class FaultError(Exception): | ||
"""Exception to be used when a part of the system triggers a fault""" | ||
pass | ||
|
||
|
||
class VerificationError(Exception): | ||
"""Exception to be used when there is an issue verifying the installed hardware modules""" | ||
pass |
42 changes: 21 additions & 21 deletions
42
.../filesystem/lib/pimoroni_yukon/logging.py → lib/pimoroni_yukon/logging.py
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
LOG_NONE = 0 | ||
LOG_WARN = 1 | ||
LOG_INFO = 2 | ||
LOG_DEBUG = 3 | ||
|
||
level = LOG_INFO | ||
|
||
|
||
def warn(objects='', sep='', end='\n'): | ||
if level >= LOG_WARN: | ||
print(objects, sep=sep, end=end) | ||
|
||
|
||
def info(objects='', sep='', end='\n'): | ||
if level >= LOG_INFO: | ||
print(objects, sep=sep, end=end) | ||
|
||
|
||
def debug(objects='', sep='', end='\n'): | ||
if level >= LOG_DEBUG: | ||
print(objects, sep=sep, end=end) | ||
LOG_NONE = 0 | ||
LOG_WARN = 1 | ||
LOG_INFO = 2 | ||
LOG_DEBUG = 3 | ||
|
||
level = LOG_INFO | ||
|
||
|
||
def warn(objects='', sep='', end='\n'): | ||
if level >= LOG_WARN: | ||
print(objects, sep=sep, end=end) | ||
|
||
|
||
def info(objects='', sep='', end='\n'): | ||
if level >= LOG_INFO: | ||
print(objects, sep=sep, end=end) | ||
|
||
|
||
def debug(objects='', sep='', end='\n'): | ||
if level >= LOG_DEBUG: | ||
print(objects, sep=sep, end=end) |
50 changes: 25 additions & 25 deletions
50
...em/lib/pimoroni_yukon/modules/__init__.py → lib/pimoroni_yukon/modules/__init__.py
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# SPDX-FileCopyrightText: 2023 Christopher Parrott for Pimoroni Ltd | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .common import ADC_LOW, ADC_HIGH, ADC_FLOAT, ADC_ANY, LOW, HIGH | ||
from .led_strip import LEDStripModule | ||
from .quad_servo_direct import QuadServoDirectModule | ||
from .quad_servo_reg import QuadServoRegModule | ||
from .big_motor import BigMotorModule | ||
from .dual_motor import DualMotorModule | ||
from .dual_switched import DualSwitchedModule | ||
from .bench_power import BenchPowerModule | ||
from .audio_amp import AudioAmpModule | ||
from .proto import ProtoPotModule | ||
|
||
KNOWN_MODULES = ( | ||
LEDStripModule, | ||
QuadServoDirectModule, | ||
QuadServoRegModule, | ||
BigMotorModule, | ||
DualMotorModule, | ||
DualSwitchedModule, | ||
BenchPowerModule, | ||
AudioAmpModule, | ||
ProtoPotModule) | ||
# SPDX-FileCopyrightText: 2023 Christopher Parrott for Pimoroni Ltd | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .common import ADC_LOW, ADC_HIGH, ADC_FLOAT, ADC_ANY, LOW, HIGH | ||
from .led_strip import LEDStripModule | ||
from .quad_servo_direct import QuadServoDirectModule | ||
from .quad_servo_reg import QuadServoRegModule | ||
from .big_motor import BigMotorModule | ||
from .dual_motor import DualMotorModule | ||
from .dual_switched import DualSwitchedModule | ||
from .bench_power import BenchPowerModule | ||
from .audio_amp import AudioAmpModule | ||
from .proto import ProtoPotModule | ||
|
||
KNOWN_MODULES = ( | ||
LEDStripModule, | ||
QuadServoDirectModule, | ||
QuadServoRegModule, | ||
BigMotorModule, | ||
DualMotorModule, | ||
DualSwitchedModule, | ||
BenchPowerModule, | ||
AudioAmpModule, | ||
ProtoPotModule) |
Oops, something went wrong.