slider2 2.0.0.0
main.c File Reference

Slider2 Click example. More...

#include "board.h"
#include "log.h"
#include "slider2.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Slider2 Click example.

Description

This click utilizes potentiometer with long travel distance of the wiper witch allows more accurate movements and combined with the high-quality manufacturing process it allows to dial-in the desired voltage with ease. Its wiper terminal outputs voltage in the range from 0 to 4.096V. The used potentiometer is linear, so the wiper potential changes linearly with its position.

The demo application is composed of two sections :

Application Init

Initialization driver init and ADC init.

Application Task

Read Slider data value and this data logs to USBUART every 500ms.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )