Update Payload_BME280_MPU6050_XS.ino changes for Arduino Mbed RP2040 board

pull/295/head
Alan Johnston 2 years ago committed by GitHub
parent 1c916bee0e
commit bf993386da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,8 +6,11 @@
#include <Adafruit_Sensor.h> #include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h> #include <Adafruit_BME280.h>
#include <MPU6050_tockn.h> #include <MPU6050_tockn.h>
#include <EEPROM.h>
#include <TinyGPS++.h> #include <TinyGPS++.h>
#ifndef ARDUINO_ARCH_RP2040
#include <EEPROM.h>
#endif
#define SEALEVELPRESSURE_HPA (1013.25) #define SEALEVELPRESSURE_HPA (1013.25)
@ -356,7 +359,7 @@ void blink_setup()
#endif #endif
#if defined ARDUINO_ARCH_RP2040 #if defined ARDUINO_ARCH_RP2040
if (check_for_wifi()) { /* if (check_for_wifi()) {
wifi = true; wifi = true;
led_builtin_pin = LED_BUILTIN; // use default GPIO for Pico W led_builtin_pin = LED_BUILTIN; // use default GPIO for Pico W
pinMode(LED_BUILTIN, OUTPUT); pinMode(LED_BUILTIN, OUTPUT);
@ -364,7 +367,9 @@ void blink_setup()
} else { } else {
led_builtin_pin = 25; // manually set GPIO 25 for Pico board led_builtin_pin = 25; // manually set GPIO 25 for Pico board
// pinMode(25, OUTPUT); // pinMode(25, OUTPUT);
pinMode(led_builtin_pin, OUTPUT); */
led_builtin_pin = LED_BUILTIN; // use default GPIO for Pico W
pinMode(LED_BUILTIN, OUTPUT);
pinMode(18, OUTPUT); pinMode(18, OUTPUT);
pinMode(19, OUTPUT); pinMode(19, OUTPUT);

Loading…
Cancel
Save

Powered by TurnKey Linux.