24 lines
361 B
C
24 lines
361 B
C
/*
|
|
* MCP40D18.h
|
|
*
|
|
* Created on: Sep 16, 2021
|
|
* Author: angoosh
|
|
*/
|
|
|
|
#ifndef INC_MCP40D18_H_
|
|
#define INC_MCP40D18_H_
|
|
|
|
#include "stm32l0xx_hal.h"
|
|
|
|
#define IS_ALT_ADDRESS
|
|
#ifdef IS_ALT_ADDRESS
|
|
#define MCP_I2C_ADDRESS 0x3E //0111110
|
|
#else
|
|
#define MCP_I2C_ADDRESS 0x2E //0101110
|
|
#endif
|
|
|
|
|
|
void SetPotPosition(uint8_t pos);
|
|
|
|
#endif /* INC_MCP40D18_H_ */
|