Recent Posts

Pages: [1] 2 3 ... 10
5
Just acquired NHD-0420D3Z-NSW-BBW-V3 Serial display, Im currently using PIC 18f4550 on ccs compiler, with recommended standard 232, with the following header #use rs232(baud=9600,parity=N,xmit=Pin_C6,rcv=Pin_c7,bits=8), The LCD 4x20 has the following conections On J1 PIN 1=RX (To TX on PIC) PIN 2=VSS PIN 3=VDD, On J2 just PIN 5=VSS PIN 6=VDD.
I have a simple question, how can I send the commands to the LCD, for example If I want to clear the screen datasheet says 0xFE as prefix and 0x51 as command, but I have no clue how should I send this command, I used printf, putc, puts, and so on.
6
New Product Wishlists / powiedzen ! podolalabym sie !
« Last post by CulajayLago on Today at 08:42:45 AM »
Buy Acai Burn?-Does Acai Burn Actually Work?
The pulp of the acai Berry contains exceptionally powerful antioxidants become clean the actual digestive system very accurately.
Moreover, fibre contained belonging to the Acai Berry pulp further assists method.
The result regarding your clean gi system is regular bowel movements which assist greatly in weight loss and an increase in the metabolic quickness.
With a higher metabolism the consumer uses rather more calories compared to they would otherwise, promoting sustained weight loss.
What is more, The acai berries are containing more both aminos and aminoacids.
Furthermore, they contain countless vitamins and minerals which serve to supplement program of client.
Needless to repeat the Acai Berry has become very popular indeed and the demand for the berry has increased exponentially!
 
Apparently, folks of Brazil have been hiding their secret to healthiness in the little berry called acai juice.
The cat's out of the bag now, though, and people all over the world are clamoring to get a piece of this supplement effect.
In fact, Oprah Winfrey recently touted incredible properties of acai on the television show, "The Oprah Show." On it, she brought within a specialist doctor, Dr.
Perricone, to discuss the acai acai health benefits.
 
Do end fooled through the many manufacturers of colon detoxing products that claim using their product alone will a person to to excess weight.
acai berry cleanse side effects cleanse products are notorious for doing this presently there is completely no medical evidence to advice that this is true.
Read some customer reviews on these products and you will see that the claims are untrue.
 
If will not find one with hundred percent acai, look at the involving other resources.
Research each individual factor that is listed there.
Know what the risks are, if any.
Selected that almost all them are excellent for the two of you in query and better.
 
If a person considering the what is acai berry loss, you have chosen a great method to start to better health.
Niche markets . various varieties of the acai berry pulp including liquid form, as capsules and your actual plants.
Actual fruit (fresh or frozen) may be hard to obtain depending on where you live in the world, but all forms are applicable.
 
If you aspiring to purge out pounds of fat at warp speed, you have to use the mangosteen supplement consistently.
Experts have also analyzed and accepted the fact that the acai berries have rich dietary fibers and the body building proteins, which stop the lost excess weight from being re-accumulated inside a human muscle.
Hence, you can never really put on weight as such. Vivese senso duo oil 2
7
New Product Wishlists / проститутки
« Last post by GeraldZer on May 28, 2017, 09:38:47 PM »
Вас приветствует команда сайта Сибирки, сайта, на котором размещают анкеты 86% всех  проститутки новосибирска
Дешевые  проститутки новосибирска  на «сибирках» помогут вам сохранить бюджет и скрасить вашу ночь.
проститутки новосибирска
8
New Product Wishlists / проститутки
« Last post by GeraldZer on May 28, 2017, 04:54:26 AM »
Вас приветствует команда сайта Сибирки, сайта, на котором размещают анкеты 86% всех  проститутки новосибирска
Дешевые  проститутки новосибирска  на «сибирках» помогут вам сохранить бюджет и скрасить вашу ночь.
проститутки новосибирска
9
OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« Last post by mprowe on May 27, 2017, 06:47:04 AM »
Hi Chris,

Thank you very much for staying with me on this. It is greatly appreciated.  Looking at the "Library in the wrong location" first.
While yes, it could be, but this is the results of this line of inquiry here.

1. I have three library locations (don't know why?), they are:
   a) /home/mprowe/Arduino/libraries/
   b) /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/
   c) /opt/arduino-1.8.0/libraries/

2. For testing purposes only, I have put your library in all three locations - with a customized library.properties file.

3. The log output (below) shows that it has found all three  & is using the copy at (2.b) see lines 86 to 89. This is alongside the wire library.

Code: [Select]
74 Linking everything together...
75 "/home/mprowe/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" [.... truncated by me]
76 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0':
77 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:16: undefined reference to `OLedI2C::OLedI2C()'
78 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `setup':
79 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:24: undefined reference to `OLedI2C::init(unsigned char)'
80 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `loop':
81 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:29: undefined reference to `OLedI2C::sendString(char const*, unsigned char, unsigned char)'
82 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:30: undefined reference to `OLedI2C::sendFloat(float, unsigned char, unsigned char, unsigned char, unsigned char)'
83 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `_GLOBAL__sub_D_LCD':
84 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:16: undefined reference to `OLedI2C::~OLedI2C()'
85 collect2: error: ld returned 1 exit status
86 Multiple libraries were found for "OLedI2C.h"
87  Used: /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/OLedI2C
88  Not used: /home/mprowe/Arduino/libraries/OLedI2C.home
89  Not used: /opt/arduino-1.8.0/libraries/OLedI2C.opt
90 Using library Wire    at version 1.0 in folder: /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/Wire
91 Using library OLedI2C at version 1.0 in folder: /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/OLedI2C
92 exit status 1
93 Error compiling for board Arduino/Genuino Uno.

4. Compiling with only one copy of the OLedI2C in each location. First run with OLedI2C in 2.a), second run with OLedI2C in 2.b) and finaly with OLedI2C in location 2.c) still results in a compilation error?

5. I have placed a full copy of the compilation log ftp://mpr75@talktalk.net@www.mpr75.talktalk.net/oled-example.log. This is what I meant in the last over, about sharing the full log file. In many forums you can upload and link these files but I can not find any way to do the same on this site? If you can find the time to have a look at the whole whole log file in the hope that any other clues should "jump out"?

Best regards, Martin
10
OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« Last post by Chris O. on May 26, 2017, 07:31:08 PM »
Sorry for the late reply but it does appear you have the library not installed correctly.

Quote
Is there a more effective way to give you the compilation log?
You can enabled this; Show verbose output during Compilation and Upload enabled in File > Preferences.

The undefined reference to OLedI2C::OLedI2C() seems to be showing up because the example is trying to look for OLedI2C in nhd-i2c folder.
This is the last four lines of my successful compilation:
Code: [Select]
Using library Wire at version 1.0 in folder: C:\Documents and Settings\USER NAME HERE\Desktop\arduino-1.8.1\hardware\arduino\avr\libraries\Wire
Using library OLedI2C in folder: C:\Documents and Settings\USER NAME HERE\Desktop\arduino-1.8.1\libraries\OLedI2C (legacy)
Sketch uses 3640 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 294 bytes (14%) of dynamic memory, leaving 1754 bytes for local variables. Maximum is 2048 bytes.

Test code used:
Code: [Select]
// library by Phil Grant 2013 www.gadjet.co.uk
// OLedI2C library http://gadjetsblog.blogspot.com/2013/09/oled-1602-display-and-library-for.html

// I2C Wire Library Newhaven Display NHD-0420CW OLED TEST

// Wire Library, This library allows you to communicate with I2C / TWI devices
// Board           I2C / TWI pins
// Uno, Ethernet   A4 (SDA), A5 (SCL)
// Mega2560        20 (SDA), 21 (SCL)
// Leonardo         2 (SDA),  3 (SCL)
// Due             20 (SDA), 21 (SCL), SDA1, SCL1
//Teensy 3.0/3.1   18 (SDA), 19 (SCL),Back Side 30 (SDA1), 29 (SCL1)

#include <Wire.h>

#define I2C_ADDR 0x3c  // Define I2C Address, 0x3c or 0x3d
#include <OLedI2C.h>
OLedI2C LCD;

// custom font arrays
byte newChar1[8] = {
  B11011,
  B11111,
  B11111,
  B11111,
  B11111,
  B11111,
  B11111,
  B10101
};

byte newChar2[8] = {
  B10000,
  B01000,
  B00101,
  B00100,
  B00100,
  B00101,
  B01000,
  B10000
};

byte newChar3[8] = {
  B10001,
  B01010,
  B01110,
  B00100,
  B00100,
  B01110,
  B01010,
  B10001
};

byte newChar4[8] = {
  B11111,
  B11111,
  B11111,
  B00100,
  B00100,
  B11111,
  B11111,
  B11111
};

byte newChar5[8] = { // 5TH custom font
  B10101,
  B10000,
  B10110,
  B00001,
  B00000,
  B10001,
  B01010,
  B00000
};

void setup() {
  Wire.begin(); // Start Wire Library
  LCD.init(I2C_ADDR); // initialize the lcd with I2C Address
  //delay(1000);
  // Store custom font data in 420CW Oled
  LCD.createChar(0, newChar1);
  LCD.createChar(1, newChar2);
  LCD.createChar(2, newChar3);
  LCD.createChar(3, newChar4);
  LCD.createChar(4, newChar5);
  LCD.createChar(5, newChar5);
  LCD.createChar(6, newChar5);
  LCD.createChar(7, newChar5);


  LCD.sendString("SETUP ()", 0, 0);    //("String", col, row)
  delay(1000);
}

void loop() {
  //////////// set Contrast test 1 ////////////////
  LCD.sendString("set Contrast test DW", 0, 0);    //("String", col, row)
  for (int Contrast = 255; Contrast > 0; Contrast = Contrast-- / 2 ) {
    LCD.setContrast(Contrast); // Set Contrast (Minimum allowed 0) 0~255
    LCD.setCursor(9, 1); //(col,row)
    LCD.print(Contrast);
    LCD.print("    "); //clear
    delay(300); //delay not necessary as its sending a lot of Commands wich has delay inside the lib.

  }
  delay(2000); // 2sec. delay

  LCD.clearLcd();
  LCD.sendString("set Contrast test UP", 0, 0);    //("String", col, row)
  for (int Contrast = 0; Contrast < 510; Contrast = Contrast++ * 2 ) {
    LCD.setContrast(Contrast); // Set Contrast (Minimum allowed 0) 0~255
    LCD.cursPos(9, 1); //(col,row)
    LCD.print(Contrast);
    LCD.print("    "); //clear
    delay(300); //delay not necessary as its sending a lot of Commands wich has delay inside the lib.
  }
  delay(2000); // 2sec. delay
  LCD.clearLcd();

  // Double Height(4-line) Test
  LCD.sendString("Double Height(4x20)", 0, 0);
  LCD.sendString("Test", 8, 1);
  delay(2000); // 2sec. delay
  LCD.setDoubleH(1);
  LCD.sendString("MODE 1", 0, 2);
  delay(1000); // 1sec. delay
  LCD.setDoubleH(2);
  LCD.sendString("MODE 2", 0, 2);
  delay(1000); // 1sec. delay
  LCD.setDoubleH(3);
  LCD.sendString("MODE 3", 0, 1);
  delay(1000); // 1sec. delay
  LCD.sendString("      ", 0, 1); // clear MODE 3 from Oled

  LCD.setDoubleH(4);
  LCD.sendString("MODE 4", 0, 2);
  delay(1000); // 1sec. delay
  LCD.setDoubleH(0); //back to 4x20
  LCD.sendString("MODE 0 (4-line)", 0, 2);
  delay(3000); // 3sec. delay
  LCD.clearLcd();

  //////////// Print custom font Using Wire.h Library test 2 ////////////////
  LCD.setDoubleH(3); // MODE 1
  LCD.sendString("Print custom font / Wire Library", 0, 0);    //("String", col, row)
  LCD.sendString("custom font -->", 0, 3);
  delay(3000); // 1sec. delay
  LCD.setDoubleH(0);
  delay(1000); // 1sec. delay
  LCD.cursPos(16, 3); //(col,row) / set up position
  // Test  / Print custom font 5 using Wire.h Library
  Wire.beginTransmission(I2C_ADDR); // start condition + Define I2C Address where the US2066 is, and set  R/W# bit to logic 0 write mode.
  // Print custom font
  Wire.write(B01000000); // control byte or the data byte, Co and D/C# bits following by six 0s.
  //Wire.write(B00000011); //DEC 3 // print custom font 4  [8bit (hi bit 0000/low bit 0011
  Wire.write(4); //DEC 4 / 5th custom font (Zero based array indexing.....)
  Wire.endTransmission(); // stop condition / 7) The write mode will be finished when a stop condition is applied.
  delay(3000); // 3sec. delay
  LCD.clearLcd();
  delay(1000); //1sec. delay

  //////////// Print 2 custom font Using LCD.sendData test 3 ////////////////
  LCD.sendString(" Print two custom   fonts / LCD.sendData", 0, 0);    //("String", col, row)
  LCD.cursPos(2, 2); //(col,row)
  LCD.print("---> ");
  delay(1000); // 1sec. delay
  LCD.sendData(0); //Print custom font 1 (Zero based array indexing.....)
  LCD.print(" <---> ");
  delay(1000); // 1sec. delay
  LCD.sendData(char(1)); //Print custom font 2
  delay(3000); // 3sec. delay
  LCD.clearLcd();
  delay(1000);

  //LCD.scrollString("test", 2, 100);

  //////////// command test ////////////////
  /*
    sendCommand(0x2A);//function set (extended command set)
    sendCommand(0x71); //function selection A
    sendData(0x00);    //disable internal VDD regulator (2.8V I/O). data(0x5C) = enable regulator (5V I/O)
    sendCommand(0x28); //function set (fundamental sendCommand set)
    sendCommand(0x08); //display off, cursor off, blink off
    sendCommand(0x2A); //function set (extended command set)
    sendCommand(0x79); //OLED command set enabled
    sendCommand(0xD5); //set display clock divide ratio/oscillator frequency
    sendCommand(0x70); //set display clock divide ratio/oscillator frequency
    sendCommand(0x78); //OLED command set disabled
    sendCommand(0x09); //extended function set (4-lines) / last bit=1 : 3-line or 4-line display mode
    sendCommand(0x06); //COM SEG direction
    sendCommand(0x72); //function selection B
    sendData(B00000000);   //ROM CGRAM selection
    sendCommand(0x2A); //function set (extended command set)
    sendCommand(0x79); //OLED command set enabled
    sendCommand(0xDA); //set SEG pins hardware configuration
    sendCommand(0x10); //set SEG pins hardware configuration
    sendCommand(0xDC); //function selection C
    sendCommand(0x00); //function selection C
    sendCommand(0x81); //set contrast control
    sendCommand(0x7F); //set contrast control
    sendCommand(0xD9); //set phase length
    sendCommand(0xF1); //set phase length
    sendCommand(0xDB); //set VCOMH deselect level
    sendCommand(0x40); //set VCOMH deselect level
    sendCommand(0x78); //OLED command set disabled
    sendCommand(0x28); //function set (fundamental command set)
    sendCommand(0x01); //clear display
    sendCommand(0x80); //set DDRAM address to 0x00
    sendCommand(0x0C); //display ON

    delay(150);
    sendCommand(0x0C);  // **** Turn on Display
    delay(150);*/
}
Pages: [1] 2 3 ... 10