본문 바로가기
3D프린팅

DIY Tiny OLED I2C full graphics controller

by YJHTPII 2022. 5. 16.
반응형

https://reprap.org/forum/read.php?13,499572,page=4

 

DIY Tiny OLED I2C full graphics controller

QuoteSkimmy visited your store, can't put things in cart with Safari, changed to chrome, put whole Displayassembly in cart, proceeded to checkout, saw 34€ shippingfee and no option to change this, closed chrome. I'm lazy and for sure would have paid 30

reprap.org

 

// SSD1306 OLED generic display support
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: [code.google.com]
#define U8GLIB_SSD1306


 




--------------------------------------------------------------------------------------------------------------------------------------------------------
#elif defined(SSD1306_OLED_I2C_CONTROLLER) || defined(SH1106_OLED_I2C_CONTROLLER)
#define BTN_EN1 31
#define BTN_EN2 33
#define BTN_ENC 35
#define BEEPER 37
#define LCD_SDSS 53
#define SDCARDDETECT -1
#define KILL_PIN -1

#elif defined(LCD_I2C_PANELOLU2)
#define BTN_EN1 47 // reverse if the encoder turns the wrong way.

 

 

 

https://reprap.org/forum/read.php?13,499572

 

DIY Tiny OLED I2C full graphics controller

Quoteenif Thanks, Andrew! As for adding a header for the Wifi module, the RX0/TX0 signals would require 2 extra wires to the tinyOLED (whereas the I2C signals are already there for the display). Also there is already a 4-pin header with exactly the 4 neede

reprap.org

 

 

 


... connected to the RAMPS

 


... and to the Sanguinololu

 



The modifications to Marlin are only minimal changes in the files Configuration.h, Conditionals.h, dogm_lcd_implementation.h, pins_SANGUINOLOLU_11.h and pins_RAMPS_13.h. The attached patch file contains all the changes needed to the current version 1.0.3 of Marlin.

For those wanting printing from an SD-card (I don't), it is easy to add one of these cheap SPI based micro-SD modules that can be ordered on eBay for less than 2$, since the standards SPI pins used for the SD-cards are left untouched by the OLED display. Here pictures of my test using the tiny OLED controller together with an micro-SDcard module, on both RAMPS and Sanguinololu:

 

 

 




I know, buying a ready made 2004 or full graphic LCD controller is so cheap today, that you won't save any money by building things yourself. But that was not my aim for this project, rather my goal was (other than the fact that I really like tinkering) to have something really small, need only a minimum of cabling, draws only little current and is also working on 3.3V...

반응형

댓글