stm3211xx.h

Please can anybody help, I am new to Arduino but have been getting along fine for 3 Months, now all of a sudden every thing I try to compile comes up with this error #include "stm3211xx.h I have tried to look this up and it goes nowhere. I thought it was a part of a Library but seems not ? do you think I might be infected by a virus ? Computer new Packard/Bell running windows 10.

Please post an example program that gives the error and the complete error text.

#include <dht11.h>
#include <ext_lcd.h>
#include <main.h>
#include <stm32l1xx_conf.h>
#include <utils.h>

/* YourDuino.com Example Software Sketch
DHT11 Humidity and Temperature Sensor test
Credits: Rob Tillaart
http://arduino-direct.com/sunshop/index.php?l=product_detail&p=162
terry@yourduino.com */

/-----( Import needed libraries )-----/
#include <dht11.h>

/-----( Declare objects )-----/
dht11 DHT11;

/-----( Declare Constants, Pin Numbers )-----/
#define DHT11PIN 2

void setup() /----( SETUP: RUNS ONCE )----/
{
Serial.begin(9600);
Serial.println("DHT11 TEST PROGRAM ");
Serial.print("LIBRARY VERSION: ");
Serial.println(DHT11LIB_VERSION);
Serial.println();
}/--(end setup )---/

void loop() /----( LOOP: RUNS CONSTANTLY )----/
{
Serial.println("\n");

int chk = DHT11.read(DHT11PIN);

Serial.print("Read sensor: ");
switch (chk)
{
case 0: Serial.println("OK"); break;
case -1: Serial.println("Checksum error"); break;
case -2: Serial.println("Time out error"); break;
default: Serial.println("Unknown error"); break;
}

Serial.print("Humidity (%): ");
Serial.println((float)DHT11.humidity, 2);

Serial.print("Temperature (oC): ");
Serial.println((float)DHT11.temperature, 2);

Serial.print("Temperature (oF): ");
Serial.println(Fahrenheit(DHT11.temperature), 2);

Serial.print("Temperature (K): ");
Serial.println(Kelvin(DHT11.temperature), 2);

Serial.print("Dew Point (oC): ");
Serial.println(dewPoint(DHT11.temperature, DHT11.humidity));

Serial.print("Dew PointFast (oC): ");
Serial.println(dewPointFast(DHT11.temperature, DHT11.humidity));

delay(2000);
}/* --(end main loop )-- */

/-----( Declare User-written Functions )-----/
//
//Celsius to Fahrenheit conversion
double Fahrenheit(double celsius)
{
return 1.8 * celsius + 32;
}

//Celsius to Kelvin conversion
double Kelvin(double celsius)
{
return celsius + 273.15;
}

// dewPoint function NOAA
// reference: Algorithms - Schlatter and Baker
double dewPoint(double celsius, double humidity)
{
double A0= 373.15/(273.15 + celsius);
double SUM = -7.90298 * (A0-1);
SUM += 5.02808 * log10(A0);
SUM += -1.3816e-7 * (pow(10, (11.344*(1-1/A0)))-1) ;
SUM += 8.1328e-3 * (pow(10,(-3.49149*(A0-1)))-1) ;
SUM += log10(1013.246);
double VP = pow(10, SUM-3) * humidity;
double T = log(VP/0.61078); // temp var
return (241.88 * T) / (17.558-T);
}

// delta max = 0.6544 wrt dewPoint()
// 5x faster than dewPoint()
// reference: Dew point - Wikipedia
double dewPointFast(double celsius, double humidity)
{
double a = 17.271;
double b = 237.7;
double temp = (a * celsius) / (b + celsius) + log(humidity/100);
double Td = (b * temp) / (a - temp);
return Td;
}

/* ( THE END ) */

ERROR..............

In file included from C:\Users\puttnampete\Documents\Arduino\libraries\DTH11-master/dht11.h:6:0,

from C:\Users\puttnampete\Documents\Arduino\DHT11_22_Temp_Hue_sens\DHT11_22_Temp_Hue_sens.ino:1:

C:\Users\puttnampete\Documents\Arduino\libraries\DTH11-master/utils.h:6:23: fatal error: stm32l1xx.h: No such file or directory

#include "stm32l1xx.h"

^

compilation terminated.

exit status 1
Error compiling.

How to post your code in the Arduino forum:

After you have typed your message, start the Arduino IDE if not already running and load or type in your code.
Right click in the editor window then left click [Select All].
Right click again then left click [Copy].
In the forum [New Topic] or [Reply] page, click the

</>

code symbol in the upper left.
Right click in the box that appears then left click [Paste].

Or type:

[code]

Type or
paste your
code here
[/code]

I wrongly thought I would get a friendly, helpful suggestion.. what a forum.........

puttnampete:
I wrongly thought I would get a friendly, helpful suggestion.. what a forum.........

You are obviously not a programmer or used to reading OTHER people's code.

If you can't be bothered to do it right so we can help you, we can't be othered to help you.

Hey, I asked for help not abuse, yes I am a 69 year old person trying to keep up with IT all I asked for is help, if this is what the younger generation are like then .... ...

And thanks for your "report to moderator".

Not.

Reported by puttnampete on Today at 22:17:29. They left the following message:
I am not 5 years i'm 69 and you can stuff your bias forum.....

"bias"?

Edit : "reports to moderator"

Let's break this one down.

At the top of just about every section of this forum is posted in bold a set of "how to get the best out of this forum" guidelines.
Age is not an excuse for not following these guidelines.
No one here is compelled to help you with your problems, and if you can't be bothered to help others to help you, don't be surprised when you get a few pointed hints to steer you in the right direction.

Reporting your own posts to the volunteer moderators, whinging about your treatment is unlikely to win friends.

Wait...Packard/Bell still exists???

Hi Pete, I'll be 69 myself in a few months, welcome to the club. My sig is intended to be humor, not an affront to your (or anyone else's intellect), it's a line from Groucho's old TV quiz show called "You bet your life" from the 1960s. So come on back and let us try to help with your problem. :slight_smile:

what arduino IDE are you using? Might try updating it if you have not yet.

You might take a look at the Products page at arduino.cc. Notice that there are a bunch of official Arduinos. Which one you have is a mystery.

puttnampete is enjoying a brief forum timeout.