Compare commits

..

3 commits

Author SHA1 Message Date
3845db7260 Correct pylint errors
- order of imported modules
 - spurious missing pygame.init() due https://stackoverflow.com/questions/50569453/why-does-it-say-that-module-pygame-has-no-init-member
2020-08-24 15:47:15 -05:00
Dan Halbert
c92b40c343
Merge pull request #28 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2020-08-23 13:28:14 -04:00
917990f67d remove bad-whitespace pylint directive 2020-08-23 11:01:51 -05:00
3 changed files with 5 additions and 5 deletions

View file

@ -52,7 +52,6 @@ from micropython import const
# Registers are defined below in the class. These are possible register values. # Registers are defined below in the class. These are possible register values.
# Operating Modes # Operating Modes
# pylint: disable=bad-whitespace
_NORMAL_MODE = const(0x00) _NORMAL_MODE = const(0x00)
_SLEEP_MODE = const(0x10) _SLEEP_MODE = const(0x10)
_STAND_BY_60 = const(0x20) _STAND_BY_60 = const(0x20)
@ -81,7 +80,6 @@ _PIXEL_ARRAY_WIDTH = const(8)
_PIXEL_ARRAY_HEIGHT = const(8) _PIXEL_ARRAY_HEIGHT = const(8)
_PIXEL_TEMP_CONVERSION = 0.25 _PIXEL_TEMP_CONVERSION = 0.25
_THERMISTOR_CONVERSION = 0.0625 _THERMISTOR_CONVERSION = 0.0625
# pylint: enable=bad-whitespace
def _signed_12bit_to_float(val): def _signed_12bit_to_float(val):

View file

@ -5,11 +5,11 @@ import os
import math import math
import time import time
import numpy as np
import pygame
import busio import busio
import board import board
import numpy as np
import pygame
from scipy.interpolate import griddata from scipy.interpolate import griddata
from colour import Color from colour import Color
@ -28,7 +28,9 @@ MAXTEMP = 32.0
COLORDEPTH = 1024 COLORDEPTH = 1024
os.putenv("SDL_FBDEV", "/dev/fb1") os.putenv("SDL_FBDEV", "/dev/fb1")
# pylint: disable=no-member
pygame.init() pygame.init()
# pylint: enable=no-member
# initialize the sensor # initialize the sensor
sensor = adafruit_amg88xx.AMG88XX(i2c_bus) sensor = adafruit_amg88xx.AMG88XX(i2c_bus)

View file

@ -4,9 +4,9 @@
import sys import sys
import math import math
import time import time
import numpy as np
import busio import busio
import board import board
import numpy as np
from scipy.interpolate import griddata from scipy.interpolate import griddata
from colour import Color from colour import Color
import adafruit_amg88xx import adafruit_amg88xx