Sming Logo
latest

Contents:

  • Getting Started
  • Features
  • Framework
  • Sample Projects
    • MMA7455 Accelerometer
    • Arducam
    • Basic APA102
    • Basic AWS
    • Basic Audio
    • Basic Blink
      • References
      • SoC support
    • Basic Capsense
    • Basic DateTime
    • Basic Delegates
    • Basic Ethernet
    • Basic Hardware PWM
    • Basic IFS
    • Basic Interrupts
    • Basic NFC
    • Basic Neopixel
    • Basic Ota
    • Basic ProgMem
    • Basic I2C Scanner
    • Basic Serial
    • Basic Servo
    • Basic Smart Config
    • Basic SSL
    • Basic Storage
    • Basic Tasks
    • Basic Templates
    • Basic Utility
    • Basic Web Skeleton
    • Basic Web Skeleton (LTS)
    • Basic WiFi
    • CANBUS
    • CommandProcessing Debug
    • HMC5883L Compass
    • DFPlayer Mini
    • DS3232RTC NTP Setter
    • TM1637 Display
    • Distance measurement with Vl530xl sensor
    • DNS Captive Portal
    • Echo SSL
    • FTP Server Files
    • APDS-9660 Gesture
    • HTTP Client
    • HttpClient Instapush
    • ThingSpeak Http Client
    • AJAX Http Server
    • Bootstrap Http Server
    • HttpServer Config Network
    • HttpServer Firmware Upload
    • HttpServer Plugins
    • HttpServer Websockets
    • AM2321 Humidity Sensor
    • BME280 Humidity Sensor
    • DHT22 Humidity Sensor
    • SI7021 Humidity Sensor
    • IR Library
    • WS2812 LEDs
    • Yeelight LED bulbs
    • BH1750 Light Sensor
    • Liquid Crystal 44780
    • Live Debug
    • MeteoControl
    • MeteoControl MQTT
    • MQTT Client Hello
    • Network Ping
    • Nextion Button
    • MCP23017 I2C Port Expander
    • MCP23S17 SPI Port Expander
    • BMP180 Pressure Sensor
    • RCSwitch Library
    • nRF24L01 Radio
    • SI443 Radio
    • SD Card
    • 5110 LCD Screen
    • SSD1306 OLED Screen
    • ILI9163C TFT Screen
    • ILI9340 and ILI9341 TFT Screens
    • ST7735 TFT Screen
    • SMTP Client
    • SystemClock NTP
    • TCP Client NarodMon
    • Telnet Server
    • DS1820 Temperature Sensor
    • UDP Server Echo
    • UDP Server mDNS
    • HCSR04 Ultrasonic Transducer
    • WebcamServer sample
    • Websocket Client
    • WiFi Sniffer
    • Hosted RPC Server over Serial
    • Hosted RCP Server over TCP
    • Basic AnimatedGIF
    • TensorFlow_HelloWorld
    • Webcam
    • Bluetooth Gamepad
    • Bluetooth Keyboard
    • CS5460 generic sample
    • Control your DIAL-enabled smart monitor/TV using Sming
    • Basic FlashIP
    • Google Cast Client
    • Advanced Animation
    • Basic Animation
    • Basic Graphics
    • Basic Touch
    • Bresenham
    • Color Test
    • Custom Object
    • Basic Alexa
    • Basic RS485
    • LittleFS inspector
    • Basic MDNS
    • MHZ19 CO2 sensor reading
    • MHZ19 Span-calibration
    • MHZ19 Zero-Calibration
    • ModbusMaster RTU generic sample
    • HttpServer Upload
    • OTA over MQTT
    • RingTone Player
    • Switch Joycon
    • Screen TFT_S1D13781
    • Basic ControlPoint
    • Basic UPnP
    • Basic Device
    • Basic Host
    • CDC MSC HID Host sample
    • HID Composite Device sample
    • Basic FlatBuffers Sample
    • Advanced_Jsvm
    • Basic Context
    • Basic_Jsvm
    • Event_Jsvm
    • Modbusino RTU generic sample
    • Basic_VM
    • UserCalls
  • Libraries
  • API Documentation
  • Information
  • Upgrading
  • Experimental Stuff
  • Contributing
  • Tools Integration
  • Troubleshooting
  • About
Sming
  • »
  • Sample Projects »
  • Basic Blink
  • View on GitHub

Basic Blink

Simple blink example to confirm that the basic build system is working with your system.

We use Timer instead of a loop because we want to allow WiFi communications to work in the background. See Multitasking.

The LED on many development boards is connected to GPIO2, so this is the default.

If you get no response then check the documentation or schematic as your system may differ and change the LED_PIN definition accordingly.

For example, the NodeMCU ESP-C3 kits have an RGB LED connected to GPIO 3, 4 & 5.

../../../_images/blink.jpg

References

  • Source Code

  • Sming (main)

SoC support

  • esp32

  • esp32c2

  • esp32c3

  • esp32s2

  • esp32s3

  • esp8266

  • host

  • rp2040

Previous Next

© Copyright Sming Developer Team. Revision e1b0f2b2.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
fix-doc-generation
feature-nvs
feature-io-control
Downloads
html
On Read the Docs
Project Home
Builds