Show Posts
|
|
Pages: 1 [2] 3 4 ... 54
|
|
16
|
Using Arduino / Displays / Re: Test/demo sketch for 12864
|
on: May 09, 2013, 01:25:17 am
|
|
Ok, so you connected your cable to this 2x3 socket where pins are labled with D2, D3, D4? If these pins refer to the digital pins of your Arduino Board, then i see a mismatch between D2, D3 and D4 and your inital sketch which probably expect (according to the comment) pins at D8, D9 and D3.
All in all it is not clear (at least to me) how the display is connected to the Arduino and which pins are really used by your software.
Oliver
|
|
|
|
|
25
|
Using Arduino / Displays / Re: U8GLIB: sleepOn/Off not working
|
on: April 29, 2013, 12:30:41 pm
|
These sleep functions are only available for some display types. What is your exact constructor line? If I put a power transistor between the mega's +5v and Vcc on the display to turn it on and off will that damage the display with SDA and SCL lines still active? Probably not, but you need to reinit the display. You can use u8g.begin() for this. All other settings are also lost... Oliver
|
|
|
|
|
27
|
Using Arduino / Displays / Re: how to show a graph on graphical lcd 240x128 ??
|
on: April 28, 2013, 02:14:26 am
|
This could be a T6963 based display, so U8GLIB_T6963_240X128(d0, d1, d2, d3, d4, d5, d6, d7, cs, a0, wr, rd, reset) might work. Remember to apply a variable resistor as described in chapter 4.1 of your user manual and also select the 8x8 font for this display (apply GND to FS1, see chapter 4.3) Download U8glib here: http://code.google.com/p/u8glib/downloads/listU8glib documentation: http://code.google.com/p/u8glib/wiki/u8glib?tm=6Oliver
|
|
|
|
|
29
|
Products / Arduino Due / Re: Makefile for the Due
|
on: April 27, 2013, 01:06:46 am
|
|
I have updated your inital Makefile to include USB support (attached). But still the serial communication is not working. I have no idea why...
Oliver
Edit: The screen terminal emulator (used in the Makefile) can be terminated with Ctrl-a Backslash.
|
|
|
|
|
30
|
Products / Arduino Due / Re: Makefile for the Due
|
on: April 27, 2013, 12:09:10 am
|
Hi Your Makefile works fine. But the Serial is not activated during compilation state. If you remove the "Serial" commands from your example, then the blinking will work: enum constants { ledpin=13 }; void setup() { // put your setup code here, to run once: // initialize the digital pin as an output. pinMode(ledpin, OUTPUT); //Serial.begin(115200); //Serial.println("Configuration complete"); }
void loop() { // put your main code here, to run repeatedly: static bool ledstate=false; //Serial.print("led is "); //Serial.println(ledstate); digitalWrite(ledpin,ledstate); ledstate=!ledstate; delay(1000); }
Oliver
|
|
|
|
|