Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michal Rybka
openCanSat-2.0-library
Commits
a0986877
Commit
a0986877
authored
Sep 17, 2018
by
Markéta Jedličková
Browse files
Lite example not needed example deleted
parent
22ac3a7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/1-LITE-version-examples/CanSat-Lite/CanSat-Lite.ino
View file @
a0986877
...
...
@@ -15,32 +15,31 @@
Please maintain this license information along with authorship
and copyright notices in any redistribution of this code
*/
#include <Adafruit_BMP280.h> // include Adafruit BMP280 library
#include <SD.h> // include Arduino SD library
#include <RFM69.h> // include RFM69 library
#include <Adafruit_BMP280.h> // include Adafruit BMP280 library
#include <RFM69.h> // include RFM69 library
// Local constants
#define PC_BAUDRATE
56700
#define MS_DELAY
1500 // Number of milliseconds between data sending and LED signalization
#define PC_BAUDRATE
56700
#define MS_DELAY
1500 // Number of milliseconds between data sending and LED signalization
#define Serial SerialUSB
// RFM69 constants
#define NETWORKID
0
// Must be the same for all nodes (0 to 255)
#define MYNODEID
1
// My node ID (0 to 255)
#define TONODEID
2
// Destination node ID (0 to 254, 255 = broadcast)
#define FREQUENCY
RF69_433MHZ
#define CHIP_SELECT_PIN
43
//radio chip select
#define INTERUP_PIN
9
//radio interrupt
#define NETWORKID
0
// Must be the same for all nodes (0 to 255)
#define MYNODEID
1
// My node ID (0 to 255)
#define TONODEID
2
// Destination node ID (0 to 254, 255 = broadcast)
#define FREQUENCY
RF69_433MHZ
#define CHIP_SELECT_PIN
43
//radio chip select
#define INTERUP_PIN
9
//radio interrupt
// BMP280 constants
#define BMP280_ADDRESS_OPEN_CANSAT
0x76
#define BMP280_ADDRESS_OPEN_CANSAT
0x76
// BME280 constants
#define BME280_ADDRESS_OPEN_CANSAT
0x77
#define SEALEVELPRESSURE_HPA
1013.25
#define BME280_ADDRESS_OPEN_CANSAT
0x77
#define SEALEVELPRESSURE_HPA
1013.25
// SD card constants
#define sd_cs_pin
35
// set SD's chip select pin (according to the circuit)
#define sd_cs_pin
35
// set SD's chip select pin (according to the circuit)
// create object 'rf69' from the library, which will
// be used to access the library methods by a dot notation
...
...
@@ -56,15 +55,15 @@ typedef struct
int16_t
rssi
;
}
message
;
message
data
;
//create the struct variable
message
data
;
//create the struct variable
// create object 'bmp' from the library, which will
// be used to access the library methods by a dot notation
Adafruit_BMP280
bmp
;
// LEDS variables
#define D13_led_pin 42
// D13 LED
#define M_led_pin 36
// MLED
#define D13_led_pin 42 // D13 LED
#define M_led_pin 36
// MLED
// Local variables
int
idCounter
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment