kopia lustrzana https://github.com/micropython/micropython-lib
all: Add missing const imports
Found by Ruff checking F821. Signed-off-by: Angus Gratton <angus@redyak.com.au>pull/714/head
rodzic
1f3002b537
commit
786c0ea895
|
@ -1,6 +1,7 @@
|
||||||
# MIT license; Copyright (c) 2022 Jim Mussared
|
# MIT license; Copyright (c) 2022 Jim Mussared
|
||||||
|
|
||||||
import micropython
|
import micropython
|
||||||
|
from micropython import const
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -44,6 +44,7 @@ while (True):
|
||||||
time.sleep_ms(100)
|
time.sleep_ms(100)
|
||||||
"""
|
"""
|
||||||
import array
|
import array
|
||||||
|
from micropython import const
|
||||||
|
|
||||||
|
|
||||||
_WHO_AM_I = const(0xF)
|
_WHO_AM_I = const(0xF)
|
||||||
|
|
|
@ -38,6 +38,7 @@ while (True):
|
||||||
time.sleep_ms(10)
|
time.sleep_ms(10)
|
||||||
"""
|
"""
|
||||||
import machine
|
import machine
|
||||||
|
from micropython import const
|
||||||
|
|
||||||
_LPS22_CTRL_REG1 = const(0x10)
|
_LPS22_CTRL_REG1 = const(0x10)
|
||||||
_LPS22_CTRL_REG2 = const(0x11)
|
_LPS22_CTRL_REG2 = const(0x11)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# MicroPython package installer
|
# MicroPython package installer
|
||||||
# MIT license; Copyright (c) 2022 Jim Mussared
|
# MIT license; Copyright (c) 2022 Jim Mussared
|
||||||
|
|
||||||
|
from micropython import const
|
||||||
import requests
|
import requests
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# This module should be imported from REPL, not run from command line.
|
# This module should be imported from REPL, not run from command line.
|
||||||
import binascii
|
import binascii
|
||||||
import hashlib
|
import hashlib
|
||||||
|
from micropython import const
|
||||||
import network
|
import network
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
|
|
Ładowanie…
Reference in New Issue