Show Posts
Pages: [1] 2 3 ... 13
1  Using Arduino / Displays / Re: SSD1306 128x64 to 64x48 size Oled Display on: July 22, 2014, 02:00:05 pm
I have simple working test code (attached) for the 128X64 that I'm hoping to modify for the smaller display. Do you have experience with the SSD1306? It looks like the colomn, row values will have to be adjusted. Right now on the smaller display it works but the first few and last characters cut off. 

2  Using Arduino / Displays / Re: SSD1306 128x64 to 64x48 size Oled Display on: July 22, 2014, 11:31:10 am
After looking into it, I see there is a whole lot more to it then just tweaking a line or two in the init file.
3  Using Arduino / Displays / SSD1306 128x64 to 64x48 size Oled Display on: July 21, 2014, 07:33:21 am
I've been using the 128x64 oled display that uses the SSD1306 driver and I'd like to try a smaller sized 64X48 one. It looks like defining the smaller size is in the initialization. It might be the line sendcommand(0x2F); //--1/48 duty    //was sendcommand(0x3F) for 128X64 sized display but I have to test.

If anyone is using a 64x48 sized display and can help then please let me know.

This is my 128x64 init only code:

static void init_OLED(void)
  sendcommand(0xae); //display off
  sendcommand(0xa6);            //Set Normal Display (default)
    // Adafruit Init sequence for 128x64 OLED module
    sendcommand(0xAE);             //DISPLAYOFF
    sendcommand(0xD5);            //SETDISPLAYCLOCKDIV
    sendcommand(0x80);            // the suggested ratio 0x80
    sendcommand(0xA8);            //SSD1306_SETMULTIPLEX
    sendcommand(0x2F); //--1/48 duty    //was sendcommand(0x3F) for 128X64
    sendcommand(0xD3);            //SETDISPLAYOFFSET
    sendcommand(0x0);             //no offset
    sendcommand(0x40 | 0x0);      //SETSTARTLINE
    sendcommand(0x8D);            //CHARGEPUMP
    sendcommand(0x20);             //MEMORYMODE
    sendcommand(0x00);             //0x0 act like ks0108
    sendcommand(0xA0 | 0x1);      //SEGREMAP   //Rotate screen 180 deg
    sendcommand(0xC8);            //COMSCANDEC  Rotate screen 180 Deg
    sendcommand(0xDA);            //0xDA
    sendcommand(0x12);           //COMSCANDEC
    sendcommand(0x81);           //SETCONTRAS
    sendcommand(0xCF);           //
    sendcommand(0xd9);          //SETPRECHARGE
    sendcommand(0xDB);        //SETVCOMDETECT               
    sendcommand(0xA4);        //DISPLAYALLON_RESUME       
    sendcommand(0xA6);        //NORMALDISPLAY             

  sendcommand(0x2e);            // stop scroll
  //----------------------------REVERSE comments----------------------------//
  //  sendcommand(0xa0); //seg re-map 0->127(default)
  //  sendcommand(0xa1); //seg re-map 127->0
  //  sendcommand(0xc8);
  //  delay(1000);
  //----------------------------REVERSE comments----------------------------//
  // sendcommand(0xa7);  //Set Inverse Display 
  // sendcommand(0xae); //display off
  sendcommand(0x20);            //Set Memory Addressing Mode
  sendcommand(0x00);            //Set Memory Addressing Mode ab Horizontal addressing mode
  //  sendcommand(0x02);         // Set Memory Addressing Mode ab Page addressing mode(RESET) 
  for(int i=0;i<128*8;i++)     // show 128* 64 Logo
  sendcommand(0xaf); //display on

4  Using Arduino / Displays / Re: Tiny size displays (any) on: July 07, 2014, 06:17:56 am
That little 0.5" display is so tiny. Didn't know they made them that small.
5  Using Arduino / Displays / Re: U8glib and SSD1306 I2C on: April 22, 2014, 06:26:14 am
Have you tried another library to rule out a hardware issue? I have different code that is working on that display.
6  Using Arduino / Displays / Color Oled Display animation files on: April 08, 2014, 07:37:07 am
Freetronics sells a nice 128x128 color oled display with a fire animation:
The animation is on the microSD card in a directory as a series of .bmp files. I believe the Arduino just quickly dumps each .bmp file onto the screen. Does anyone know of software that creates the animation files? I'd like to create my own simple animation.
7  Using Arduino / Networking, Protocols, and Devices / NRF24L01 vs NRF24L01+ current draw on: March 12, 2014, 11:39:22 am
Does anyone know what the difference in current draw is of the NRF24L01 vs the NRF24L01+ RF modules? I'm pretty sure I have the non '+' version because i'm getting 14mA on a transmission and 0.8mA when sleeping. Hopefully I can drop in a '+" and see it drop a bit more.
8  Using Arduino / Microcontrollers / Re: Struggling with bootloader onto TQFP atmegas on: February 28, 2014, 03:37:55 pm
You are correct. No cap to ground on the reset line. I have no idea where I got that from. I'll check the original rev 1 design. Sorry about causing any confusion.
9  Using Arduino / Microcontrollers / Re: Struggling with bootloader onto TQFP atmegas on: February 28, 2014, 10:22:40 am
You should see it on every Arduino using the 328P. Check out a schematic for the UNO or nano. Pretty much every Arduino except for the Leonardo.  I design custom arduino derivatives all the time and had the exact same problem.
10  Using Arduino / Microcontrollers / Re: Struggling with bootloader onto TQFP atmegas on: February 28, 2014, 08:23:36 am
For the 328P you need a 0.1uF capacitor going from the reset line to ground along with your 10K from reset to vcc. The 32u4 only requires the 10K from reset to vcc. No capacitor.
11  Using Arduino / Displays / Re: Color 128x128 BMP to array converter? on: February 17, 2014, 03:03:40 pm
BuyDisplay is where I grabbed my glass. Then I made my own pcb with all the parts they suggest. On the next rev I'll add an sd card. Schematic attached.

12  Using Arduino / Displays / Color 128x128 BMP to array converter? on: February 17, 2014, 08:17:31 am

I have one of these color 128x128 oled displays. The adafruit site the demo uses a micro SD card to store the bmp image. If there is enough room on the micro to store a color image instead of using sd card then a BMP to array converter would be great. LCDassistant works great for the smaller mono displays that I use.
13  Products / Arduino Yún / Re: OLED and Bridge lib conflict? on: February 06, 2014, 02:29:00 pm
Strange. I'm using an i2c oled on the Yun with no issues

My setup looks like...
void setup()
  //initialize the digital pin as an output.
  pinMode(led, OUTPUT); 
  // Initialize I2C and OLED Display
  reset_display();             // Clear logo
  Bridge.begin();              // initialize Bridge
  Serial.begin(9600);    // initialize serial 

14  Using Arduino / Displays / Re: Strange OLED display problem on: January 10, 2014, 03:54:44 pm
Excellent. That's exactly what I needed to know.

15  Using Arduino / Displays / Strange OLED display problem on: January 10, 2014, 12:51:25 pm
I have a new color SSD1351 OLED display from Buy-Display working with the Adafruit library that works fine except for a strange background white color thats visible whenever something is on the screen. It can be text or graphics but its only there in back of an object. Oled displays have no backlight so the whole thing should be black except for the text or graphics. In the picture the area above and below the circle is back. If I drew a really tiny circle then the band of background color would be thinner. When I draw nothing then the whole thing is dead back.

I'm not sure what to do? Has anyone ever seen something like this?

Pages: [1] 2 3 ... 13