Skip to content

Commit a2605ae

Browse files
committed
Organise imports
1 parent 3e38277 commit a2605ae

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

firmware/firmware_update.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
# Usage: python firmware_update.py filename.hex
66

77
import binascii
8-
98
import sys
109
import time
1110

12-
1311
from smbus2 import SMBus, i2c_msg
1412

15-
1613
# Small nuvoton:
1714
bootloader_id = 0xB001
1815
bootloader_version = 172

firmware/set_i2c_address.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
# 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
4343
# 70: -- -- -- -- -- -- -- --
4444

45-
import time
4645
import os
4746
import sys
47+
import time
4848

49+
import RPi.GPIO as GPIO
4950
from smbus2 import SMBus, i2c_msg
5051

51-
import RPi.GPIO as GPIO
5252
GPIO.setmode(GPIO.BCM)
5353

5454
CHIP_ID = 0xBA11

0 commit comments

Comments
 (0)