FeatherWing OLED ID 4650 Adafruit bitmap

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gcm2
 
Posts: 11
Joined: Sun Oct 23, 2022 4:40 pm

FeatherWing OLED ID 4650 Adafruit bitmap

Post by gcm2 »

I have 2 of the OLED Featherwings, one is Arduino, the other CircuitPython. Curious if there is a way in CircuitPython usage (during initialize of the OLED) to display the nice Adafruit logo bitmap that shows in Arduino when it inits. I think I read in the Learn guide that this bitmap is internal? I assume that if the board is CircuitPython is knows to display the little Blinky... but not the other option? Thanks.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: FeatherWing OLED ID 4650 Adafruit bitmap

Post by adafruit_support_carter »

The logo is Arduino only. It's "internal" to the Arduino SSD1306 library:
https://github.com/adafruit/Adafruit_SSD1306
Specifically, it's defined in this file:
https://github.com/adafruit/Adafruit_SS ... r/splash.h

Most people ask how to turn it off :)
There's a compile flag in the Arduino library for that:
https://github.com/adafruit/Adafruit_SS ... 1306.h#L35

So it's not available via CircuitPython in the same manner.

What's your motivation for wanting to do this in CircuitPython?

User avatar
gcm2
 
Posts: 11
Joined: Sun Oct 23, 2022 4:40 pm

Re: FeatherWing OLED ID 4650 Adafruit bitmap

Post by gcm2 »

Understood thanks. I just think it looks good... Now I know no workee for CP.

I'm using Arduino on a RFM69 MO Radio Feather, and when I receive data, I'm init'ing the FeatherWing display for a second or 2 to show the bitmap on receiving a hit, then display the data recv'd. If this is bad practice (init repeatedly), then I'll not do it anymore... I guess I'm the oddball who doesn't want to turn it off!

Not using CP on the MO due to it's limited memory...

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: FeatherWing OLED ID 4650 Adafruit bitmap

Post by adafruit_support_carter »

It should be possible to redraw the logo bitmap without re-initing. Here's the code that does the drawing:
https://github.com/adafruit/Adafruit_SS ... #L500-L508

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”