(I have a system that avoids having to overwrite code,py, just use import)
Code: Select all
# Importing a file lets you run it
# without having to overwrite code.py
#import bubble
#import clue_slideshow
import ble_adafruit_clue
When I loaded ble_adavruit_clue.py ( and the additional libraries adafruit_ble and adafruit_ble_adafruit )
and connected, the app showed a "Connecting Services" box then a list of services then a "perhipheral disconnected" box.
The Clue displayed an error "buffer is too short by 6 bytes at line 122 in adafruit_ble_adafruit/addressabie_pixel_service.py"
I got the source for the addressabie_pixel_service library and added 6
Code: Select all
if self._pixel_packet_buf is None:
self._pixel_packet_buf = bytearray(
self._pixel_packet.packet_size # pylint: disable=no-member
+6 #attempt to fix bug
)
When I run that and press one of the piano keys I get an error li line 82 of tone_service.py
saying the buffer is too short by (2550 - it varies) bytes. Just adding bytes to the buffer causes a different error
"buffer size must match format". Any suggestions?