|
Using the full graphic smart controller outside of 3d printing, without the RAMPS board December 18, 2014 03:41PM |
Registered: 11 years ago Posts: 48 |
#include "U8glib.h"
#include
//Pins to try:
//16, 17, 23
//U8GLIB_DOGM128(cs, a0 [, reset])
//U8GLIB_NHD27OLED_2X_BW u8g(16, 17, 23);
U8GLIB_ST7920_128X64_1X u8g(17, 23, 16);
void setup()
{
}
void loop()
{
// picture loop
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
// rebuild the picture after some delay
delay(1000);
}
void draw(void) {
// graphic commands to redraw the complete screen should be placed here
u8g.setFont(u8g_font_unifont);
u8g.drawStr( 0, 20, "Hello World!");
}
|
Re: Using the full graphic smart controller outside of 3d printing, without the RAMPS board December 18, 2014 07:16PM |
Registered: 12 years ago Posts: 14,691 |
|
Re: Using the full graphic smart controller outside of 3d printing, without the RAMPS board December 21, 2014 01:10PM |
Registered: 11 years ago Posts: 48 |
|
Re: Using the full graphic smart controller outside of 3d printing, without the RAMPS board December 21, 2014 03:52PM |
Registered: 12 years ago Posts: 14,691 |