TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136866 times)
  2. FAT32 Library (70000 times)
  3. Network Ethernet Library (55998 times)
  4. USB Device Library (46296 times)
  5. Network WiFi Library (41901 times)
  6. FT800 Library (41204 times)
  7. GSM click (29012 times)
  8. PID Library (26423 times)
  9. mikroSDK (26394 times)
  10. microSD click (25385 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

LBAND RTK click

0

LBAND RTK Click is a compact add-on board that provides global and easy access to satellite L-Band GNSS corrections. This board features the NEO-D9S-00B, an professional-grade satellite data receiver for L-band correction broadcast from u-blox. Operating in a frequency range from 1525MHz to 1559MHz, the NEO-D9S-00B decodes the satellite transmission and outputs a correction stream, enabling a high-precision GNSS receiver to reach accuracies down to centimeter level. It can also select the GNSS correction data delivery channel alongside advanced security features such as signature and anti-jamming.

[Learn More]

POT 4 click

0

POT 4 Click is a compact add-on board with accurate selectable reference voltage output. This board features the PRS11R-425F-S103B1, a high-quality 11mm rotary 10k potentiometer from Bourns. The PRS11R-425F-S103B1 features a small form factor, offers an push-on momentary switch, a flatted shaft style, and a wide operating temperature range. It comes with a high-resolution 12-bit ADC, detecting even the slightest move while digitizing its position, alongside a rail-to-rail buffering operational amplifier, which provides constant input and output impedance. Besides, the user can process the output signal in analog or digital form.

[Learn More]

Semper Flash click

5

The Semper Flash Click is a Click board which features the S25HS512T, a perfect solution for the mass storage option in various embedded applications.

[Learn More]