senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. subtle-llama

subtle-llama

Sensors
WIFI
ESPNOW
Ethernet
SD
LED
LED Matrix
Display
openSenseMap
LoRa
Aktivierung
Lora Message
TTN Mapper
Cayenne LPP
Bluetooth
Phyphox
Webserver
MQTT
Logic
Loops
Text
Time
Time control
RTC
NTP
Math
Audio
Variables
Functions
Advanced
Serial
Input/Output
Motors
Watchdog
Initialize DisplayTemperaturEnvironmental sensor (BME680)Value:Temperature in °C ▾°CFeuchtigkeitEnvironmental sensor (BME680)Value:humidity in % ▾%Show MeasurementsTitleValueUnitTitleValueUnit2000LuftdruckEnvironmental sensor (BME680)Value:Airpressure in Pa ▾100÷ ▾hPa  Show MeasurementsTitleValueUnitTitleValueUnit2000waitmillisecondsPrint on displayClear DisplaywaitmillisecondsPrint on displayClear DisplayArduino run first:Arduino loop forever:
1113000100500100500100TitleUnitTitleUnit01505050150000000latitudelongitudealtitudepDOPfixType10110110001000000000101197011100110022010090
{ }
Arduino Source Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by senseBox Blockly on Thu May 29 2025 07:53:50 GMT+0000 (Coordinated Universal Time)
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h> // http://librarymanager/All#Adafruit_GFX_Library
#include <Adafruit_SSD1306.h> // http://librarymanager/All#Adafruit_SSD1306
#include <bsec.h> // http://librarymanager/All#BSEC_Software_Library
float bmeTemperatur;
float bmeHumidity;
double bmePressure;
float bmeIAQ;
float bmeIAQAccuracy;
int bmeCO2;
float bmeBreathVocEquivalent;
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
Bsec iaqSensor;
void printOnDisplay(String title1, String measurement1, String unit1, String title2, String measurement2, String unit2) {
  display.setCursor(0, 0);
  display.setTextSize(1);
  display.setTextColor(WHITE, BLACK);
<>
XML Blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<xml xmlns="https://developers.google.com/blockly/xml" board="null">
  <block type="arduino_functions" id="QWW|$jB8+*EL;}|#uA" deletable="false" x="27" y="16">
    <statement name="SETUP_FUNC">
      <block type="sensebox_display_beginDisplay" id="}hE_4y9sk7,==h]cc}d|"></block>
    </statement>
    <statement name="LOOP_FUNC">
      <block type="sensebox_display_clearDisplay" id="NzQ?%(-!X(RX1L-0~+6E">
        <next>
          <block type="sensebox_display_show" id="N9t//CcJyCewA/Z1FH2O">
            <statement name="SHOW">
              <block type="sensebox_display_fastPrint" id="w]w#_4n$e2o6`}@ByY~r">
                <value name="Title1">
                  <block type="text" id="{?Cddu/gl:]+h~{-dOf%">
                    <field name="TEXT">Temperatur</field>
                  </block>
                </value>
                <value name="Value1">
                  <block type="sensebox_sensor_bme680_bsec" id="?IA/s~.g{iUVr3to5!Ue">
                    <field name="dropdown">temperature</field>
                    <data>[object Object]</data>
                  </block>
                </value>
                <value name="Dimension1">
                  <block type="text" id=".md@)~zAT,U@|fnz*mM~">
                    <field name="TEXT">°C</field>
                  </block>
                </value>
                <value name="Title2">
                  <block type="text" id="+0S]Qx}S^idEQk@1eTdF">
                    <field name="TEXT">Feuchtigkeit</field>
                  </block>

Information about the Block

Select a Block to show the hint

This website uses cookies to enhance the user experience.
Impressum

|

Privacy

|

News

|

sensebox.de
Menu
    Blockly
    Tutorials
    Gallery
    Code Editor

    Login
    FAQ
    Settings

Which board are you using?

senseBox MCU

senseBox MCU-S2

senseBox MCU:mini

Here you can access the old blockly Version for the Arduino UNO or the senseBox MCU