Skip to content

Commit

Permalink
all: Add missing imports for micropython.const.
Browse files Browse the repository at this point in the history
Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
  • Loading branch information
projectgus authored and dpgeorge committed Aug 16, 2023
1 parent ef864a4 commit 801910f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/bluetooth/ble_uart_repl.py
Expand Up @@ -7,6 +7,7 @@
import io
import os
import micropython
from micropython import const
import machine

from ble_uart_peripheral import BLEUART
Expand Down
1 change: 1 addition & 0 deletions ports/nrf/examples/ssd1306_mod.py
Expand Up @@ -19,6 +19,7 @@
# disp = SSD1306_I2C_Mod(128, 64, i2c)

from ssd1306 import SSD1306_I2C
from micropython import const

SET_COL_ADDR = const(0x21)
SET_PAGE_ADDR = const(0x22)
Expand Down
1 change: 1 addition & 0 deletions ports/nrf/examples/ubluepy_eddystone.py
@@ -1,3 +1,4 @@
from micropython import const
from ubluepy import Peripheral, constants

BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE = const(0x02)
Expand Down
1 change: 1 addition & 0 deletions ports/stm32/boards/NUCLEO_WB55/rfcore_debug.py
Expand Up @@ -35,6 +35,7 @@
# See rfcore_firmware.py for more information.

from machine import mem8, mem16, mem32
from micropython import const
import stm

SRAM2A_BASE = const(0x2003_0000)
Expand Down

0 comments on commit 801910f

Please sign in to comment.