can't program arduino pro mini

I am building a soldering station to drive a weller rt tip. I did not design it. It is controlled by an arduino pro mini. The soldering station is found here: Soldering Station | DebuggingLab. I have an ftdi adapter from adafruit. I jumped the power switch header and tried to program it. At first it said i was missing adafruit_gfx.h and i found it an added itr to the library i was trying to program the pro mini with. The pro mini is soldered to my circuit board but i do not have the 1.8 inch tft screen attached yet. I am still waiting for it to come in the mail. I also have not connected my potentiometer. I have also set it to pro mini in the software and i have set it to set rts on close. Here is the error i keep getting:

Arduino: 1.6.8 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\jrs\Documents\Arduino\libraries" -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10608 -build-path "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\jrs\Documents\SolderStation\SolderStation.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\jrs\Documents\Arduino\libraries" -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10608 -build-path "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\jrs\Documents\SolderStation\SolderStation.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\sketch\SolderStation.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\sketch\SolderStation.ino.cpp" -o "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\jrs\Documents\SolderStation\SolderStation.ino:9:54: fatal error: Adafruit_GFX.h: No such file or directory

 #include <Adafruit_GFX.h>    // Core graphics library

                                                      ^

compilation terminated.

exit status 1
Error compiling for board Arduino Pro or Pro Mini.

Hello,

Read this: http://www.arduino.cc/en/Guide/Libraries

I prefer to install libraries manually.

guix: Hello,

Read this: http://www.arduino.cc/en/Guide/Libraries

I prefer to install libraries manually.

i did that and all ofmy files are in a library an i tried programming the arduino with that library and i got an error:

Arduino: 1.6.8 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\jrs\Documents\Arduino\libraries" -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10608 -build-path "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\jrs\Documents\SolderStation\SolderStation.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\jrs\Documents\Arduino\libraries" -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10608 -build-path "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\jrs\Documents\SolderStation\SolderStation.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\sketch\SolderStation.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\jrs\Documents\Arduino\libraries\SolderStation" "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\sketch\SolderStation.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\jrs\Documents\Arduino\libraries\SolderStation" "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\sketch\SolderStation.ino.cpp" -o "C:\Users\jrs\AppData\Local\Temp\buildc674c2606f182ca468c23ea3350db106.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Users\jrs\Documents\SolderStation\SolderStation.ino:1:0:

C:\Users\jrs\Documents\Arduino\libraries\SolderStation/Adafruit_GFX.h:11:21: fatal error: gfxfont.h: No such file or directory

 #include "gfxfont.h"

                     ^

compilation terminated.

Using library SolderStation in folder: C:\Users\jrs\Documents\Arduino\libraries\SolderStation (legacy)
exit status 1
Error compiling for board Arduino Pro or Pro Mini.

Download and install library from here: https://github.com/adafruit/Adafruit-GFX-Library

Don't forget to remove "-master" from library folder name. Do not put the library files in another folder like you did.

i installed the libraries but now i am getting this error:

Arduino: 1.6.8 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"


iron.h:9: error: variable 'iron' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t iron[] PROGMEM={

                ^

stationLOGO.h:9: error: variable 'stationLOGO1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t stationLOGO1[] PROGMEM={

                        ^

stationLOGO.h:60: error: variable 'stationLOGO2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t stationLOGO2[] PROGMEM={

                        ^

stationLOGO.h:110: error: variable 'stationLOGO3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t stationLOGO3[] PROGMEM={

                        ^

C:\Users\jrs\AppData\Local\Temp\arduino_modified_sketch_220997\SolderStation.ino: In function 'void setup()':

SolderStation:73: error: 'setPwmFrequency' was not declared in this scope

  setPwmFrequency(PWMpin, PWM_DIV);

                                 ^

SolderStation:90: error: 'Color565' was not declared in this scope

  tft.drawBitmap(3,3,stationLOGO2,124,47,Color565(254,147,52)); 

                                                            ^

C:\Users\jrs\AppData\Local\Temp\arduino_modified_sketch_220997\SolderStation.ino: In function 'void loop()':

SolderStation:163: error: 'getTemperature' was not declared in this scope

  int actual_temperature = getTemperature();

                                          ^

SolderStation:212: error: 'writeHEATING' was not declared in this scope

  writeHEATING(soll_temp, actual_temperature, pwm);

                                                 ^

C:\Users\jrs\AppData\Local\Temp\arduino_modified_sketch_220997\SolderStation.ino: In function 'void writeHEATING(int, int, int)':

SolderStation:273: error: 'Color565' was not declared in this scope

   tft.setTextColor(Color565(tempDIV, 255-tempDIV, 0));

                                                    ^


exit status 1
variable 'iron' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

                 from C:\Users\jrs\AppData\Local\Temp\build21e3db0e048e65828116fade866be0d2.tmp\sketch\SolderStation.ino.cpp:1:

iron.h:9: error: variable 'iron' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t iron[] PROGMEM={

                ^

stationLOGO.h:9: error: variable 'stationLOGO1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t stationLOGO1[] PROGMEM={

                        ^

stationLOGO.h:60: error: variable 'stationLOGO2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t stationLOGO2[] PROGMEM={

                        ^

stationLOGO.h:110: error: variable 'stationLOGO3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

 uint8_t stationLOGO3[] PROGMEM={

                        ^

C:\Users\jrs\AppData\Local\Temp\arduino_modified_sketch_20526\SolderStation.ino: In function 'void setup()':

SolderStation:73: error: 'setPwmFrequency' was not declared in this scope

  setPwmFrequency(PWMpin, PWM_DIV);

                                 ^

SolderStation:90: error: 'Color565' was not declared in this scope

  tft.drawBitmap(3,3,stationLOGO2,124,47,Color565(254,147,52)); 

                                                            ^

C:\Users\jrs\AppData\Local\Temp\arduino_modified_sketch_20526\SolderStation.ino: In function 'void loop()':

SolderStation:163: error: 'getTemperature' was not declared in this scope

  int actual_temperature = getTemperature();

                                          ^

SolderStation:212: error: 'writeHEATING' was not declared in this scope

  writeHEATING(soll_temp, actual_temperature, pwm);

                                                 ^

C:\Users\jrs\AppData\Local\Temp\arduino_modified_sketch_20526\SolderStation.ino: In function 'void writeHEATING(int, int, int)':

SolderStation:273: error: 'Color565' was not declared in this scope

   tft.setTextColor(Color565(tempDIV, 255-tempDIV, 0));

                                                    ^

U
variable 'iron' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

i found a solution to that error, but i have a new error: 'Color565' was not declared in this scope

Hi,
Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Thanks… Tom… :slight_smile:

I did not write it. I downloaded it off of github

//*******************************//
// Soldering Station
// Matthias Wagner
// www.k-pank.de/so
// Get.A.Soldering.Station@gmail.com
//*******************************//


#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_QDTech.h> // Hardware-specific library
#include <SPI.h>

#include "iron.h"
#include "stationLOGO.h"


#define VERSION "1.5"		//Version der Steuerung
#define INTRO

#define sclk 	13		// Don't change
#define mosi 	11		// Don't change
#define cs_tft	10		// 


//V1.5
#define dc   	9		// 8
#define rst  	12		// 9 

/*
//V1.4
#define dc   	8
#define rst  	9
*/

#define STANDBYin A4
#define POTI   	A5
#define TEMPin 	A7
#define PWMpin 	3
#define BLpin		5

#define CNTRL_GAIN 10

#define DELAY_MAIN_LOOP 	10
#define DELAY_MEASURE 		50
//#define ADC_TO_TEMP_GAIN 	0.415
#define ADC_TO_TEMP_GAIN 	0.53 //Mit original Weller Station verglichen
#define ADC_TO_TEMP_OFFSET 25.0
#define STANDBY_TEMP			175

#define OVER_SHOT 			2
#define MAX_PWM_LOW			180
#define MAX_PWM_HI			210		//254
#define MAX_POTI				400		//400Grad C

#define PWM_DIV 1024						//default: 64   31250/64 = 2ms

Adafruit_QDTech tft = Adafruit_QDTech(cs_tft, dc, rst);  // Invoke custom library

int pwm = 0; //pwm Out Val 0.. 255
int soll_temp = 300;
boolean standby_act = false;

void setup(void) {
	
	pinMode(BLpin, OUTPUT);
	digitalWrite(BLpin, LOW);
	
	pinMode(STANDBYin, INPUT_PULLUP);
	
	pinMode(PWMpin, OUTPUT);
	digitalWrite(PWMpin, LOW);
	setPwmFrequency(PWMpin, PWM_DIV);
	digitalWrite(PWMpin, LOW);
	
	tft.init();
	SPI.setClockDivider(SPI_CLOCK_DIV4);  // 4MHz
	
	
	tft.setRotation(0);	// 0 - Portrait, 1 - Lanscape
	tft.fillScreen(QDTech_BLACK);
	tft.setTextWrap(true);
	
	
	
	//Print station Logo
	tft.drawBitmap(2,1,stationLOGO1,124,47,QDTech_GREY);
	
	tft.drawBitmap(3,3,stationLOGO1,124,47,QDTech_YELLOW);		
	tft.drawBitmap(3,3,stationLOGO2,124,47,Color565(254,147,52));	
	tft.drawBitmap(3,3,stationLOGO3,124,47,Color565(255,78,0));
	
	//BAcklight on
	digitalWrite(BLpin, HIGH);
	
	
#if defined(INTRO)
	
	delay(500);
	
	//Print Iron
	tft.drawBitmap(15,50,iron,100,106,QDTech_GREY);
	tft.drawBitmap(17,52,iron,100,106,QDTech_YELLOW);
	delay(500);
	
	tft.setTextSize(2);
	tft.setTextColor(QDTech_GREY);
	tft.setCursor(70,130);
	tft.print(VERSION);
	
	tft.setTextSize(2);
	tft.setTextColor(QDTech_YELLOW);
	tft.setCursor(72,132);
	tft.print(VERSION);
	
	tft.setTextSize(1);
	tft.setTextColor(QDTech_GREY);
	tft.setCursor(103,0);
	tft.print("v");
	tft.print(VERSION);
	
	tft.setTextColor(QDTech_YELLOW);
	tft.setCursor(104,1);
	tft.print("v");
	tft.print(VERSION);
	
	delay(2500);
#endif
	
	
	tft.fillRect(0,47,128,125,QDTech_BLACK);
	tft.setTextColor(QDTech_WHITE);

	tft.setTextSize(1);
	tft.setCursor(1,84);
	tft.print("ist");
	
	tft.setTextSize(2);
	tft.setCursor(117,47);
	tft.print("o");
	
	tft.setTextSize(1);
	tft.setCursor(1,129);
	tft.print("soll");
	
	tft.setTextSize(2);
	tft.setCursor(117,92);
	tft.print("o");
	
	tft.setCursor(80,144);
	tft.print("   %");
	
	tft.setTextSize(1);
	tft.setCursor(1,151);		//60
	tft.print("pwm");
	
	tft.setTextSize(2);
	
}

void loop() {
	
	int actual_temperature = getTemperature();
	soll_temp = map(analogRead(POTI), 0, 1024, 0, MAX_POTI);
	
	
	//TODO: Put in Funktion
	tft.setCursor(2,55);
	if (digitalRead(STANDBYin) == true)
		tft.setTextColor(QDTech_BLACK);
	else
		tft.setTextColor(QDTech_WHITE);
	tft.print("SB");
	
	//
	
	int soll_temp_tmp = soll_temp;
	
	if (digitalRead(STANDBYin) == false)
		standby_act = true;
	else
		standby_act = false;
	
	if (standby_act && (soll_temp >= STANDBY_TEMP ))
		soll_temp_tmp = STANDBY_TEMP;
	
	
	
	int diff = (soll_temp_tmp + OVER_SHOT)- actual_temperature;
	pwm = diff*CNTRL_GAIN;
	
	int MAX_PWM;

	//Set max heating Power 
	MAX_PWM = actual_temperature <= STANDBY_TEMP ? MAX_PWM_LOW : MAX_PWM_HI;
	
	//8 Bit Range
	pwm = pwm > MAX_PWM ? pwm = MAX_PWM : pwm < 0 ? pwm = 0 : pwm;
	
	
	
	//NOTfall sicherheit / Spitze nicht eingesteckt
	if (actual_temperature > 550){
		pwm = 0;
		actual_temperature = 0;
	}
	
	
	analogWrite(PWMpin, pwm);
	//digitalWrite(PWMpin, LOW);
	
	writeHEATING(soll_temp, actual_temperature, pwm);
	
	delay(DELAY_MAIN_LOOP);		//wait for some time
}


int getTemperature()
{
  analogWrite(PWMpin, 0);		//switch off heater
  delay(DELAY_MEASURE);			//wait for some time (to get low pass filter in steady state)
  int adcValue = analogRead(TEMPin); // read the input on analog pin 7:
  Serial.print("ADC Value ");
  Serial.print(adcValue);
  analogWrite(PWMpin, pwm);	//switch heater back to last value
  return round(((float) adcValue)*ADC_TO_TEMP_GAIN+ADC_TO_TEMP_OFFSET); //apply linear conversion to actual temperature
}





void writeHEATING(int tempSOLL, int tempVAL, int pwmVAL){
	static int d_tempSOLL = 2;		//Tiefpass für Anzeige (Poti zittern)

	static int tempSOLL_OLD = 	10;
	static int tempVAL_OLD	= 	10;
	static int pwmVAL_OLD	= 	10;
	//TFT Anzeige
	
	pwmVAL = map(pwmVAL, 0, 254, 0, 100);
	
	tft.setTextSize(5);
	if (tempVAL_OLD != tempVAL){
		tft.setCursor(30,57);
		tft.setTextColor(QDTech_BLACK);
		//tft.print(tempSOLL_OLD);
		//erste Stelle unterschiedlich
		if ((tempVAL_OLD/100) != (tempVAL/100)){
			tft.print(tempVAL_OLD/100);
		}
		else
			tft.print(" ");
		
		if ( ((tempVAL_OLD/10)%10) != ((tempVAL/10)%10) )
			tft.print((tempVAL_OLD/10)%10 );
		else
			tft.print(" ");
		
		if ( (tempVAL_OLD%10) != (tempVAL%10) )
			tft.print(tempVAL_OLD%10 );
		
		tft.setCursor(30,57);
		tft.setTextColor(QDTech_WHITE);
		
		if (tempVAL < 100)
			tft.print(" ");
		if (tempVAL <10)
			tft.print(" ");
		
		int tempDIV = round(float(tempSOLL - tempVAL)*8.5);
		tempDIV = tempDIV > 254 ? tempDIV = 254 : tempDIV < 0 ? tempDIV = 0 : tempDIV;
		tft.setTextColor(Color565(tempDIV, 255-tempDIV, 0));
		if (standby_act)
			tft.setTextColor(QDTech_CYAN);
		tft.print(tempVAL);
		
		tempVAL_OLD = tempVAL;
	}
	
	//if (tempSOLL_OLD != tempSOLL){
	if ((tempSOLL_OLD+d_tempSOLL < tempSOLL) || (tempSOLL_OLD-d_tempSOLL > tempSOLL)){
		tft.setCursor(30,102);
		tft.setTextColor(QDTech_BLACK);
		//tft.print(tempSOLL_OLD);
		//erste Stelle unterschiedlich
		if ((tempSOLL_OLD/100) != (tempSOLL/100)){
			tft.print(tempSOLL_OLD/100);
		}
		else
			tft.print(" ");
		
		if ( ((tempSOLL_OLD/10)%10) != ((tempSOLL/10)%10) )
			tft.print((tempSOLL_OLD/10)%10 );
		else
			tft.print(" ");
		
		if ( (tempSOLL_OLD%10) != (tempSOLL%10) )
			tft.print(tempSOLL_OLD%10 );
		
		//Neuen Wert in Weiß schreiben
		tft.setCursor(30,102);
		tft.setTextColor(QDTech_WHITE);
		if (tempSOLL < 100)
			tft.print(" ");
		if (tempSOLL <10)
			tft.print(" ");
		
		tft.print(tempSOLL);
		tempSOLL_OLD = tempSOLL;
		
	}
	
	
	tft.setTextSize(2);
	if (pwmVAL_OLD != pwmVAL){
		tft.setCursor(80,144);
		tft.setTextColor(QDTech_BLACK);
		//tft.print(tempSOLL_OLD);
		//erste stelle Unterscheidlich
		if ((pwmVAL_OLD/100) != (pwmVAL/100)){
			tft.print(pwmVAL_OLD/100);
		}
		else
			tft.print(" ");
		
		if ( ((pwmVAL_OLD/10)%10) != ((pwmVAL/10)%10) )
			tft.print((pwmVAL_OLD/10)%10 );
		else
			tft.print(" ");
		
		if ( (pwmVAL_OLD%10) != (pwmVAL%10) )
			tft.print(pwmVAL_OLD%10 );
		
		tft.setCursor(80,144);
		tft.setTextColor(QDTech_WHITE);
		if (pwmVAL < 100)
			tft.print(" ");
		if (pwmVAL <10)
			tft.print(" ");
		
		tft.print(pwmVAL);
		pwmVAL_OLD = pwmVAL;
		
	}
	
}




uint16_t Color565(uint8_t r, uint8_t g, uint8_t b) {
  return ((r & 0xF8) << 8) | ((g & 0xFC) << 3) | (b >> 3);
}



void setPwmFrequency(int pin, int divisor) {
  byte mode;
  if(pin == 5 || pin == 6 || pin == 9 || pin == 10) {
    switch(divisor) {
      case 1: mode = 0x01; break;
      case 8: mode = 0x02; break;
      case 64: mode = 0x03; break;
      case 256: mode = 0x04; break;
      case 1024: mode = 0x05; break;
      default: return;
    }
    if(pin == 5 || pin == 6) {
      TCCR0B = TCCR0B & 0b11111000 | mode;
    } else {
      TCCR1B = TCCR1B & 0b11111000 | mode;
    }
  } else if(pin == 3 || pin == 11) {
    switch(divisor) {
      case 1: mode = 0x01; break;
      case 8: mode = 0x02; break;
      case 32: mode = 0x03; break;
      case 64: mode = 0x04; break;
      case 128: mode = 0x05; break;
      case 256: mode = 0x06; break;
      case 1024: mode = 0x7; break;
      default: return;
    }
    TCCR2B = TCCR2B & 0b11111000 | mode;
  }
}

anyone?

i am still getting the error. I need help

i am still getting the error. I need help

What version of the IDE are you using? For what Arduino?

I downloaded it off of github

That is as useless as saying "I got it from the internet".

i was saying i did not write the code. I am using an arduino pro mini with a ftdi adapter from adafruit and i am using arduino 1.6.8

anyone?

i also hooked up my tft to the board and jumped the switch and plugged in the ac adapter and my screen only turned on and flashed a little bit and now my screen will not turn on? Is it the software because i partially programmed the arduino, but then i ran into the error. Did i solder something wrong on the pcb, or will the screen work normally after i find out to fix the programming error?

i was saying i did not write the code.

But you are STILL not saying WHERE you got it.

Did i solder something wrong on the pcb

If you have fried the LCD, I'd guess yes.

will the screen work normally after i find out to fix the programming error?

Doesn't seem likely. Doesn't seem likely that you'll ever provide enough information to correct the programming error, either.

The tft display works. I just have to hold down the reset button. I got the iron.h and stationLOGO.h files from https://github.com/CSchlipp/SolderingStation/tree/master/arduino. Those are the updated files but i am not using the main SolderStation.ino from the fork because it does not work with the screen i have. I got the main SolderStation.ino file from here: https://github.com/ConnyCola/SolderingStation/tree/master/arduino I think that the screen did not work when i don't have th ereset button held because the arduino is partially programmed, not fully. I keep getting that error while programming.

anyone?

i need help programming this thing. I need to finish my soldering station. Will anyone help me please?

Still having issue to compile SolderStation? I just change Color565 to tft.Color565, it does compile ok. Now I bought incorrect display for it, instead of QDTech, I bougth the Adafruit version.. need to find the differences..