Skip to content

Instantly share code, notes, and snippets.

View paramoshkinandrew's full-sized avatar

Andrew Paramoshkin paramoshkinandrew

View GitHub Profile
@paramoshkinandrew
paramoshkinandrew / bme280_i2c.cpp
Created June 24, 2024 22:44
BME280 I2C read data, including compensation formulas
#include <Arduino.h>
#include <Wire.h>
#define BME280_ADDRESS 0x76
unsigned short dig_T1, dig_P1;
short dig_T2, dig_T3, dig_P2, dig_P3, dig_P4, dig_P5, dig_P6, dig_P7, dig_P8, dig_P9, dig_H2, dig_H4, dig_H5;
unsigned char dig_H1, dig_H3;
char dig_H6;
@paramoshkinandrew
paramoshkinandrew / Dockerfile
Created November 22, 2016 07:08
Dockerfile for using in GitLab CI (or similar) to create Android builds. Includes Android SDK 24 and r13b Android NDK
FROM openjdk:8-jdk
MAINTAINER Andrew Paramoshkin <[email protected]>
ENV ANDROID_TARGET_SDK="24" \
ANDROID_BUILD_TOOLS="24.0.0" \
ANDROID_SDK_TOOLS="24.4.1" \
ANDROID_NDK_VERSION="13" \
PATH="$PWD/android-sdk-linux/tools:$PATH"
RUN apt-get --quiet update --yes