TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139250 times)
  2. FAT32 Library (71746 times)
  3. Network Ethernet Library (57120 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28074 times)
  9. PID Library (26885 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Digital Input Output Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-07-09

Package Version: 2.0.0.21

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 162 times

Not followed.

License: MIT license  

The application demonstrates GPIO SDK functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Digital Input Output Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Digital Input Output Demo" changes.

Do you want to report abuse regarding "Digital Input Output Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

Digital Input Output DEMO

This example demonstrates digital input and digital output functionalities. Turn on switches for PORT LEDS and BUTTONS in the BOARD SETUP section of your board, follow the steps and see how the LEDs on port A respond to pushing buttons.


  • Author : MIKROE
  • Version : 2.0.0.21
  • Date : July 2024.

Hardware Support

  • Put PORT LED switches in ON position.
    • switch A for MCUs with 8-bit port
    • switches A and B for MCUs with 16-bit port
    • switches A, B, C and D for MCUs with 32-bit port
  • Put BUTTON switches in ON position.
    • switch B for MCUs with 8-bit port
    • switches C and D for MCUs with 16-bit and 32-bit port

image

  • Put switches for buttons on the left side of the board in PULL DOWN position
    • in case of 8-bit port:
      • image
    • in case of 16-bit port:
      • image

Software Support

We provide demo code for testing digital input and output functionalities. To run this example, follow these steps:

  1. Install the package from Package manager.
  2. Open example.
  3. It will take you to setups, so make one for your hardware.
  4. Choose adequate setup and the project will open.
  5. Program it by clicking on Flash.
  6. Buttons 0 to 4 correspond to buttons PB0 to PB4, respectively. Depending on the pushed button, the following will happen:
    • BUTTON_0 -> LEDs PA0 to PA4 will light up
    • BUTTON_1 -> LEDs PA0 to PA4 will turn off
    • BUTTON_2 -> LEDs PA0 to PA4 will toggle
    • BUTTON_3 -> LED PA3 will light up
    • BUTTON_4 -> LED PA4 will turn off

ALSO FROM THIS AUTHOR

BLE2 click

10

Explore the possibilities of BLE2 click, the click board for adding a peripheral Bluetooth Low Energy device to your design. You can use this application as a starting point for developing your own apps with the provided source code.

[Learn More]

TempHum 7 Click

0

Temp&Hum 7 Click is a Click board™ which is perfectly suited for measuring the relative humidity (RH) and temperature.

[Learn More]

LTE IoT 7 Click

0

LTE IoT 7 Click is an add-on board representing a secure-cloud multi-band solution designed for IoT applications. This board features the SARA-R422M8S, a multi-band LTE-M/NB-IoT/EGPRS multi-mode solution with integrated high-performance standard precision M8 GNSS receiver for global position acquisition from u-blox. Equipped with familiar AT commands set over the UART interface, USB interface, and Network and Status indicators, it also provides over-the-air firmware updates, end-to-end trusted domain security, and u-Blox’s leading GNSS technology.

[Learn More]