0

Adafruit_SSD1305 library & Feather M0
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit_SSD1305 library & Feather M0

by danchen on Sat Aug 12, 2017 10:15 am

Does the Adafruit_SSD1305 Library works with Feather M0 with
Monochrome 2.42" 128x64 OLED Graphic Display Module Kit
https://www.adafruit.com/product/2719

danchen
 
Posts: 5
Joined: Sat Nov 14, 2015 6:27 pm

Re: Adafruit_SSD1305 library & Feather M0

by adafruit_support_rick on Sat Aug 12, 2017 11:15 am

It should work. There are no hardware dependencies.
There were some problems with the library, which I fixed. Unfortunately, I don't have one here to test.

adafruit_support_rick
 
Posts: 34332
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Adafruit_SSD1305 library & Feather M0

by danchen on Sat Aug 12, 2017 6:02 pm

Thank you!

When I run the test code "ssd1305test.ino", I get
'srandom' was not declared in this scope

Is there something that I forgot to include?
thanks!
Last edited by danchen on Sat Aug 12, 2017 6:06 pm, edited 1 time in total.

danchen
 
Posts: 5
Joined: Sat Nov 14, 2015 6:27 pm

Re: Adafruit_SSD1305 library & Feather M0

by franklin97355 on Sat Aug 12, 2017 6:05 pm

srandom may be in the avr core libraries and not available to the M0 code. You could write your own function to replace this.

franklin97355
 
Posts: 16309
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit_SSD1305 library & Feather M0

by adafruit_support_rick on Sun Aug 13, 2017 12:14 pm

Srandom is an old Arduino call. I fixed the example sketch so that it uses modern function calls. Please get the latest sketch from the library

adafruit_support_rick
 
Posts: 34332
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Adafruit_SSD1305 library & Feather M0

by danchen on Sun Aug 13, 2017 12:24 pm

Thank you! It works great with M0 now!

danchen
 
Posts: 5
Joined: Sat Nov 14, 2015 6:27 pm

Please be positive and constructive with your questions and comments.