Hello,
I am From Belgium,
I made a sketch which was working very well, suddenly during compiling the ide can't find the Library " SSD_13xx " anymore,
The Library was still in the libraries directory.
so i deleted the library and installed again via Add zip library
Still the same
So i deleted it again and copied the library in the libraries directory, still the same "No such file or directory"
I deleted all what has to do with Arduino , removed all files and directories also in AppData
Installed all again, same result "No such file or directory"
so now i am at the end, is there anyone who has a solution,
With other sketches and libraries all working fine also the display.
/Level meter 6
#include <SPI.h>
#include <SSD_13xx.h>
#include "_fonts/akasha_cap.c"
#include <MPU9250_WE.h>
#include <Wire.h>
#include <BMP388_DEV.h>
#define MPU9250_ADDR 0x68
#define __MOSI 23
#define __SLCK 18
#define __CS 17
#define __DC 16
#define __RST 05
float temperature, pressure, altitude;
BMP388_DEV bmp388;
const int numReadings = 5;
int readings[numReadings];
int readIndex = 0;
int total = 0;
int average = 0;
int inputPin = 4;
//Nr in array 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
int groundfuel[] = { 1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 68, 70, 72, 74, 76, 78, 80 };
int flightfuel[] = { 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 79, 79, 79, 79, 79, 79, 80, 80 };
int Z;
int x;
int y;
SSD_13XX tft = SSD_13XX(__CS, __DC);
MPU9250_WE myMPU9250 = MPU9250_WE(MPU9250_ADDR);
void setup() {
Wire.begin();
myMPU9250.autoOffsets();
myMPU9250.setAccRange(MPU9250_ACC_RANGE_2G);
myMPU9250.enableAccDLPF(true);
myMPU9250.setAccDLPF(MPU9250_DLPF_0);
tft.begin();
Serial.begin(115200);
bmp388.begin();
bmp388.setTimeStandby(TIME_STANDBY_2560MS);
bmp388.startNormalConversion();
for (int thisReading = 0; thisReading < numReadings; thisReading++)
readings[thisReading] = 0;
}
void loop() {
if (bmp388.getMeasurements(temperature, pressure, altitude))
total = total - readings[readIndex];
readings[readIndex] = analogRead(inputPin);
total = total + readings[readIndex];
readIndex = readIndex + 1;
if (readIndex >= numReadings) {
readIndex = 0;
}
{
Serial.print("Z = ");
Serial.print(Z);
Serial.println();
Serial.print("average = ");
Serial.println(average);
Serial.print("x = ");
Serial.println(x);
Serial.print("y = ");
Serial.println(y);
Serial.println();
Serial.println();
Serial.print(pressure);
Serial.print(F("hPa "));
Serial.println();
Serial.print(altitude);
Serial.println(F(" m"));
Serial.println();
tft.setColorDepth(18);
tft.setFont(&akasha_cap);
tft.setCursor(30, 30);
tft.setTextScale(5);
tft.setBrightness(15);
if (Z <= 15) {
tft.setTextColor(RED);
} else if (Z > 15 && Z <= 20) {
tft.setTextColor(YELLOW);
} else if (Z > 20) {
tft.setTextColor(GREEN);
}
average = total / numReadings / 103;
int x = groundfuel[(average)];
int y = flightfuel[(average)];
{
xyzFloat angle = myMPU9250.getAngles();
int B = (int)angle.y * 5;
Serial.print("B = ");
Serial.println (B);
if (B < -20) {
(Z = x);
} else if (B > -20) {
(Z = y);
}
tft.println(Z);
tft.ringMeter(Z, 0, 80, 0, 10, 62, 5, DARK_GREY, 130, 5); //val, min, max, x, y, r, scheme 0..9, backsegcolor, angle, inc solidity,
tft.setTextColor(WHITE);
tft.print(Z);
tft.setTextColor(WHITE);
tft.setTextScale(2);
tft.setCursor(45, 100);
tft.print(pressure);
if (Z == y) {
tft.setTextColor(MAGENTA);
tft.setCursor(105, 0);
tft.setTextScale(2);
tft.print("G");
} else if (Z == x) {
tft.setTextColor(WHITE);
tft.setCursor(110, 0);
tft.setTextScale(2);
tft.print("F");
}
delay(1000);
tft.clearScreen();
}
}
}
/Level meter 6
#include <SPI.h>
#include <SSD_13xx.h>
#include "_fonts/akasha_cap.c"
#include <MPU9250_WE.h>
#include <Wire.h>
#include <BMP388_DEV.h>
#define MPU9250_ADDR 0x68
#define __MOSI 23
#define __SLCK 18
#define __CS 17
#define __DC 16
#define __RST 05
float temperature, pressure, altitude;
BMP388_DEV bmp388;
const int numReadings = 5;
int readings[numReadings];
int readIndex = 0;
int total = 0;
int average = 0;
int inputPin = 4;
//Nr in array 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
int groundfuel[] = { 1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 68, 70, 72, 74, 76, 78, 80 };
int flightfuel[] = { 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 79, 79, 79, 79, 79, 79, 80, 80 };
int Z;
int x;
int y;
SSD_13XX tft = SSD_13XX(__CS, __DC);
MPU9250_WE myMPU9250 = MPU9250_WE(MPU9250_ADDR);
void setup() {
Wire.begin();
myMPU9250.autoOffsets();
myMPU9250.setAccRange(MPU9250_ACC_RANGE_2G);
myMPU9250.enableAccDLPF(true);
myMPU9250.setAccDLPF(MPU9250_DLPF_0);
tft.begin();
Serial.begin(115200);
bmp388.begin();
bmp388.setTimeStandby(TIME_STANDBY_2560MS);
bmp388.startNormalConversion();
for (int thisReading = 0; thisReading < numReadings; thisReading++)
readings[thisReading] = 0;
}
void loop() {
if (bmp388.getMeasurements(temperature, pressure, altitude))
total = total - readings[readIndex];
readings[readIndex] = analogRead(inputPin);
total = total + readings[readIndex];
readIndex = readIndex + 1;
if (readIndex >= numReadings) {
readIndex = 0;
}
{
Serial.print("Z = ");
Serial.print(Z);
Serial.println();
Serial.print("average = ");
Serial.println(average);
Serial.print("x = ");
Serial.println(x);
Serial.print("y = ");
Serial.println(y);
Serial.println();
Serial.println();
Serial.print(pressure);
Serial.print(F("hPa "));
Serial.println();
Serial.print(altitude);
Serial.println(F(" m"));
Serial.println();
tft.setColorDepth(18);
tft.setFont(&akasha_cap);
tft.setCursor(30, 30);
tft.setTextScale(5);
tft.setBrightness(15);
if (Z <= 15) {
tft.setTextColor(RED);
} else if (Z > 15 && Z <= 20) {
tft.setTextColor(YELLOW);
} else if (Z > 20) {
tft.setTextColor(GREEN);
}
average = total / numReadings / 103;
int x = groundfuel[(average)];
int y = flightfuel[(average)];
{
xyzFloat angle = myMPU9250.getAngles();
int B = (int)angle.y * 5;
Serial.print("B = ");
Serial.println (B);
if (B < -20) {
(Z = x);
} else if (B > -20) {
(Z = y);
}
tft.println(Z);
tft.ringMeter(Z, 0, 80, 0, 10, 62, 5, DARK_GREY, 130, 5); //val, min, max, x, y, r, scheme 0..9, backsegcolor, angle, inc solidity,
tft.setTextColor(WHITE);
tft.print(Z);
tft.setTextColor(WHITE);
tft.setTextScale(2);
tft.setCursor(45, 100);
tft.print(pressure);
if (Z == y) {
tft.setTextColor(MAGENTA);
tft.setCursor(105, 0);
tft.setTextScale(2);
tft.print("G");
} else if (Z == x) {
tft.setTextColor(WHITE);
tft.setCursor(110, 0);
tft.setTextScale(2);
tft.print("F");
}
delay(1000);
tft.clearScreen();
}
}
}
/Level meter 6
#include <SPI.h>
#include <SSD_13xx.h>
#include "_fonts/akasha_cap.c"
#include <MPU9250_WE.h>
#include <Wire.h>
#include <BMP388_DEV.h>
#define MPU9250_ADDR 0x68
#define __MOSI 23
#define __SLCK 18
#define __CS 17
#define __DC 16
#define __RST 05
float temperature, pressure, altitude;
BMP388_DEV bmp388;
const int numReadings = 5;
int readings[numReadings];
int readIndex = 0;
int total = 0;
int average = 0;
int inputPin = 4;
//Nr in array 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
int groundfuel[] = { 1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 68, 70, 72, 74, 76, 78, 80 };
int flightfuel[] = { 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 79, 79, 79, 79, 79, 79, 80, 80 };
int Z;
int x;
int y;
SSD_13XX tft = SSD_13XX(__CS, __DC);
MPU9250_WE myMPU9250 = MPU9250_WE(MPU9250_ADDR);
void setup() {
Wire.begin();
myMPU9250.autoOffsets();
myMPU9250.setAccRange(MPU9250_ACC_RANGE_2G);
myMPU9250.enableAccDLPF(true);
myMPU9250.setAccDLPF(MPU9250_DLPF_0);
tft.begin();
Serial.begin(115200);
bmp388.begin();
bmp388.setTimeStandby(TIME_STANDBY_2560MS);
bmp388.startNormalConversion();
for (int thisReading = 0; thisReading < numReadings; thisReading++)
readings[thisReading] = 0;
}
void loop() {
if (bmp388.getMeasurements(temperature, pressure, altitude))
total = total - readings[readIndex];
readings[readIndex] = analogRead(inputPin);
total = total + readings[readIndex];
readIndex = readIndex + 1;
if (readIndex >= numReadings) {
readIndex = 0;
}
{
Serial.print("Z = ");
Serial.print(Z);
Serial.println();
Serial.print("average = ");
Serial.println(average);
Serial.print("x = ");
Serial.println(x);
Serial.print("y = ");
Serial.println(y);
Serial.println();
Serial.println();
Serial.print(pressure);
Serial.print(F("hPa "));
Serial.println();
Serial.print(altitude);
Serial.println(F(" m"));
Serial.println();
tft.setColorDepth(18);
tft.setFont(&akasha_cap);
tft.setCursor(30, 30);
tft.setTextScale(5);
tft.setBrightness(15);
if (Z <= 15) {
tft.setTextColor(RED);
} else if (Z > 15 && Z <= 20) {
tft.setTextColor(YELLOW);
} else if (Z > 20) {
tft.setTextColor(GREEN);
}
average = total / numReadings / 103;
int x = groundfuel[(average)];
int y = flightfuel[(average)];
{
xyzFloat angle = myMPU9250.getAngles();
int B = (int)angle.y * 5;
Serial.print("B = ");
Serial.println (B);
if (B < -20) {
(Z = x);
} else if (B > -20) {
(Z = y);
}
tft.println(Z);
tft.ringMeter(Z, 0, 80, 0, 10, 62, 5, DARK_GREY, 130, 5); //val, min, max, x, y, r, scheme 0..9, backsegcolor, angle, inc solidity,
tft.setTextColor(WHITE);
tft.print(Z);
tft.setTextColor(WHITE);
tft.setTextScale(2);
tft.setCursor(45, 100);
tft.print(pressure);
if (Z == y) {
tft.setTextColor(MAGENTA);
tft.setCursor(105, 0);
tft.setTextScale(2);
tft.print("G");
} else if (Z == x) {
tft.setTextColor(WHITE);
tft.setCursor(110, 0);
tft.setTextScale(2);
tft.print("F");
}
delay(1000);
tft.clearScreen();
}
}
}