Sketch is too big
 
Notifications
Clear all

Sketch is too big

6 Posts
2 Users
0 Reactions
2,286 Views
(@rjpiston)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

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
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

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)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

@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)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

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 4 years ago by rjpiston

   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

@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)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

@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 4 years ago by rjpiston

   
ReplyQuote
Share: