This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//bits representing numerals 0-9 | |
const byte numeral[11]= { | |
B11111100, //0 | |
B01100000, //1 | |
B11011010, //2 | |
B11110010, //3 | |
B01100110, //4 | |
B10110110, //5 | |
B00111110, //6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#include "queue.h" | |
#define RED 6 | |
#define YELLOW 5 | |
#define SW1 7 | |
#define SW2 8 | |
QueueHandle_t BlinkQueue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#include "queue.h" | |
#define RED 6 | |
#define SW1 7 | |
QueueHandle_t ledQueue; | |
void setup() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <ChainableLED.h> | |
#include "ds3231.h" | |
#include <ADXL345.h> | |
#include <M2M_LM75A.h> | |
//Definitions for Joystick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#define RED 6 | |
#define YELLOW 7 | |
#define BLUE 8 | |
const uint16_t *blueLed = (uint16_t *) BLUE; | |
const uint16_t *redLed = (uint16_t *) RED; | |
const uint16_t *yellowLed = (uint16_t) YELLOW; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#define RED 6 | |
#define YELLOW 7 | |
#define BLUE 8 | |
TaskHandle_t blueHandle, redHandle, yellowHandle; | |
const uint16_t taskParam[3][2] = { {BLUE, 500}, {RED, 1000}, {YELLOW, 2000} }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#define RED 6 | |
#define YELLOW 7 | |
#define BLUE 8 | |
const uint16_t *blueLed = (uint16_t *) BLUE; | |
const uint16_t *redLed = (uint16_t *) RED; | |
const uint16_t *yellowLed = (uint16_t) YELLOW; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#define RED 6 | |
#define YELLOW 7 | |
#define BLUE 8 | |
const uint16_t *blueLed = (uint16_t *) BLUE; | |
const uint16_t *redLed = (uint16_t *) RED; | |
const uint16_t *yellowLed = (uint16_t) YELLOW; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#define RED 6 | |
#define YELLOW 7 | |
#define BLUE 8 | |
const uint16_t *blueLed = (uint16_t *) BLUE; | |
const uint16_t *redLed = (uint16_t *) RED; | |
const uint16_t *yellowLed = (uint16_t) YELLOW; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino_FreeRTOS.h> | |
#define RED 6 | |
#define YELLOW 7 | |
#define BLUE 8 | |
void setup() { | |
xTaskCreate(redLedControllerTask, "RED LED Task", 128, NULL, 1, NULL); | |
xTaskCreate(blueLedControllerTask, "BLUE LED Task", 128, NULL, 1, NULL); | |
xTaskCreate(yellowLedControllerTask, "YELLOW LED Task", 128, NULL, 1, NULL); |
NewerOlder