Skip to content

Commit

Permalink
Removed some unneeded imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ZodiusInfuser committed Aug 21, 2023
1 parent bf1f6e5 commit f1c374e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 12 deletions.
3 changes: 1 addition & 2 deletions examples/yukon_adaptive_big_motor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time
import math
from pimoroni_yukon import Yukon
from pimoroni_yukon.modules import BigMotorModule
import tca

SPEED = 5 # The speed that the motors will cycle at
UPDATES = 50 # How many times to update LEDs and Servos per second
Expand All @@ -13,7 +13,6 @@
# List to store the modules
motor_modules = []

import tca

def print_tca(message=""):
print(f"---- {message} -----")
Expand Down
1 change: 0 additions & 1 deletion examples/yukon_adaptive_motor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import time
import math
from pimoroni_yukon import Yukon
from pimoroni_yukon.modules import DualMotorModule
Expand Down
1 change: 0 additions & 1 deletion examples/yukon_adaptive_servo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import time
import math
from pimoroni_yukon import Yukon
from pimoroni_yukon.modules import QuadServoDirectModule, QuadServoRegModule
Expand Down
5 changes: 0 additions & 5 deletions examples/yukon_audio_amp.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import time
from pimoroni_yukon import Yukon
from pimoroni_yukon.modules import AudioAmpModule

import array
import time
import math
from machine import I2S
import struct
Expand Down Expand Up @@ -32,7 +28,6 @@ def make_tone(rate, bits, frequency):
samples_per_cycle = rate // frequency
sample_size_in_bytes = bits // 8
samples = bytearray(4 * samples_per_cycle * sample_size_in_bytes)
volume_reduction_factor = 64
range = pow(2, bits) // 2

if bits == 16:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

from .common import YukonModule, ADC_LOW, LOW, HIGH
from machine import Pin, PWM
from machine import Pin
from motor import Motor, SLOW_DECAY
from ucollections import OrderedDict
from pimoroni_yukon.errors import FaultError, OverCurrentError, OverTemperatureError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

from .common import YukonModule, ADC_HIGH, HIGH
from machine import Pin, PWM
from machine import Pin
from ucollections import OrderedDict
from pimoroni_yukon.errors import FaultError, OverTemperatureError

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

from .common import YukonModule, ADC_FLOAT, LOW, HIGH
from machine import Pin, PWM
from machine import Pin
from servo import Servo
from ucollections import OrderedDict
from pimoroni_yukon.errors import FaultError, OverTemperatureError
Expand Down

0 comments on commit f1c374e

Please sign in to comment.