This file contains 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 <Wire.h> | |
#include <stdint.h> | |
#define BMP085_ADDRESS 0x77 // I2C address of BMP085 | |
const unsigned char OSS = 0; // Oversampling Setting | |
// Calibration values | |
int16 ac1; | |
int16 ac2; |
This file contains 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
boolean gpsStatus[] = {false, false, false, false, false, false, false}; | |
unsigned long start; | |
HardwareSerial gpsSerial(Serial1); | |
void setup() | |
{ | |
gpsSerial.begin(9600); | |
// START OUR SERIAL DEBUG PORT | |
// |
This file contains 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 <Wire.h> | |
#include <HMC5883L.h> | |
#include <TinyGPS++.h> | |
#include <SoftwareSerial.h> | |
#include "I2Cdev.h" | |
#include "MPU6050.h" | |
// POCZATEK DEKLARACJI HMC5883L ---------------------------------- | |
HMC5883L compass; | |
// KONIEC DEKLARACJI HMC5883L ---------------------------------- |
This file contains 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 "FastLED.h" | |
#define PIN 6 | |
#define LEDS_PER_STAIR 15 | |
#define STAIRS_NUMBER 16 | |
#define NUM_LEDS LEDS_PER_STAIR * STAIRS_NUMBER | |
#define LIGHT_SENSOR_ANALOG_PIN 4 | |
#define LIGHT_LEVLE_LIMIT 50 | |
CRGB leds[NUM_LEDS]; |