/* * openGLCD Library - Hello World * * This sketch prints "Hello World!" to the LCD * and shows the time in seconds since Arduino board was reset. * * 2013-06-15 bperrybap - updates for openGLCD * 2011-09-14 Bill Perry - original creation * [email]bperrybap@opensource.billsworld.billandterrie.com[/email] */// include the library header// no font headers have to be included#include <openGLCD.h>#define GLCD_PIN_CONFIG_H#define GLCD_PIN_CONFIG_H/** define name for pin configuration*/#define glcd_PinConfigName "ks0108-Uno"/*********************************************************//* Configuration for assigning LCD bits to Arduino Pins *//*********************************************************//** Pins can be assigned using Arduino pin numbers 0-n* Pins can also be assigned using PIN_Pb * where P is port A-L and b is bit 0-7* Example: port D bit 3 is PIN_D3**//* Data pin definitions*/#define glcdPinData0 PIN_B0#define glcdPinData1 PIN_B1#define glcdPinData2 PIN_B2#define glcdPinData3 PIN_B3#define glcdPinData4 PIN_D4#define glcdPinData5 PIN_D5#define glcdPinData6 PIN_D6#define glcdPinData7 PIN_D7/* Arduino pins used for Control* default assignment uses the first five analog pins*/#define glcdPinCSEL1 PIN_A0#define glcdPinCSEL2 PIN_A1#define glcdPinRW PIN_A2#define glcdPinDI PIN_A3#define glcdPinEN PIN_A4 // (A4 is also I2C SDA)void setup(){// Initialize the GLCD
GLCD.Init();// Select the font for the default text area
GLCD.SelectFont(System5x7);// GLCD.print(F("hello, world!")); // keep string in flash on AVR boards with IDE 1.x// GLCD.Puts(F("hello, world!")); // Puts() supports F() with any version of IDE// print() below uses RAM on AVR boards but works// on any version of IDE with any processor// note: Same is true for Puts()
GLCD.print("hello, world!");}void loop(){// set the cursor to column 0, line 1// (note: line 1 is the second row, since counting begins with 0):
GLCD.CursorTo(0,1);// print the number of seconds since reset:
GLCD.print(millis()/1000);}
hello sir, i checked that rst pin is not connected anywhere and i also gave a delay of 100 ms and then tried but the error is same . actually there is no error in stimulation , it is executing but glcd is unable to display anything and when i see the simulation error message log it displays as: [t6963c] data write [controller1] attempted during reset. write operation failed. please help me out.
is it a problem with lcd consisting of t6963c ic i.e. it unable to write becoz when i googled the error, it shows me that arduino has another library which runs for lcd consisting of t6963c ic and i added that library but it was unable to compile properly. please suggest me further. i need to complete as soon as possible.
Few days back, I imported my Graphic LCD project in Proteus 8.4 sp0 and its giving the same error, logic contention and doesn’t work for me. I am worried that why it is not working as the last time it was working. Then I installed old version of Proteus 7.11 and open the same project in that, and it started working again. So i think there is still some issues with 8.x series of proteus. So please try it on hardware or on older version of proteus.
Use https://circuits.io/ for Arduino.
I fell your computer is not able to simulate high end controller.
proteus is good for low end PIC microcontroller.
It will be always better to simulate arduino in server that run runs delicately for arduino and is much more higher config than your computer.
use https://circuits.io/ you will definitely enjoy its features
i tried through http//circuits.io/ but there is no graphical lcdpresent in the components.and i also burn normal lcd 16x2 on proteus and its working but graphical lcd is not working. please suggest