TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137094 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56120 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42071 times)
  6. FT800 Library (41384 times)
  7. GSM click (29112 times)
  8. mikroSDK (26561 times)
  9. PID Library (26489 times)
  10. microSD click (25486 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

Cap Extend 3 click

Rating:

5

Author: MIKROE

Last Updated: 2018-01-25

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Proximity

Downloaded: 4539 times

Not followed.

License: MIT license  

Cap Extend 3 click features four capacitive sensor pads integrated on the PCB, that can sense touch through a variety of different materials.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Cap Extend 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Cap Extend 3 click" changes.

Do you want to report abuse regarding "Cap Extend 3 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Cap Extend 3 Click

Cap Extend 3 Click

Native view of the Cap Extend 3 Click board.

View full image
Cap Extend 3 Click

Cap Extend 3 Click

Front and back view of the Cap Extend 3 Click board.

View full image

Library Description

Initializes GPIO driver and click driver functions, which detect a touch on determined pins. For more details, check the documentation.

Key functions

uint8_t capextend3_Touch_0()- The function reads a state of the AN pin.
uint8_t capextend3_Touch_1()- The function reads a state of the RST pin.
uint8_t capextend3_Touch_2()- The function reads a state of the CS pin.
uint8_t capextend3_Touch_3()- The function reads a state of the INT pin.
uint8_t capextend3_Touch_4()- The function reads a state of the PWM pin.

Examples Description

The demo application is composed of three sections:

  • System Initialization - Initializes AN, RST, CS, PWM, INT pin as INPUT.
  • Application Initialization - Initializes GPIO Driver.
  • Application Task - (code snippet) - The USB UART shows the number of the button which is being touched.
void applicationTask()
{
   touch_1 = capextend3_Touch_1();
   touch_0 = capextend3_Touch_0();
   touch_3 = capextend3_Touch_3();
   touch_4 = capextend3_Touch_4();

   if( touch_0 == 0 )
      mikrobus_logWrite("Touch 0 ",_LOG_LINE);

   if( touch_1 == 0 )
      mikrobus_logWrite("Touch 1 ",_LOG_LINE);

   if( touch_3 == 0 )
      mikrobus_logWrite("Touch 3 ",_LOG_LINE);

   if( touch_4 == 0 )
      mikrobus_logWrite("Touch 4 ",_LOG_LINE);

   Delay_ms( 100 );
}

Other MikroElektronika libraries used in the example:

  • UART

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or  RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

MINI-M4 STM32 Board Examples

0

Examples for MINI-M4 STM32 Board. Provided examples demonstrate working with on-board LEDs and internal USB HID module.

[Learn More]

ADC 4 click

5

ADC 4 click is an advanced analog to digital multi-channel converter, which can sample inputs from 16 single-ended channels or 8 differential input channel pairs.

[Learn More]

Thermo 11 click

0

Thermo 11 Click is a Click board™ equipped with the sensor IC, which can digitize temperature measurements between -55°C and +150°C so that the temperature measurement data can be processed by the host MCU.

[Learn More]