]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - displayio/_helpers.py
Speed improvements by making larger buffer
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / _helpers.py
index cbff9f40a72c91432e1742cd85a3d79fe55b990e..39e1c11c3a7c1bcf1d9c881aa6f82eac73a35df6 100644 (file)
@@ -20,10 +20,12 @@ displayio for Blinka
 __version__ = "0.0.0+auto.0"
 __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
 
+
 def clamp(value, min_value, max_value):
     """Clamp a value between a minimum and maximum value"""
     return max(min(max_value, value), min_value)
 
+
 def bswap16(value):
     """Swap the bytes in a 16 bit value"""
-    return (value & 0xFF00) >> 8 | (value & 0x00FF) << 8
\ No newline at end of file
+    return (value & 0xFF00) >> 8 | (value & 0x00FF) << 8