__version__ = "1.1.0"
"Module version string."
version = (1,1,0)
"Module version tuple."
import time
[docs]def sleep(seconds):
"""Sleep for the specified number of seconds.
Args:
seconds (int, long, float): duration in seconds.
"""
time.sleep(seconds)
[docs]def sleep_ms(milliseconds):
"""Sleep for the specified number of milliseconds.
Args:
milliseconds (int, long, float): duration in milliseconds.
"""
time.sleep(milliseconds / 1000.0)
[docs]def sleep_us(microseconds):
"""Sleep for the specified number of microseconds.
Args:
microseconds (int, long, float): duration in microseconds.
"""
time.sleep(microseconds / 1000000.0)
from periphery.gpio import GPIO, GPIOError
from periphery.led import LED, LEDError
from periphery.pwm import PWM, PWMError
from periphery.spi import SPI, SPIError
from periphery.i2c import I2C, I2CError
from periphery.mmio import MMIO, MMIOError
from periphery.serial import Serial, SerialError