millisecond) #start_datetime = (2017,07,20,4,9,0,0,0) #rtc_module.datetime(start_datetime) # Clear the screen def clear_screen(oled): oled.fill(0) oled.show() # Return a string to print the day of the week def get_weekday(day): if day == 1: return "Sunday" elif day == ...
RTC.datetime() RTC.wakeup() RTC.info() RTC.calibration() Servo类 –三线hobby舵机驱动 构造函数 pyb.Servo 方法 Servo.angle() Servo.speed() Servo.pulse_width() Servo.calibration() SPI类 – 串行外设接口 构建函数 pyb.SPI 方法 SPI.deinit() SPI.init() SPI.recv() SPI.send_recv() 常量 ...
MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. The MicroPython pyboard is a compact electronic circuit board that runs MicroPy...
datetime()) 构造¶ class pyb.RTC¶ 创建一个 RTC 对象。方法¶ RTC.datetime([datetimetuple])¶ 获取或设置 RTC 的日期和时间。 当没有参数时,此方法返回一个包含当前日期和时间的 8 元组。当有 1 个参数时(为 8 元组),它设置日期和时间(并将 subseconds 重置为 255)。 8 元组具有以下格式:...
SET_CHARGE_PUMP= const(0x8D)#Subclassing FrameBuffer provides support for graphics primitives#http://docs.micropython.org/en/latest/pyboard/library/framebuf.html classSSD1306(framebuf.FrameBuffer):def __init__(self, width, height, external_vcc): ...
git config --global user.name userName git config --global user.email userEmail 分支6 标签8 Damien Georgelogging: Add support for custom handlers.7b1161d5年前 1269 次提交 提交 __future__ all: setup.py: Switch to sdist_upip. 7年前 ...
rtc.datetime((2020,12,31,4,23,58,59,0))#set a specific date and time (year, month, day, weekday(0 for Monday), hour, minute, second, total seconds)rtc.datetime()#get date and time UART Use theUARTmodule throughumachinemodule ...
() - change copyright line to mention "authors and contributors" - update machine.TouchPad docs for ESP32-S2 and ESP32-S3 - fix some comments and error messages with doubled-up words - library/binascii: add docs for binascii.crc32 method - fix the quickref documentation of rtc.datetime(...
Scanning dependencies of target bs2_default_library make[3]: Leaving directory '/root/micropython/micropython/ports/rp2/build-RPI_PICO2_W' make[3]: Entering directory '/root/micropython/micropython/ports/rp2/build-RPI_PICO2_W' [ 5%] Building ASM object pico-sdk/src/rp2350/boot_stage2/CMak...
deffunc(datetime:tuple=None)->tuple With no arguments, this method acts as a getter and returns an 8-tuple with the current date and time. With 1 argument (being an 8-tuple) it sets the date and time. The 8-tuple has the following format: ...