@GordonD said in M5Unit_CO2_Core2 example compilation error:
fatal error: bsec2.h: No such file or directory
@GordonD said in M5Unit_CO2_Core2 example compilation error:
fatal error: bsec2.h: No such file or directory
weather information from openweathermap https://openweathermap.org on the e-ink display of the M5Paper. Please edit the config.h file with your own data. You need an api key from openweathermap.
Config.h
#pragma once
#define VERSION "Version 1.0"
#define CITY_NAME "City"
// change to your location
#define LATITUDE 47.69732
#define LONGITUDE 8.63493
#define OPENWEATHER_SRV "api.openweathermap.org"
#define OPENWEATHER_PORT 80
#define OPENWEATHER_API "your openweathermap api key"
#define WIFI_SSID "your wifi ssid"
#define WIFI_PW "your wifi password"
onecall is not free anymore with new accounts.
https://github.com/Bastelschlumpf/M5PaperWeather/issues/9
A command prompt starting with "$" indicates that the current user is in the normal user state, while a command prompt starting with "#" indicates that the user is in the super user (root) state.
The administrator account with the highest authority in the Linux system is root, also known as the superuser account. There are no restrictions on the use of this account. Administrators can make various changes to the system as long as they obtain this account, such as formatting and Mount the hard drive, add or delete user accounts, change various system services, update the system, etc.
How did you get into the terminal?
https://docs.m5stack.com/en/core/M5CoreMP135
1.Watch the final instructional film(development framework)
2.use putty login as root
Arduino IDE board as M5StickC (look at M5StickT.h)
https://github.com/m5stack/M5-StickT/archive/refs/heads/master.zip
M5StickT_Lepton_opensource_v1.ino
#include <M5StickT.h>
#include <Wire.h>
#include <SPI.h>
#include "Lepton.h"
#include "img_table.h"
#include "esp_attr.h"
#include "esp_timer.h"
#include "img/ColorT.h"
used EasyLoader tools be easy
https://docs.m5stack.com/en/core/m5stickt
https://github.com/SmartHome-yourself/m5-tough-touchmenu-for-esphome?tab=readme-ov-file
Source link
https://github.com/esphome/feature-requests/issues/2166
For information reference
install esphome
https://hackmd.io/@LHB-0222/ESPHOME_ESP32_SHTC3
board data
https://devices.esphome.io/devices/M5Stack-Fire
MQTT
https://koen.vervloesem.eu/blog/create-a-dashboard-for-your-mqtt-based-home-automation-system-with-the-m5stack-core-and-homepoint/
I’m not sure if the situation is the same? The following is for reference
https://lab.sasapea.mydns.jp/2019/07/11/m5stickc-start-adapter/
I2C is a one-master, multiple-slave approach. That is, one master device can connect to multiple slave devices and select and read through different device addresses. Please refer to the i2c protocol for details.
https://learn.adafruit.com/scanning-i2c-addresses/arduino
https://github.com/m5stack/TimerCam-arduino/tree/master/examples/wakeup
Compilation is OK, but there is no physical test
https://github.com/m5stack/M5-ProductExampleCodes/blob/master/App/PIANO/Arduino/M5PIANO/M5PIANO.ino
usb keyboard demo
https://github.com/m5stack/M5Cardputer/tree/master/examples/Basic/keyboard
Masterkey - USB WiFi Keylogger
https://github.com/justcallmekoko/USBKeylogger
Check if the wiring is correct
new link
https://lang-ship.com/reference/unofficial/M5StickC/Device/SPI/SD/
no M5-Core to try
https://github.com/m5stack/M5Tough/blob/master/src/M5Display.h
class M5Display : public TFT_eSPI {
public:
static M5Display* instance;
M5Display();
void begin();
void sleep();
void wakeup();
void setBrightness(uint8_t brightness);
void clearDisplay(uint32_t color=ILI9341_BLACK) { fillScreen(color); }
void clear(uint32_t color=ILI9341_BLACK) { fillScreen(color); }
void display() {}
so you can try this
#include <M5Display.h>
M5.Lcd.setBrightness(value); //uint8_t Brightness (0: Off - 255:Full)