senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. senseBox Buch - Der akustische Schalter (Kapitel 5)

Sensors
LED
RGB LED
LED Matrix
Display
Data transmission
WIFI
openSenseMap
LoRa
Aktivierung
Lora Message
TTN Mapper
Bluetooth
Phyphox
ESPNOW
SD
Text
Logic
Loops
Time
Time control
RTC
NTP
Math
Variables
Functions
QOOOL
Advanced
Serial
Input/Output
Motors
Watchdog
Webserver
MQTT
Ethernet
Audio
false â–¾setbooleanstatus â–¾toInitialize DisplayMicrophonePin:A1 â–¾floatmikro â–¾Show Text/NumberFont colorWhite â–¾Fontsize1x-Coordinates0y-Coordinates0Valuefloatmikro â–¾2> â–¾booleanstatus â–¾false â–¾= â–¾and â–¾500true â–¾setbooleanstatus â–¾towaitmillisecondsLED connected toPin:A2 â–¾Statuson â–¾floatmikro â–¾2> â–¾booleanstatus â–¾true â–¾= â–¾and â–¾500false â–¾setbooleanstatus â–¾towaitmillisecondsLED connected toPin:A2 â–¾Statusoff â–¾ifdoelse ifdoPrint on displaysetfloatmikro â–¾toSetup()Loop()
1113000100500100500100TitleUnitTitleUnit01505050150000000latitudelongitudealtitudepDOPfixTypeDataDataDataDateiname1011011000100000000010119701110011003010090220
{ }

Arduino Source Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by senseBox Blockly on Tue Jan 20 2026 04:34:00 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
boolean status;
float mikro;
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
<>

XML Blocks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<xml xmlns="https://developers.google.com/blockly/xml" board="null">
  <variables>
    <variable type="float" id="GjaGjb?F`2W=0TXUY+e-">mikro</variable>
    <variable type="boolean" id="CJ9*X{5ok1eo91--5}6r">status</variable>
  </variables>
  <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="EU|~Iy],U8~Ywfe;+Mvw">
        <next>
          <block type="variables_set_dynamic" id="fbD!+BQA}dg~.~9C[E;q">
            <field name="VAR" id="CJ9*X{5ok1eo91--5}6r" variabletype="boolean">status</field>
            <value name="VALUE">
              <block type="logic_boolean" id="=tFbo[D;f8FGF0e9lCEv">
                <field name="BOOL">FALSE</field>
              </block>
            </value>
          </block>

Information about the Block

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