TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137049 times)
  2. FAT32 Library (70171 times)
  3. Network Ethernet Library (56047 times)
  4. USB Device Library (46369 times)
  5. Network WiFi Library (41991 times)
  6. FT800 Library (41321 times)
  7. GSM click (29082 times)
  8. mikroSDK (26521 times)
  9. PID Library (26461 times)
  10. microSD click (25449 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: 108 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

LR 9 click

0

LR 9 Click is a compact add-on board designed for ultra-long-range spread spectrum communication tasks within the LPWAN domain. This board is based on the RA-08, a LoRaWAN module from Ai-Thinker Technology, featuring the ASR6601 system-on-chip (SoC) that combines RF transceivers, modems, and a 32-bit RISC microcontroller (MCU). This module excels with its support for LoRa and (G)FSK modulation, a frequency range of 410MHz to 525MHz, and embedded storage of 128KB FLASH and 16KB SRAM, ensuring robust and versatile communication capabilities. Moreover, it's equipped with UART and I2C interfaces for easy programming and integration and an SMA antenna connector for enhanced connectivity.

[Learn More]

Air quality 9 click

0

Air quality 9 Click is a compact add-on board containing a best-in-class air-quality sensing solution. This board features the ENS160, a digital multi-gas sensor solution based on metal oxide (MOX) technology with four MOx sensor elements from ScioSense. Each sensor element has independent hotplate control to detect a wide range of gases. The ENS160 series features TrueVOCâ„¢ air quality detection and supports intelligent algorithms, which calculate CO2 equivalents, TVOC, air quality index (AQI), and perform humidity and temperature compensation. This Click boardâ„¢ is interface-configurable and characterized by outstanding long-term stability and lifetime.

[Learn More]

Ambient click

0

Ambient click carries the Melexis MLX75305 IC. It’s a CMOS integrated optical sensor that consists of a photodiode, a transimpendance amplifier, and an output transistor.

[Learn More]