all: Add missing const imports

Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
pull/714/head
Angus Gratton 2023-08-09 18:50:57 +10:00 zatwierdzone przez Damien George
rodzic 1f3002b537
commit 786c0ea895
5 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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)

Wyświetl plik

@ -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)

Wyświetl plik

@ -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

Wyświetl plik

@ -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