|
Post by tofumax on Mar 12, 2017 3:08:57 GMT -8
HI
I have nice projekt on
Leonardo
5 inch TFT -FT811
but I fill memory on leonardo on Full --Yes it Works Code is very simple
Now I Would like to move on mega 2560
And I stuc
I conect only mega by USB and
add "hellow word sample add to serial print some random A1 values "
after
GD.begin ();
mega STOPS ?
#include <SPI.h> #include <GD3.h> #include <OneWire.h> #include <DS18B20.h> #include <max6675.h> #include <stdio.h> #include <stdlib.h> #include <string.h> //#include <EEPROM.h>
#define PDPin 23
void setup() { Serial.begin(9600); pinMode(PDPin, OUTPUT); digitalWrite(PDPin, HIGH); delay(10);
digitalWrite(PDPin, LOW); delay(10); digitalWrite(PDPin, HIGH); delay(10); GD.begin();
}
void loop() {
int kon0 = analogRead(A5); Serial.println(kon0); //GD.ClearColorRGB(0x300000); //GD.Clear(); //GD.cmd_text(GD.w / 2, GD.h / 2, 31, OPT_CENTER, "Hello world"); //GD.swap();
//GD.swap(); delay (100);
///////////////////////////////////////////////////////////////////////////////
The solution was simple and silly the definition of SPI typing in my main program -
SPI.begin(); SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE0));
I modified the library not effectively ...
|
|