Add menu, TODO: add hold key events to quickly change value in menu setters

This commit is contained in:
Edward Emelianov
2023-05-14 01:44:53 +03:00
parent e6dc55764b
commit 13cc2a7e70
18 changed files with 442 additions and 132 deletions

View File

@@ -45,14 +45,14 @@
#include "i2c.h"
#include "BMP280.h"
#include <math.h>
#include "usb.h"
#ifdef EBUG
#include "strfunc.h"
#include "usb.h"
extern volatile uint32_t Tms;
#endif
#include <math.h>
#define BMP280_I2C_ADDRESS_MASK (0x76)
#define BMP280_I2C_ADDRESS_0 (0x76)
#define BMP280_I2C_ADDRESS_1 (0x77)
@@ -338,7 +338,6 @@ int BMP280_getdata(float *T, float *P, float *H){
uint8_t data[8];
uint8_t datasz = 8; // amount of bytes to read
if(params.ID != BME280_CHIP_ID){
DBG("Not BME!\n");
if(H) *H = 0;
H = NULL;
datasz = 6;