TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139566 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57255 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42566 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26933 times)
  10. microSD click (26309 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: 182 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

SigFox click

5

SigFox click is a device which carries the SN10-11, a fully integrated Sigfox certified module by InnoComm, allowing connection to a low power wide area network (LPWAN) that enables communication utilizing the Industrial, Scientific, and Medical (ISM) radio frequency band.

[Learn More]

Air quality 2 click

5

Air quality 2 click carries the iAQ-Core Indoor Air Quality sensor that measures VOC levels and provides CO2 equivalent and TVOC equivalent predictions. The click is designed to run on either 3.3V or 5V power supply. It communicates with the target MCU over I2C.

[Learn More]

9DOF Click

0

9DOF Click carries ST’s LSM9DS1 inertial measurement module that combines a 3D accelerometer, a 3D gyroscope and a 3D magnetometer into a single device outputting so called nine degrees of freedom data...

[Learn More]