We made a few starter projects to demonstrate features of the EyeLights LED Glasses and Driver such as the accelerometer or microphone input. They’re not highly polished demos, but show how to set up the basics. Consider them starting points and fuel for your own creative ideas.
The next few pages showcase CircuitPython examples. If Arduino is more your style, we have a separate starter projects section for that later in this guide.
The examples rely on the adafruit_is31fl3741 library for CircuitPython, and each may then require one or two other libraries. Using the “Download Project Bundle” button for each project will gather up all the files you need!
Call .begin()
on the IS31FL3741 object last, to make sure your I2C bus is running at the higher speed of 400 kHz.
Use a Faster I2C Bus Speed
The IS31FL3741 display and the LIS3DH accelerometer on the EyeLights both use I2C. Both devices can use an I2C clock speed of 400 kHz. A faster clock speed will speed up display changes.
However, the LIS3DH library sets the I2C bus speed to 100 kHz when it starts up. The IS31FL3741 library sets it to 400 kHz. So initialize the LIS3DH first and then initialize the IS31FL3741. Or, call Wire.setClock(400000)
after all the initializations.
Adafruit_LIS3DH accel; Adafruit_EyeLights_buffered glasses; accel.begin(); // sets I2C bus clock to 100 kHz glasses.begin(); // sets I2C bus clock to 400 kHz
Page last edited August 23, 2024
Text editor powered by tinymce.