I try RTOS in PlatformIO. here the code
#include “mbed.h”
#include “KS0108.h”
#include “Arial12.h”
#include “Arial14.h”
#include “vivaldi16.h”
#include “rtos/rtos.h”
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalInOut af(PC_10);
DigitalInOut ad(PC_1);
KS0108 display(PA_0,PA_1, PA_2, PA_3, PA_4, PA_5, PA_6, PA_7, PA_8, PA_9, PA_10, PA_11, PA_12, PA_13);
void testLCD(){
display.ClearScreen();
display.GotoXY(5,0);
display.SelectFont(Arial12,BLACK,ReadData);
display.PrintNumber(1);
display.PrintChar('m');
display.GotoXY(5,16);
display.PrintString("arial Font test");
wait(3);
display.GotoXY(2,32);
display.SelectFont(vivaldi16,BLACK,ReadData);
display.PrintString("Vivaldi font");
wait(3);
}
void testLCDR(){
display.ClearScreen();
display.RoundRectangle(0,0,127,63,3,BLACK);
while(1){
display.HLine(20,70,30,BLACK);
display.HLineShort(30,20,50,BLACK);
display.VLine(20,40,30,BLACK);
display.VLineShort(70,5,50,BLACK);
display.SlantyLine(5,8,20,30,BLACK);
display.DegreeLine(15,30,30,6,20,BLACK);
display.FullRectangle(10,30,15,34,BLACK);
display.EmptyRectangle(5,5,50,59,BLACK);
display.RoundRectangle(30,20,80,35,7,BLACK);
wait(2);
display.ClearScreen();
}
}
int main() {
while (1) {
led1 = !led1;
led2 = !led1;
testLCD();
}
}
And produce this error
Description Resource Path Location Type
fatal error: mbed_rtx_conf.h: No such file or directory platformioTest line 29, external location: /home/hanif/.platformio/packages/framework-mbed/rtos/rtos.h C/C++ Problem
can some one help me?
thanks