Sketch is too big
 
Notifications
Clear all

Sketch is too big  

  RSS

rjpiston
(@rjpiston)
New Member
Joined: 2 months ago
Posts: 4
22/07/2020 5:41 pm  

I have an arduino micro and an OLED Display (I2C SSD1306) I've confirmed both work as I've successfully loaded the adafruit example sketch and can see the demo load on the screen.

I when I use the Arduino setup tool in simhub, I keep getting a sketch too big error message. I've only selected the oled screen module from within the setup.

Is there code that I can manually remove that I don't need?

Thanks


Quote
Wotever
(@admin5435)
Member Admin
Joined: 3 years ago
Posts: 335
22/07/2020 6:28 pm  

Hi ! You can't use the oled with the Arduino micro on simhub due to memory limitations : https://github.com/SHWotever/SimHub/wiki/Arduino-SSD1306-0.9 6''-Oled-I2C#restrictions

The test sketch will work but there is no room left for the core of simhub communication. 

If you want only the oled you need the Arduino nano (there is more memory available) or the Arduino mega if you want to add LEDs for instance. (Mega can be found in small form factors.)

 


ReplyQuote
rjpiston
(@rjpiston)
New Member
Joined: 2 months ago
Posts: 4
22/07/2020 7:24 pm  

@admin5435 thank you for the quick reply. I may upgrade to the mega as I'd like to have buttons as well as the screen. 


ReplyQuote
rjpiston
(@rjpiston)
New Member
Joined: 2 months ago
Posts: 4
22/07/2020 7:27 pm  

Might be the wrong forum, but will a nano be able to power the OLED, 1 red led, and 17 buttons? In terms of using the simhub communication sketch

This post was modified 2 months ago by rjpiston

ReplyQuote
Wotever
(@admin5435)
Member Admin
Joined: 3 years ago
Posts: 335
22/07/2020 7:34 pm  

@rjpiston no the nano won't work, as described in the wiki the nano is too tight for running anything else aside of the oled.


ReplyQuote
rjpiston
(@rjpiston)
New Member
Joined: 2 months ago
Posts: 4
22/07/2020 7:45 pm  

@admin5435 ok thanks. Is it possible then to run a micro for buttons/LEDs and a nano strictly for the for oled screen? And inside the button box have a 2port USB hub to plug both Arduinos into, so I only need one USB out from the box to the pc. I'm assuming the micro(buttons) wouldn't need any simhub sketches on it, just standard button sketch, and the nano would have strictly the simhub sketch for the oled. Let me know if im on the right track here lol thanks! 

This post was modified 2 months ago by rjpiston

ReplyQuote
Share: