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 <Adafruit_BMP085.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
/Adafruit_BMP085 bmp; | |
LiquidCrystal_I2C lcd(0x3F, 16, 2); | |
byte degree_symbol[8] = | |
{ | |
0b00111, | |
0b00101, |
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 <Adafruit_BMP085.h> | |
Adafruit_BMP085 bmp;; | |
void setup() | |
{ | |
Serial.begin(115200); | |
if (!bmp.begin()) | |
{ | |
Serial.println("BMP180 Sensor not found ! ! !"); | |
while (1) |
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
cmake_minimum_required(VERSION 3.13) | |
include(pico_sdk_import.cmake) | |
project(myproject_test C CXX ASM) | |
set(CMAKE_C_STANDARD 11) | |
set(CMAKE_CXX_STANDARD 17) | |
pico_sdk_init() |
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 <stdio.h> | |
#include "pico/stdlib.h" | |
#include "hardware/gpio.h" | |
const uint LEDPIN = 25; | |
int main() | |
{ | |
stdio_init_all(); | |
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 "DHT.h" | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
#define DHT11PIN 16 | |
DHT dht(DHT11PIN, DHT11); | |
LiquidCrystal_I2C lcd(0x3F, 16, 2); | |
byte degree_symbol[8] = |
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 "DHT.h" | |
#define DHT11PIN 16 | |
DHT dht(DHT11PIN, DHT11); | |
void setup() | |
{ | |
Serial.begin(115200); | |
/* Start the DHT11 Sensor */ | |
dht.begin(); |
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 <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
#define DS18B20PIN 16 | |
/* Create an instance of OneWire */ | |
OneWire oneWire(DS18B20PIN); |
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 <OneWire.h> | |
#include <DallasTemperature.h> | |
#define DS18B20PIN 16 | |
/* Create an instance of OneWire */ | |
OneWire oneWire(DS18B20PIN); | |
DallasTemperature sensor(&oneWire); |
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 <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
// See the following for generating UUIDs: | |
// https://www.uuidgenerator.net/ | |
#define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" | |
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" |
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 "BLEDevice.h" | |
/* Specify the Service UUID of Server */ | |
static BLEUUID serviceUUID("4fafc201-1fb5-459e-8fcc-c5c9c331914b"); | |
/* Specify the Characteristic UUID of Server */ | |
static BLEUUID charUUID("beb5483e-36e1-4688-b7f5-ea07361b26a8"); | |
static boolean doConnect = false; | |
static boolean connected = false; | |
static boolean doScan = false; |
NewerOlder