senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. senseBox Buch - senseBox Orakel (Kapitel 6)

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
Custom Functions
QOOOL
Advanced
Serial
Input/Output
Motors
Watchdog
Webserver
MQTT
Ethernet
Audio
Initialize DisplayButtonwas Pressed â–¾Pin:on Board â–¾VariableCase (Variable) : DoCase (Variable) : DoCase (Variable) : DoCase (Variable) : Dodefaultsetintzufallszahl â–¾toifdoSetup()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 Sun Feb 08 2026 10:07:37 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 <JC_Button.h> // http://librarymanager/All#JC_Button
int zufallszahl;
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
Button button_0(0);
<>

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="int" id="%K5Y}cAeg}-/T.h.G_h,">zufallszahl</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="e_-+E%Ch+=(#f(CKDaAE"></block>
    </statement>
    <statement name="LOOP_FUNC">
      <block type="controls_if" id="nZB5sf!ZP)XQid5QZn5x">
        <value name="IF0">
          <block type="sensebox_button" id="0R8j?`,|A~q|;a=?GRtC">
            <field name="FUNCTION">wasPressed</field>
            <field name="PIN">0</field>
          </block>
        </value>
        <statement name="DO0">

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