feat: added PicoW_Sensor code template

Credits to @ext-erich.styger that provided the template
This commit is contained in:
SylvanArnold
2025-04-22 11:30:45 +02:00
committed by Sylvan Arnold
parent b2e9eab44e
commit 6cd510e749
985 changed files with 606823 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
/*!
* Copyright (c) 2023, Erich Styger
*
* SPDX-License-Identifier: BSD-3-Clause
* \file
* \brief Configuration items for the ST7735 display driver.
*/
#ifndef MCUST7735_CONFIG_H_
#define MCUST7735_CONFIG_H_
/* different display types supported */
#define MCUST7735_TYPE_128X128 (1)
#define MCUST7735_TYPE_160X80 (2)
#define MCUST7735_TYPE_160X128 (3)
#ifndef McuST7735_CONFIG_DISPLAY_TYPE
#define McuST7735_CONFIG_DISPLAY_TYPE MCUST7735_TYPE_128X128
#endif
#ifndef McuST7735_CONFIG_IS_ENABLED
#define McuST7735_CONFIG_IS_ENABLED (0)
/*!< 1: driver is enabled. 0: driver is not enabled */
#endif
/* CS pin */
#ifndef McuST7735_CONFIG_CS_PIN_GPIO
#define McuST7735_CONFIG_CS_PIN_GPIO GPIOB
/*!< GPIO for CS Pin */
#endif
#ifndef McuST7735_CONFIG_CS_PIN_PORT
#define McuST7735_CONFIG_CS_PIN_PORT PORTB
/*!< PORT for CS Pin */
#endif
#ifndef McuST7735_CONFIG_CS_PIN_NUMBER
#define McuST7735_CONFIG_CS_PIN_NUMBER 0
/*!< Pin number of the CS Pin */
#endif
/* DC pin */
#ifndef McuST7735_CONFIG_DC_PIN_GPIO
#define McuST7735_CONFIG_DC_PIN_GPIO GPIOB
/*!< GPIO for DC Pin */
#endif
#ifndef McuST7735_CONFIG_DC_PIN_PORT
#define McuST7735_CONFIG_DC_PIN_PORT PORTB
/*!< PORT for DC Pin */
#endif
#ifndef McuST7735_CONFIG_DC_PIN_NUMBER
#define McuST7735_CONFIG_DC_PIN_NUMBER 1
/*!< Pin number of the DC Pin */
#endif
/* RESET pin */
#ifndef McuST7735_CONFIG_RESET_PIN_GPIO
#define McuST7735_CONFIG_RESET_PIN_GPIO GPIOB
/*!< GPIO for CS Pin */
#endif
#ifndef McuST7735_CONFIG_RESET_PIN_PORT
#define McuST7735_CONFIG_RESET_PIN_PORT PORTB
/*!< PORT for CS Pin */
#endif
#ifndef McuST7735_CONFIG_RESET_PIN_NUMBER
#define McuST7735_CONFIG_RESET_PIN_NUMBER 2
/*!< Pin number of the CSN Pin */
#endif
#endif /* MCUST7735_CONFIG_H_ */