Browse Source

barometer: support 'make purple' for barometer example code

master
Andrew Tridgell 13 years ago committed by Pat Hickey
parent
commit
0601f7e8ce
  1. 5
      libraries/APM_BMP085/examples/APM_BMP085_test/APM_BMP085_test.pde
  2. 3
      libraries/APM_BMP085/examples/APM_BMP085_test/Makefile

5
libraries/APM_BMP085/examples/APM_BMP085_test/APM_BMP085_test.pde

@ -13,8 +13,11 @@ unsigned long timer; @@ -13,8 +13,11 @@ unsigned long timer;
FastSerialPort0(Serial);
// set this to true on purple
#ifdef PURPLE_HARDWARE
static bool purple_hardware = true;
#else
static bool purple_hardware = false;
#endif
void setup()
{

3
libraries/APM_BMP085/examples/APM_BMP085_test/Makefile

@ -1,2 +1,5 @@ @@ -1,2 +1,5 @@
BOARD = mega
include ../../../AP_Common/Arduino.mk
purple:
make -f Makefile EXTRAFLAGS="-DPURPLE_HARDWARE=1"

Loading…
Cancel
Save