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