There were several things I had to take into account to make it fit inside the case nicely. I played around with the arrangment of the components for a while before settling on the final layout.
We'll start with the Huzzah, OLED and the Doubler.
There's something to be aware of here. I wanted the OLED screen to be on the top, however, when you put it on the top the Lipo connector is on the inside of the board. What I did was arrange everything so that the connector faced out. The only issue with this is that then the OLED is upside down.
Notice in this image the OLED board is upside down.
Luckily for us there is a line of code we can put in to compensate for this and flip the text on the screen so everything is right side up again.
display.setRotation(2); //This rotates everything on the screen 180 degrees
I started by flipping the doubler over and soldering the Huzzah into place.
One other consideration I made was the height of the OLED board. Since the Feather has a lipo connector, it is taller than the screen. I wanted the screen to be as close to the front of the case as possible so I couldn't just place it flush with the protoboard.
When I was done soldering the OLED board everything looked like this. Note that the OLED board is on the right in this image.
Once everything is put together I uploaded my code to see if everything worked.
Notice the the text on the screen is upside down. Again we'll address this in the code when we get there.
It works!
Text editor powered by tinymce.