1 # SPDX-FileCopyrightText: 2024 Brent Rubell for Adafruit Industries
 
   3 # SPDX-License-Identifier: MIT
 
   4 """NeoPixel write mocks for a generic board."""
 
   7 # pylint: disable=unused-argument
 
   8 def neopixel_write(gpio, buf):
 
   9     """Mocks a neopixel_write function"""
 
  10     # pad output buffer from 3 bpp to 4 bpp
 
  12     for i in range(0, len(buf), 3):
 
  14         buffer.append(buf[i + 2])
 
  15         buffer.append(buf[i + 1])