Skip to content

L2 Task 1: LED blink implementation#23

Open
akhilaryan007 wants to merge 1 commit intoiomico-public:mainfrom
akhilaryan007:l2-task1-branch
Open

L2 Task 1: LED blink implementation#23
akhilaryan007 wants to merge 1 commit intoiomico-public:mainfrom
akhilaryan007:l2-task1-branch

Conversation

@akhilaryan007
Copy link
Copy Markdown

Implemented Level 2 Task 1: LED Blink Application using Zephyr RTOS within the zephyr-course workspace.

The application configures an LED using the device tree alias led0 and toggles its state every 1 second. The implementation leverages Zephyr’s GPIO abstraction (gpio_dt_spec) for hardware-independent configuration and control

Implementation Details :

  1. Used Device Tree alias (DT_ALIAS(led0)) to access LED hardware
  2. Initialized GPIO using:
  3. gpio_is_ready_dt() for device readiness
  4. gpio_pin_configure_dt() for output configuration
  5. Implemented LED toggling using:
  6. gpio_pin_toggle_dt()
  7. Introduced delay using:
  8. k_msleep(1000) for 1-second interval
  9. Integrated logging using Zephyr logging subsystem:
  10. Logs LED state (ON/OFF)
  11. Confirms execution with status message

Testing :

Successfully built using Zephyr build system
simulated with the native_sim
Verified:
LED toggles every second
Console logs reflect correct LED state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant