——
#DonLucElectronics #DonLuc #BME280 #Environment #FireBeetle2ESP32C6 #ESP32 #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant
——
——
——
——
Fermion: ENS160+BME280 Environmental Sensor
BME280 is an environmental sensor that integrates onboard temperature sensor, humidity sensor and barometer. The sensor is of high precision, multiple functions, and small size etc. It provides both SPI and I2C interfaces, which make it easy to make a fast prototypes. It can be widely used in environmental monitoring, story height measurement and Internet of Things (IoT) control and so on. Gravity I2C BME280 Environmental Sensor has based on BoSCH newest MEMS sensor. Therefore, the stable and multi-function make BME280 become a good choice in many scenes.
DL2608Mk02
1 x FireBeetle 2 ESP32-C6
1 x Fermion: 2.0″ 320×240 IPS TFT LCD
1 x GDL Line 10 CM
1 x Fermion: ENS160+BME280 Environmental Sensor
1 x Lithium Ion Battery – 1000mAh
1 x USB 3.0 to Type-C Cable
DL2608Mk02p
DL2608Mk02p.ino
/****** Don Luc Electronics © ******
Software Version Information
Project #15: Environment – BME280 Environmental – Mk45
15-45
DL2608Mk02p.ino
DL2608Mk02
1 x FireBeetle 2 ESP32-C6
1 x Fermion: 2.0" 320x240 IPS TFT LCD
1 x GDL Line 10 CM
1 x Fermion: ENS160+BME280 Environmental Sensor
1 x Lithium Ion Battery - 1000mAh
1 x USB 3.0 to Type-C Cable
*/
// Include the Library Code
// DFRobot Display GDL API
#include <DFRobot_GDL.h>
// BME280 Environmental
#include <DFRobot_BME280.h>
// BME280 Environmental
typedef DFRobot_BME280_IIC BME;
// Wire
BME bme(&Wire, 0x76);
// Sea Level Pressure
#define SEA_LEVEL_PRESSURE 1015.0f
// Temperature
float temp = bme.getTemperature();
// Pressure
uint32_t press = bme.getPressure();
// Altitude
float alti;
// Humidity
float humi;
// Defined ESP32
#define TFT_DC D2
#define TFT_CS D6
#define TFT_RST D3
/*dc=*/ /*cs=*/ /*rst=*/
// DFRobot Display 240x320
DFRobot_ST7789_240x320_HW_SPI screen(TFT_DC, TFT_CS, TFT_RST);
// Software Version Information
String sver = "15-45";
void loop() {
// isBME280
isBME280();
// isDisplay BME280
isDisplayBME280();
// Delay 1 Second
delay( 1000 );
}
getBME280.ino
// BME280 Environmental
// isBME280
void isBME280(){
// Temperature
temp = bme.getTemperature();
// Pressure
press = bme.getPressure();
// Altitude
alti = bme.calAltitude(SEA_LEVEL_PRESSURE, press);
// Humidity
humi = bme.getHumidity();
}
getDisplay.ino
// DFRobot Display 240x320
// DFRobot Display 240x320 - UID
void isDisplayUID(){
// DFRobot Display 240x320
// Text Display
// Text Wrap
screen.setTextWrap(false);
// Rotation
screen.setRotation(3);
// Fill Screen => black
screen.fillScreen(0x0000);
// Text Color => white
screen.setTextColor(0xffff);
// Font => Free Mono 9pt
screen.setFont(&FreeMono9pt7b);
// TextSize => 1.5
screen.setTextSize(1.5);
// Don Luc Electronics
screen.setCursor(0, 30);
screen.println("Don Luc Electronics");
// BME280 Environmental
screen.setCursor(0, 60);
screen.println("BME280 Environmental");
// Version
screen.setCursor(0, 90);
screen.println("Version");
screen.setCursor(0, 120);
screen.println( sver );
}
// isDisplay BME280
void isDisplayBME280(){
// DFRobot Display 240x320
// Text Display
// Text Wrap
screen.setTextWrap(false);
// Rotation
screen.setRotation(3);
// Fill Screen => black
screen.fillScreen(0x0000);
// Text Color => white
screen.setTextColor(0xffff);
// Font => Free Mono 9pt
screen.setFont(&FreeMono9pt7b);
// TextSize => 1.5
screen.setTextSize(1.5);
// BME280 Environmental
screen.setCursor(0, 30);
screen.println("BME280 Environmental");
// Temperature
screen.setCursor(0, 60);
screen.print("Temp: ");
screen.setCursor(70, 60);
screen.print( temp );
screen.setCursor(160, 60);
screen.println( "°C" );
// Pressure
screen.setCursor(0, 90);
screen.print("Pres: ");
screen.setCursor(70, 90);
screen.print( press );
screen.setCursor(160, 90);
screen.println( "Pa" );
// Altitude
screen.setCursor(0, 120);
screen.print("Alti: ");
screen.setCursor(70, 120);
screen.print( alti );
screen.setCursor(160, 120);
screen.println( "M" );
// Humidity
screen.setCursor(0, 150);
screen.print("Humi: ");
screen.setCursor(70, 150);
screen.print( humi );
screen.setCursor(160, 150);
screen.println( "%" );
}
setup.ino
// Setup
void setup()
{
// Delay
delay(100);
// DFRobot Display 128x160
screen.begin();
// Delay
delay( 100 );
// BME280 Environmental
bme.begin();
// Delay
delay( 100 );
// DFRobot Display 240x320 - UID
// Don Luc Electronics
// Versioc
isDisplayUID();
// Delay
delay( 5000 );
}
——
People can contact us: https://www.donluc.com/?page_id=1927
Consultant, R&D, Electronics, IoT, Teacher and Instructor
- Programming Language
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc…)
- IoT
- Wireless (Radio Frequency, Bluetooth, WiFi, Etc…)
- Robotics
- Automation
- Camera and Video Capture Receiver Stationary, Wheel/Tank , Underwater and UAV Vehicle
- Unmanned Vehicles Terrestrial, Marine and UAV
- Machine Learning
- Artificial Intelligence (AI)
- RTOS
- Sensors, eHealth Sensors, Biosensor, and Biometric
- Research & Development (R & D)
- Consulting
Follow Us
Luc Paquin – Curriculum Vitae – 2026
https://www.donluc.com/luc/LucPaquinCVEng2026Mk01.pdf
https://www.donluc.com/luc/
Web: https://www.donluc.com/
Web: https://www.jlpconsultants.com/
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/@thesass2063
DFRobot: https://learn.dfrobot.com/user-10186.html
TikTok: https://www.tiktok.com/@luc.paquin8
Hackster: https://www.hackster.io/luc-paquin
LinkedIn: https://www.linkedin.com/in/jlucpaquin/
Don Luc





























