File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99from typing import Iterable , List
1010
1111import pslab .protocol as CP
12- from pslab .bus .i2c import I2CMaster
13- from pslab .bus .spi import SPIMaster
1412from pslab .instrument .logic_analyzer import LogicAnalyzer
1513from pslab .instrument .multimeter import Multimeter
1614from pslab .instrument .oscilloscope import Oscilloscope
1715from pslab .instrument .power_supply import PowerSupply
1816from pslab .instrument .waveform_generator import PWMGenerator , WaveformGenerator
19- from pslab .peripherals import NRF24L01
2017from pslab .serial_handler import SerialHandler
2118
2219
@@ -48,9 +45,6 @@ def __init__(
4845 self .pwm_generator = PWMGenerator (device = self )
4946 self .multimeter = Multimeter (device = self )
5047 self .power_supply = PowerSupply (device = self )
51- # self.i2c = I2CMaster(device=self)
52- # self.spi = SPIMaster(device=self)
53- # self.nrf = NRF24L01(device=self)
5448
5549 @property
5650 def temperature (self ):
@@ -120,11 +114,7 @@ def _stop_ctmu(self):
120114 self .get_ack ()
121115
122116 def reset (self ):
123- """Reset the device.
124-
125- Standalone mode will be enabled if an OLED is connected to the I2C
126- port.
127- """
117+ """Reset the device."""
128118 self .send_byte (CP .COMMON )
129119 self .send_byte (CP .RESTORE_STANDALONE )
130120
You can’t perform that action at this time.
0 commit comments