![]() ![]() The problem is that there are not other pins that the ones I listed. The maximum voltage for logic signals is 3.5V did you feed 5V into it from an Arduino?Īnd once it started smelling like it was burned After VCC become stable, send command AFh for display ON.After set RES# pin LOW (logic low), wait for at least 2us (t2).Set RES# pin LOW (logic low) for at least 2us (t1) (4) and then HIGH (logic high). After VCI, VDDIO become stable, set wait time at least 1ms (t0) for internal VDD become stable.Is that the only voltage you used? The data sheet says:-ĭid you do this as recommended by the data sheet:. I connected the VCC and GND to a protoboard with 20 volts, Thanks for your help! I would really really appreciate it.Ĭode in code tags please, read the how to use the forum sticky post. It makes no functional difference whether you use 20/21 or SDA/SCL because they are electrically connected. ![]() The I2C pins are 20 and 21, but you might prefer to use the pins marked 'SDA' and 'SCL', simply because this is less confusing. ![]() Ram_val=pgm_read_byte(&(font)) // Read from Flash memoery Note that on the Mega, A4 and A5 are not the I2C pins. Ram_val=pgm_read_byte(&(show1)) // Read from Flash memoery Void fill(unsigned char data1,unsigned char data2) Write_Command(0xca) //set multiplex ratio Write_Command(0xc7) //set master current control Write_Command(0xc1) //set contrast current Write_Command(0xbb) //set pre-charge period Write_Command(0xb8) //gamma look up table Write_Command(0xb6) //set second pre-charge period Write_Command(0xb4) //set segment low voltage Write_Command(0xb3) //display clock divider / oscillator frequency Write_Command(0xa1) //set display start line Write_Command(0xa0) //set re-map&color depth Void Set_Address(unsigned char a,unsigned char b,unsigned char c,unsigned char d) SPI.setClockDivider(SPI_CLOCK_DIV2) //SCK frequency The library Image.h includes images for all the numbers, because it is a tachometer. And once it started smelling like it was burned I don't know if the damage was bad. I'm not so sure where I have to connect the DC pin of the display to Arduino, or if I have to use the other pins of the display.Īnyway, the display doesn't works. I connected the VCC and GND to a protoboard with 20 volts, the RES pin to the Arduino RESET pin, the MISO to the MISO, SCLK to the SCK, the MOSI to the MOSI, and the CS to the SS (I'm using SPI). The pins of the display are VCC, GND, SDA, SCL, CS, DC, RES, MISO, SCLK, MOSI and CS. I'm trying to connect the pins of my Arduino Mega with an OLED Display SSD1351. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |