MichaelMeissner
Senior Member+
I'm doing a Halloween project (evolution of my shutter release programs and the uncanny eyes display), and I want to combine several things on the same Teensy 3.2. I can use two teensys (one to do sound, neopixels, & shutter release) and the second to do the uncanny eyes program (this is a program that does two eyes on 128x128 SPI OLED/LCD displays, and does so mostly without the library except for setup).
The hardware is:
I want to run the uncannyEyes program (https://learn.adafruit.com/animated-electronic-eyes-using-teensy-3-1) along with the other things. The program uses the DMA engine to update the eye display, but it does it on its own, and not through the library. In the past, I've had problems using neopixels (using the Adafruit Neopixel library) via the prop shield level shifter and smart displays using SPI transactions.
Does somebody have a program that they can share which uses Adafruit Neopixels (using the Adafruit library, not fastLed) and a smart display to show how to:
Now, I do have 3 alternatives, but at some point I would like to do it with one Teensy:
The hardware is:
- Teensy 3.2;
- Prop shield (either, at present, I'm not using the motion sensor, but at some point I may want to incorporate it);
- 2 Adafruit neopixel 16-LED rings;
- 2 Adafruit OLED 128x128 displays (ST7735 based, https://www.adafruit.com/product/1431) or 2 Adafruit TFT LCD 128x128 displays (SSD1351 base, https://www.adafruit.com/product/2088)
- Mono speaker
I want to run the uncannyEyes program (https://learn.adafruit.com/animated-electronic-eyes-using-teensy-3-1) along with the other things. The program uses the DMA engine to update the eye display, but it does it on its own, and not through the library. In the past, I've had problems using neopixels (using the Adafruit Neopixel library) via the prop shield level shifter and smart displays using SPI transactions.
Does somebody have a program that they can share which uses Adafruit Neopixels (using the Adafruit library, not fastLed) and a smart display to show how to:
- Wait for the current DMA actions to finish
- Add the proper SPI begin transaction before doing a neopixel call
- Set pin 7 high to enable the LED level shifter
- Call Neopixel play
- Set pin 7 low
- Do SPI end transaction so that the display can be used
Now, I do have 3 alternatives, but at some point I would like to do it with one Teensy:
- Use a second Teensy 3.2 to run the eyes, and do everything else on the first 3.2
- Use an external level shifter (74AHCT125) and put the neopixels on a separate pin
- Don't do neopixels
Last edited: