senseBox Blockly
senseBox-Logo
  1. ›
  2. Galerie

  3. ›
  4. Eieruhr - Frohe Ostern!

Eieruhr - Frohe Ostern!

Sensors
WIFI
ESPNOW
Ethernet
SD
LED
LED Matrix
Display
openSenseMap
LoRa
Aktivierung
Lora Message
TTN Mapper
Cayenne LPP
Bluetooth
Phyphox
QOOOL
Webserver
MQTT
Logic
Loops
Text
Time
Time control
RTC
NTP
Math
Audio
Variables
Functions
Advanced
Serial
Input/Output
Motors
Watchdog
6Initialize DisplaysetintCountdown ▾toButtonwas Pressed ▾Pin:on Board ▾60-1intCountdown ▾0= ▾Das Fruehstuecksei ist fertig - Frohe Ostern!Show Text/NumberFont colorWhite ▾Fontsize1x-Coordinates0y-Coordinates0Value5220500500waitmillisecondsTurn off tone on pin #A1 ▾waitmillisecondsSet tone on pin #A1 ▾at frequencyHzrepeattimesdoPrint on displayNoch intCountdown ▾ Minuten bis zum Fruehstuecksei!create text withShow Text/NumberFont colorWhite ▾Fontsize2x-Coordinates0y-Coordinates0Value60000Clear DisplaywaitmillisecondsPrint on displayifdocount withCountdown ▾fromtobydoDruecke den Button, um die Eieruhr zu starten!Show Text/NumberFont colorWhite ▾Fontsize1x-Coordinates0y-Coordinates10ValuePrint on displayifdoelseArduino run first:Arduino loop forever:
11DataDataDataDateiname13000100500100500100TitleUnitTitleUnit01505050150000000latitudelongitudealtitudepDOPfixType30 10110110001000000000101197011100110022010090
{ }

Arduino Source Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by senseBox Blockly on Fri Sep 12 2025 04:23:03 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 Countdown;
#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="vy#}MHKgE7+HU813%trL">Countdown</variable>
  </variables>
  <block type="arduino_functions" id="QWW|$jB8+*EL;}|#uA" deletable="false" x="226" y="-308">
    <statement name="SETUP_FUNC">
      <block type="variables_set_dynamic" id="`$ib9nJ.S17j9i6zF[yH">
        <field name="VAR" id="vy#}MHKgE7+HU813%trL" variabletype="int">Countdown</field>
        <value name="VALUE">
          <block type="math_number" id="_w3y?^3LnOFS716h2=|G">
            <field name="NUM">6</field>
          </block>
        </value>
        <next>
          <block type="sensebox_display_beginDisplay" id="=g/S4:/Ks^ZL[7Ebv~?G"></block>
        </next>
      </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