Ray Burnette
Published

BMP180 Barometer on ARM 32-bit under Arduino 1.6.0

BMP180 Barometer and Temperature running on ARM 32-bit $5 Maple Mini Clone (72MHz) with Nokia 5110 GLCD.

Full instructions provided6,337
BMP180  Barometer on ARM 32-bit under Arduino 1.6.0

Story

Read more

Code

New function

Plain text
Added to replace changes in the core files
#define BUTTON_DEBOUNCE_DELAY 1
uint8 isButtonPressed(uint8 pin=BOARD_BUTTON_PIN,
                      uint32 pressedLevel=BOARD_BUTTON_PRESSED_LEVEL) {
    if (digitalRead(pin) == pressedLevel) {
        delay(BUTTON_DEBOUNCE_DELAY);
        while (digitalRead(pin) == pressedLevel)
            ;
        return true;
    }
    return false;
}

file_9041.txt

Plain text
BMP085 connection successful

Local Pressure Correction Constant: 3380

Temp/Pres:      70.3F           1027.63 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.65 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.60 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.64 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.63 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.59 hPa     30.34 inHg

Temp/Pres:      70.3F           1027.67 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.68 hPa     30.35 inHg

Temp/Pres:      70.3F           1027.63 hPa     30.35 inHg

GLCD5110_BMP085.zip

Plain text
Updated code to replicate missing function Is Button Pressed?
No preview (download only).

Credits

Ray Burnette

Ray Burnette

59 projects • 424 followers
IT architect - retired AT&T... USAF-Secure Comm , Burroughs, Clemson U. School of EE Research, Southern Bell, BellSouth, SofKinetics, Inc. (President), AT&T IT
Thanks to Bob Cousins and Roger Clark.

Comments