I figured out why this doesn’t work…
Apparenly, C++ mistakes this for a function declaration, so display variable is actually created.
The right way to do it is:
SSD1306Template<64, uint32_t> display;
(no parenthesis)
I figured out why this doesn’t work…
Apparenly, C++ mistakes this for a function declaration, so display variable is actually created.
The right way to do it is:
SSD1306Template<64, uint32_t> display;
(no parenthesis)
I tried your config file.
After changing ENABLE_SSD1306 to INCLUDE_SSD1306 it worked just fine with my display.
Sweet! Il try all that tonight when I get back from work. Next thing to figure out is how to write over the image with an ammo counter!
Just doing an ammo counter isn’t that hard.
Making it so that it can be cleanly configured from the prop and/or config file is a bit tricky, but I have some ideas.
I am more than confident you’ll figure it out! Thank you so much for your help!
Well, I am going to conclude that the OLED itself is busted. I spent the last two days tearing apart the scope to completely re-wire the OLED from scratch. And even after the corrections to the config, still not getting a splash screen or anything but what’s in the picture attached. Ordered a new one! Second time is a the charm hopefully!
That’s unfortunate, but I actually hope you’re right, as it’s really frustrating when things doesn’t work because of something simple…
Yeah, I was careful as I can be wiring it back up again, so I’m fairly certain that it’s not a bridged pad causing that. The only thing I can think of is that I accidentally touched the solder gun to the edge of the OLED at the very beginning of the install and left a tiny scorch mark on the side opposite the pads. It’s my very first OLED installation in anything though and I learned a lot! Plus our interaction lead to increased functionality for the mighty Proffieboard and will help people make their own Proffie blasters! So, overall I’m still calling this a win!
maybe breadboard it before wiring it up just to make sure.
ok, exactly two weeks later, new OLED and new update. Soldered it up, pulled the kill key and instantly got a battery level indicator! Yay!
No Proffie splash screen though, strange? Indicator of something missing in the code or something else? I’ll have to look at my font directory and make sure that I didn’t try putting some errant .bmp animation in there.
I think it’s because the blaster prop automatically turns “on” if there is no “poweron” sound.
So the display will do whatever it does when “on”.
That might not be what we want though, so we definitely need to figure out a way to customize the display contents.
So, I cycled through the sound fonts and when it came back around to the first font, the Proffie splash screen popped up as well as a test .bmp file that I had inside the font folder.
Also, how do you get the battery level indicator to stop interrupting the graphics? I’d like it to only display battery level after the last preset.
Second HUD scope test. Looking really good! Got a good angle for the reflective plastic after much fiddling. Cut a semicircle out of the raw sheet of plastic with the cricit machine so it fills the scope completely. The effect itself is really cool, very holographic in nature. A bit tiny, granted. But as soon as I find scope glass that magnifys, that should be resolved.
Things that are pretty much unfixable at this point are the screw that secures the brass turny thing shoots down into the scope. I could potentially dis assemble that, shave dowm the screw and reassemble it. Maybe someday. The biggest bummer is not successfully securing the wires to the bottom of the scope. Some of the “magic” is taken away, I feel like. But overall, pretty happy with it!
Things that are left to do are mostly all code related. Wish list: shot counter. battery level. Gun jam animation. Need to mirror the display as well. I know there is a 180 degree thing I can do… actually nix that I can just pre-mirror the graphics as they are being created.
Pics/vid? Sounds cool.
OLED code is getting a decent overhaul still, but display rate/speed looking promising!
https://photos.app.goo.gl/eYH5WAw1kpHM5WgcA
Yeah, I feel like interest in the OLED capabilities has increased a lot this year. It’s traditionally been a CFX thing to have robust support for that kind of thing, but the potential uses for blaster builds is huge as well as sabers of course. For blasters, having support for not only different sized displays as well as multiple displays will be awesome. There are a lot of cool things that I wonder about.
Found a nice magnifying glass that fits the eyepiece! Only… It completely obscures the see-through of the scope! Basically going against everything I was trying to achieve with this build, so… Although it does look cool and it does magnify the image of the HUD display, I’m going to just settle with the glass that came with the kit. I’ll shoot some video for posterity and to further document the process a little later.
You have a follow up? on this. also how did you run the wires.