Trouble writing a library

robtillaart:
you can post the code of your libs and sample code.

A better place to put your libraries is in your code folder/libraries, see FILE-> preferences for the location.

Are you shure you killed all instances of the IDE?

I rebooted the computer!

h file

#######################

This is keywords for THMOD library

#######################
#infdef THMOD_H
#define THMOD_H
#include <WProgram.h>

class THMOD
public:
{
THMOD();
~THMOD();
float readC();
float readF();
float readH();
}
#endif

keyword file

#######################

Datatypes (KEYWORD 1)

#######################

#######################

Methods (KEYWORD2)

#######################
THMOD KEYWORD1
readC KEYWORD2
readF KEYWORD2
readH KEYWORD2

cpp file

/* this is an attempt to learn how to write libraries
by putting a wrapper around the SHT1x library
with shorter names*/
#include <SHT1x.h>
#include <math.h>
#include "THMOD.h" // include declaration

#define dataPin 4 // DATA
#define clockPin 5 // SCK
float temp_c;
float temp_f; float humidity;

//constructor
THMOD::THMOD()
{
SHT1x sht1x(dataPin, clockPin);
}
//destructor
THMOD::~THMOD() // nothing needed

float THMOD::readC()
{
temp_c = sht1x.readTemperatureC();
return temp_c;
}

float THMOD::readF()
{
temp_f = sht1x.readTemperatureF();
return temp_f;
}

float THMOD::readH()
{
humidity = sht1x.readHumidity();
return humidity;
}

All this does is give me easier names because my right arm is amputated and typing with just your left hand is not easy.
Jim