Skip to content

Instantly share code, notes, and snippets.

//bits representing numerals 0-9
const byte numeral[11]= {
B11111100, //0
B01100000, //1
B11011010, //2
B11110010, //3
B01100110, //4
B10110110, //5
B00111110, //6
#include <Arduino_FreeRTOS.h>
#include "queue.h"
#define RED 6
#define YELLOW 5
#define SW1 7
#define SW2 8
QueueHandle_t BlinkQueue;
#include <Arduino_FreeRTOS.h>
#include "queue.h"
#define RED 6
#define SW1 7
QueueHandle_t ledQueue;
void setup()
{
#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
#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;
#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} };
#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;
#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;
#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;