/***************************************************
This is our GFX example for the Adafruit ILI9341 Breakout and Shield
----> http://www.adafruit.com/products/1651
Check out the links above for our tutorials and wiring diagrams
These displays use SPI to communicate, 4 or 5 pins are required to
interface (RST is optional)
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text above must be included in any redistribution
****************************************************/
#include "fosLcd.h"
#include "Adafruit_ILI9341.h"
#include "fosTmp.h"
#include "fosMotion.h"
#include "fosCmd.h"
SemaphoreHandle_t bin_sem;
static const BaseType_t pro_cpu = 0;
static const BaseType_t app_cpu = 1;
volatile float tmps;
int next = 2;
int back = 15;
void setup() {
Serial.begin(115200);
Serial.println("fos is starting...");
bin_sem = xSemaphoreCreateBinary();
xTaskCreatePinnedToCore(tmp,"tmp", 2048,NULL,1,NULL,app_cpu);
xTaskCreatePinnedToCore(mainScreen,"lcd", 4096,NULL ,1,NULL,pro_cpu);
xTaskCreatePinnedToCore(cmd,"cmd", 1024,NULL ,1,NULL,app_cpu);
xTaskCreatePinnedToCore(fosMs,"motion", 1024,NULL ,1,NULL,app_cpu);
//xSemaphoreTake(bin_sem,portMAX_DELAY);
Serial.println(F("Done!"));
}
void loop(void) {
}