Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - SLTom992

Pages: [1]
1
OLEDs / Writing Messages with NHD-2.23-12832UCB3
« on: July 29, 2014, 01:55:59 PM »
While trying to use

Code: [Select]
    Show_Font57_12832(1, 17, 0, 4);
    Show_Font57_12832(1, 18, 0, 12);
    Show_Font57_12832(1, 19, 0, 20);
    Show_Font57_12832(1, 20, 0, 28);
    Show_Font57_12832(1, 34, 0, 36);
    Show_Font57_12832(1, 35, 0, 44);
    Show_Font57_12832(1, 36, 0, 52);

(0 1 2 3 A B C)

I am unable to get the letters to be any closer than with without distortion of the distance on only some of the letters.

Can anyone suggest why this would be or does anyone have a better function that works correctly? I've tried quite a few different things without getting anywhere. The SSD1305 manual is definitely not clear on this subject.

2
OLEDs / Scambled Eggs
« on: July 25, 2014, 04:22:03 PM »
I have the 12832 function library for the NewHaven NHD-2,23-12832. I made some modifications on the drivers since I have mine set up for 8080 and not 6800.

When I turn the display on I get a screen full of hash. None of the functions seem to do anything except Display_On_Off(); and possibly init though that may not work and the defaults allow it to work.

It appears as if it isn't getting any data writes. So here is driver for both Command and Data with the only difference the polarity of the D/C line: (PIC18)

Code: [Select]
   

( In the main init routines)

    TRISA = 0b00000011;
 
    ANSELA = 0x03;
 
    ADCON0 = 0b00000101;                // ADC 1 Enabled
    ADCON1 = 0b00000000;                // V ref = power and ground
    ADCON2 = 0b00111110;                //

    PORTA = 0b00000011;
    PORTC = 0b00100000;
    PORTD = 0b00000000;

// In Display.c

#define GPIOB PORTD
#define GPIOC PORTD
#define Send_Data (PORTA | 0b00010000)
#define Send_Command (PORTA & ~(0b00010000))
#define Chip_Deselect (PORTA | 0b000100000)
#define Chip_Select (PORTA & ~(0b000100000))
#define No_Read (PORTA | 0b00001000)
#define Read (PORTA & ~(0b00001000))
#define Write (PORTA & ~(0b00000100))
#define No_Write (PORTA | 0b00000100)
#define Dis_Reset (PORTC & ~(0b10000000))
#define Clear_Reset (PORTC | 0b10000000)

void oled_Command(unsigned char Data)   // 8080 mode
{
    LATC = Dis_Reset;
    LATC = Clear_Reset;
    LATA = No_Read;
    LATA = Send_Data;
    PORTD = Data;
    LATA = Chip_Select;
    LATA = Write;
    OLED_uDelay(0x04);               // Wait 100 usec
    LATA = No_Write;
    LATA = Chip_Deselect;
}


I have a two input scope and WR and CS work properly so I assume the other outputs are as well.

And anyone suggest why none of the functions such as Fill_Block, Fill RAM, Checkerboard, Show_Font57_12832(1, 17, 10, 10); and the like aren't working?

3
OLEDs / NHD-2.23-12832UCB3 C Library
« on: July 11, 2014, 12:57:13 PM »
Is there a C library available for this component that has an ASCII set-up and at least a demonstration of the graphics? All of the libraries I've found on line have a lot of stuff missing out of them. I have a parallel interface.

Pages: [1]