TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (136736 times)
  2. FAT32 Library (69951 times)
  3. Network Ethernet Library (55942 times)
  4. USB Device Library (46266 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41171 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26361 times)
  10. microSD click (25376 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-04-03

Package Version: 2.0.0.19

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 104 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.19
  • Date : June 2023.

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

EZO Carrier pH click

0

EZO Carrier Click - pH is a compact add-on board that allows you to measure the potential of hydrogen (the power of hydrogen) in your application. This board features the EZO™ pH, a pH measurement interface circuit board from Atlas Scientific.

[Learn More]

Light mix-sens click

0

Light mix-sens Click is carrying TMD37253, an advanced proximity measurement, color sense (RGBC+IR), and digital ambient light sensing (ALS) device. The TMD37253 slim module package has been designed to accommodate a “single hole” aperture approach that incorporates an IR LED and factory calibrated LED driver. The proximity detection feature provides object detection (e.g., mobile device screen to the user’s ear) by photodiode detection of reflected IR energy (sourced by the integrated LED). The ALS detection feature provides photopic light intensity data. The color photodiodes have UV and IR blocking filters and a dedicated data converters producing 16-bit data.

[Learn More]

GNSS 11 click

0

GNSS 11 Click is a compact add-on board that provides fast positioning capability. This board features the EVA-M8M, a concurrent GNSS module from u-blox. The module provides a reception of GPS, GLONASS, Galileo, QZSS, SBAS, and BeiDou. It delivers high sensitivity and minimal acquisition times, with concurrent reception of up to three GNSS, achieved by a dual-frequency RF front-end architecture. This Click board™ makes the perfect solution for the development of both acquisition and tracking devices and represents an ideal product for automotive, consumer, and industrial tracking applications.

[Learn More]