code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _U_INTERRUPT_H_
#define _U_INTERRUPT_H_
#include "aos/list.h"
#include <drivers/atomic.h>
#define U_IRQ_PASS_THROUGH 0
#define U_IRQ_LOCK_SPINLOCK 0
//TODO: irq description rbtree control marco
#define U_IRQ_DESC_LIST_RBTREE 0
#if U_IRQ_DESC_... | YifuLiu/AliOS-Things | components/drivers/core/base/include/drivers/u_interrupt.h | C | apache-2.0 | 2,377 |
/**
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _U_IO_H_
#define _U_IO_H_
/**
* BUS types
* */
typedef enum bus_type {
BUS_TYPE_PLATFORM,
BUS_TYPE_USB,
BUS_TYPE_MMC,
BUS_TYPE_SDIO,
BUS_TYPE_I2C,
BUS_TYPE_I2S,
BUS_TYPE_SPI,
BUS_TYPE_PCI,
BUS_TYPE_MIPI,
BUS_TYPE_PRE_MAX,
BUS_TYPE_M... | YifuLiu/AliOS-Things | components/drivers/core/base/include/drivers/u_io.h | C | apache-2.0 | 1,371 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _U_LD_H_
#define _U_LD_H_
/**
* hardware registers' information
* @addr - register's base address of hw module
* @length - register region's length counted from base address of the hw module
*/
typedef struct hw_reg_info {
unsigned long a... | YifuLiu/AliOS-Things | components/drivers/core/base/include/drivers/u_ld.h | C | apache-2.0 | 6,313 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _U_MODE_H_
#define _U_MODE_H_
#endif //_U_MODE_H_ | YifuLiu/AliOS-Things | components/drivers/core/base/include/drivers/u_mode.h | C | apache-2.0 | 124 |
/**
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#ifndef _U_MODULE_H_
#define _U_MODULE_H_
#define u_module_init(x) \
int u_aos_module_init(void) \
{\
return x(); \
}
#define u_module_get_bus(x) \
u_bus_t *u_aos_module_get_bus(void) { \
return x();\
}
typedef int (*u_aos_driver_init)(void);
typedef... | YifuLiu/AliOS-Things | components/drivers/core/base/include/drivers/u_module.h | C | apache-2.0 | 384 |
/**
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <errno.h>
#include <string.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "aos/list.h"
#include <drivers/u_ld.h>
#include <drivers/char/u_device.h>
#include <drivers/char/u_driver.h>
#include <drivers/char/u_bus.h>
#incl... | YifuLiu/AliOS-Things | components/drivers/core/base/platform/u_platform_bus.c | C | apache-2.0 | 8,638 |
/*
* Copyright (C) 2020-2021 Alibaba Group Holding Limited
*/
#include <aos/device_core.h>
#define REF_COUNT_PENDING UINT32_MAX
#define REF_COUNT_MAX (UINT32_MAX - 1)
static struct k_rbtree_root_t device_map = RBT_ROOT;
static aos_mutex_t device_map_mutex;
static aos_status_t device_core_init(void... | YifuLiu/AliOS-Things | components/drivers/core/base/src/device.c | C | apache-2.0 | 6,257 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef FB_H
#define FB_H
/**
* @addtogroup aos_fbdev fbdev
* This is the brief description of the component.
*
* This is the detailed description, and it's optional.
* @{
*/
#include <fb_define.h>
#include <ulog/ulog.h>
#include <aos/kernel.h>... | YifuLiu/AliOS-Things | components/drivers/core/fbdev/include/fb.h | C | apache-2.0 | 6,481 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef COMP_FB_H
#define COMP_FB_H
#include <stdint.h>
#include <stddef.h>
#define FB_BACKLIGHT_LEVELS 128
#define FB_BACKLIGHT_MAX 0xFF
#ifdef CONFIG_64BIT
#define BITS_PER_LONG 64
#else
#define BITS_PER_LONG 32
#endif /* CONFIG_64BIT */
#defi... | YifuLiu/AliOS-Things | components/drivers/core/fbdev/include/fb_define.h | C | apache-2.0 | 2,786 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#ifndef FB_ROTATE_H
#define FB_ROTATE_H
/**
* @addtogroup rotate
* This is the brief description of the component.
*
* This is the detailed description, and it's optional.
* @{
*/
#include <stdio.h>
#include <stdint.h>
/* Here is Macro and stru... | YifuLiu/AliOS-Things | components/drivers/core/fbdev/include/fb_rotate.h | C | apache-2.0 | 470 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <aos/kernel.h>
#include <errno.h>
#include <aos/vfs.h>
#include <string.h>
#include <fb.h>
#include <devicevfs/devicevfs.h>
#include <k_api.h>
// #include <k_shmm.h>
#define FBPIXMAPSIZE (1024 * 8)
fb_info_t *registered_fb... | YifuLiu/AliOS-Things | components/drivers/core/fbdev/src/fb.c | C | apache-2.0 | 13,330 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
// #include <fb.h>
#include <fb_rotate.h>
/*rotate 90 degrees clockwise*/
void rotate_cw(const uint8_t *in, uint8_t *out, uint32_t w, uint32_t h)
{
int32_t i, ix, iy, res; /* Default is RGBA8888 */
if (in && out) {
for (iy = 0; iy < h; ... | YifuLiu/AliOS-Things | components/drivers/core/fbdev/src/fb_rotate.c | C | apache-2.0 | 485 |
#ifndef _FT6336_H
#define _FT6336_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#define I2C_ADDR_FT6336 0x38
// Touch Parameter
#define FT6336_PRES_DOWN 0x2
#define FT6336_COORD_UD 0x1
// Registers
#define FT6336_ADDR_DEVICE_MODE 0x00
typedef enum
{
working_mode = 0b000,
fa... | YifuLiu/AliOS-Things | components/drivers/external_device/ft6336/include/ft6336.h | C | apache-2.0 | 5,165 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "ft6336.h"
#include "aos/hal/i2c.h"
#include "aos/hal/gpio.h"
#include "hal_iomux_haas1000.h"
//#include "uinput.h"
#include "aos/kernel.h"
#define TOUCH_NONE_MAX 3
static i2c_dev_t i2c_dev;
static gpio_dev_t gpio_ft6336_reset;
static gpio_dev_... | YifuLiu/AliOS-Things | components/drivers/external_device/ft6336/src/ft6336.c | C | apache-2.0 | 12,995 |
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
// example based on haaseduk1
#include "hal_iomux_haas1000.h"
#include "ili9341.h"
ili9341_dev_t my_ili9341 = {0};
static void example_ili9341_hw_init(int argc, char **argv)
{
my_ili9341.spi_port = 0;
my_ili9341.spi_freq = 26000000;
my_ili9341.gpio_bgl_id = HA... | YifuLiu/AliOS-Things | components/drivers/external_device/ili9341/example/ili9341_example.c | C | apache-2.0 | 1,172 |
#ifndef __ILI9341_H__
#define __ILI9341_H__
#include <stdbool.h>
#include <stdio.h>
#define ILI9341_HEIGHT 240
#define ILI9341_WIDTH 320
typedef struct _ili9341_dev_t {
int spi_port;
int spi_freq;
int gpio_dc_id;
int gpio_reset_id;
int gpio_bgl_id;
int spi_fd;
int gpio_fd;
} ili9341_dev_... | YifuLiu/AliOS-Things | components/drivers/external_device/ili9341/include/ili9341.h | C | apache-2.0 | 3,503 |
#ifndef __ILI9341_FB_H__
#define __ILI9341_FB_H__
#include <stdio.h>
#include <stdbool.h>
#include <ili9341.h>
int ili9341_fb_init();
#endif
| YifuLiu/AliOS-Things | components/drivers/external_device/ili9341/include/ili9341_fb.h | C | apache-2.0 | 145 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "ili9341.h"
#include "aos/vfs.h"
#include "vfsdev/gpio_dev.h"
#include "vfsdev/spi_dev.h"
#include <stdio.h>
#include <sys/ioctl.h>
#define SPI_MAX_BLOCK 60000
typedef enum {
CMD = 0,
DAT = 1,
} ili9341_dc_t;
static int gpio_output(in... | YifuLiu/AliOS-Things | components/drivers/external_device/ili9341/src/ili9341.c | C | apache-2.0 | 12,659 |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include "ili9341_fb.h"
#include "hal_iomux_haas1000.h"
#include <stdio.h>
#include <sys/ioctl.h>
#include <fb.h>
#include <devicevfs/devicevfs.h>
#define ILI9341_DEVICE_NAME "ili9341_fb"
#define CLCD_WIDTH (ILI9341_WIDTH)
#define CLCD_HEIGHT (ILI9341... | YifuLiu/AliOS-Things | components/drivers/external_device/ili9341/src/ili9341_fb.c | C | apache-2.0 | 4,719 |
if (ESP_PLATFORM)
idf_component_register(
SRCS "axp192.c"
INCLUDE_DIRS "."
)
add_definitions("-DAXP192_INCLUDE_SDKCONFIG_H")
endif()
| YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/axp192/CMakeLists.txt | CMake | apache-2.0 | 161 |
/*
MIT License
Copyright (c) 2019-2021 Mika Tuupola
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/axp192/axp192.c | C | apache-2.0 | 14,282 |
/*
MIT License
Copyright (c) 2019-2021 Mika Tuupola
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/axp192/axp192.h | C | apache-2.0 | 8,174 |
/*
MIT License
Copyright (c) 2019-2021 Mika Tuupola
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/axp192/axp192_config.h | C | apache-2.0 | 3,615 |
COMPONENT_SRCDIRS:=./
COMPONENT_ADD_INCLUDEDIRS:=./
CFLAGS += -DAXP192_INCLUDE_SDKCONFIG_H
| YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/axp192/component.mk | Makefile | apache-2.0 | 91 |
set(SOURCES "i2c_manager/i2c_manager.c")
set(INCLUDES "i2c_manager")
if (CONFIG_I2C_MANAGER_I2CDEV)
list(APPEND SOURCES "i2cdev/i2cdev.c")
list(APPEND INCLUDES "i2cdev")
endif()
idf_component_register(
SRCS ${SOURCES}
INCLUDE_DIRS ${INCLUDES}
)
| YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/i2c_manager/CMakeLists.txt | CMake | apache-2.0 | 263 |
COMPONENT_SRCDIRS := i2c_manager
COMPONENT_ADD_INCLUDEDIRS := i2c_manager
ifdef CONFIG_I2C_MANAGER_I2CDEV
COMPONENT_ADD_INCLUDEDIRS += i2cdev
COMPONENT_SRCDIRS += i2cdev
endif
| YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/i2c_manager/component.mk | Makefile | apache-2.0 | 180 |
/*
SPDX-License-Identifier: MIT
MIT License
Copyright (c) 2021 Rop Gonggrijp. Based on esp_i2c_helper by Mika Tuupola.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inclu... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/i2c_manager/i2c_manager/i2c_manager.c | C | apache-2.0 | 10,692 |
#ifndef _I2C_MANAGER_H
#define _I2C_MANAGER_H
#ifdef __cplusplus
extern "C" {
#endif
/*
If you copy the i2c_manager files to your own component instead of
depending on i2c_manager, you MUST uncomment the define below
and put in some short string that identifies your component (such
as 'xyz'). This w... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/i2c_manager/i2c_manager/i2c_manager.h | C | apache-2.0 | 1,918 |
/*
SPDX-License-Identifier: MIT
MIT License
Copyright (c) 2021 Rop Gonggrijp.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/i2c_manager/i2cdev/i2cdev.c | C | apache-2.0 | 3,403 |
/*
SPDX-License-Identifier: MIT
MIT License
Copyright (c) 2021 Rop Gonggrijp.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/i2c_manager/i2cdev/i2cdev.h | C | apache-2.0 | 2,243 |
if(ESP_PLATFORM)
file(GLOB SOURCES *.c)
set(LVGL_INCLUDE_DIRS . lvgl_tft)
list(APPEND SOURCES "lvgl_tft/disp_driver.c")
list(APPEND SOURCES "lvgl_tft/esp_lcd_backlight.c")
# Include only the source file of the selected
# display controller.
if(CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341)
list(APPEND SOURCES "lvgl_tf... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/CMakeLists.txt | CMake | apache-2.0 | 3,579 |
# LVGL ESP32 drivers
# Define sources and include dirs
COMPONENT_SRCDIRS := . lvgl_tft lvgl_touch lvgl_i2c
COMPONENT_ADD_INCLUDEDIRS := .
# LVGL is supposed to be used as a ESP-IDF component
# -> lvlg is already in the include path
# -> we use simple include
CFLAGS += -DLV_LVGL_H_INCLUDE_SIMPLE
# TFT display drivers... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/component.mk | Makefile | apache-2.0 | 2,986 |
/**
* @file lvgl_helpers.c
*
*/
/*********************
* INCLUDES
*********************/
#include "sdkconfig.h"
#include "lvgl_helpers.h"
#include "esp_log.h"
#include "lvgl_tft/disp_spi.h"
#include "lvgl_touch/tp_spi.h"
#include "lvgl_spi_conf.h"
#include "lvgl_i2c/i2c_manager.h"
#ifdef LV_LVGL_H_INCLUD... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_helpers.c | C | apache-2.0 | 5,157 |
/**
* @file lvgl_helpers.h
*/
#ifndef LVGL_HELPERS_H
#define LVGL_HELPERS_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include "lvgl_spi_conf.h"
#include "lvgl_tft/disp_driver.h"
#include "lvgl_tft/esp_lcd_backlight.h"
#include "lvg... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_helpers.h | C | apache-2.0 | 3,763 |
/*
SPDX-License-Identifier: MIT
MIT License
Copyright (c) 2021 Rop Gonggrijp. Based on esp_i2c_helper by Mika Tuupola.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inclu... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_i2c/i2c_manager.c | C | apache-2.0 | 10,692 |
#ifndef _I2C_MANAGER_H
#define _I2C_MANAGER_H
#ifdef __cplusplus
extern "C" {
#endif
/*
If you copy the i2c_manager files to your own component instead of
depending on i2c_manager, you MUST uncomment the define below
and put in some short string that identifies your component (such
as 'xyz'). This w... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_i2c/i2c_manager.h | C | apache-2.0 | 1,916 |
/**
* @file lvgl_spi_conf.h
*
*/
#ifndef LVGL_SPI_CONF_H
#define LVGL_SPI_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
/*********************
* DEFINES
*********************/
// DISPLAY PINS
#define DISP_SPI_MOSI CONFIG_LV_DISP_SPI_MOSI
#if ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_spi_conf.h | C | apache-2.0 | 6,006 |
/*
@file EVE.h
@brief Contains FT80x/FT81x/BT81x API definitions
@version 4.1 LvGL edition
@date 2020-04-15
@author Rudolph Riedel, David Jade
@section LICENSE
MIT License
Copyright (c) 2016-2020 Rudolph Riedel and David Jade
Permission is hereby granted, free of charge, to any person obtaining a copy of t... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/EVE.h | C | apache-2.0 | 31,870 |
/*
@file EVE_commands.c
@brief contains FT8xx / BT8xx functions
@version 4.0
@date 2020-04-13
@author Rudolph Riedel, David Jade
@section info
This file needs to be renamed to EVE_command.cpp for use with Arduino.
At least für ATSAM I had the best result with -O2.
The c-standard is C99.
@section LICENSE
M... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/EVE_commands.c | C | apache-2.0 | 63,596 |
/*
@file EVE_commands.h
@brief contains FT8xx / BT8xx function prototypes
@version 4.1 LvGL edition
@date 2020-04-13
@author Rudolph Riedel, David Jade
@section LICENSE
MIT License
Copyright (c) 2016-2020 Rudolph Riedel and David Jade
Permission is hereby granted, free of charge, to any person obtaining a ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/EVE_commands.h | C | apache-2.0 | 8,716 |
/*
@file EVE_config.h
@brief configuration information for some TFTs
@version 4.0
@date 2020-02-16
@author Rudolph Riedel, David Jade
@section LICENSE
MIT License
Copyright (c) 2016-2020 Rudolph Riedel amd David Jade
Permission is hereby granted, free of charge, to any person obtaining a copy of this softw... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/EVE_config.h | C | apache-2.0 | 30,006 |
#include <stdio.h>
#include "driver/gpio.h"
#include "FT81x.h"
#include "EVE.h"
#include "EVE_commands.h"
/* some pre-definded colors */
#define RED 0xff0000UL
#define ORANGE 0xffa500UL
#define GREEN 0x00ff00UL
#define BLUE 0x0000ffUL
#define BLUE_1 0x5dade2L
#define YELLOW 0xffff00UL
#define PINK 0xff00ffUL
#def... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/FT81x.c | C | apache-2.0 | 10,960 |
#ifndef FT81X_H_
#define FT81X_H_
#include <stdint.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
void FT81x_init(void);
void FT81x_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);
#endif /* FT81X_H_ */
| YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/FT81x.h | C | apache-2.0 | 306 |
/**
* @file GC9A01.c
*
*/
/*********************
* INCLUDES
*********************/
#include "GC9A01.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define TAG "GC... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/GC9A01.c | C | apache-2.0 | 6,232 |
/**
* @file lv_templ.h
*
*/
#ifndef GC9A01_H
#define GC9A01_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
/**********... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/GC9A01.h | C | apache-2.0 | 1,021 |
/**
* @file disp_driver.c
*/
#include "disp_driver.h"
#include "disp_spi.h"
#include "esp_lcd_backlight.h"
#include "sdkconfig.h"
void *disp_driver_init(void)
{
#if defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341
ili9341_init();
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9481
ili9481_init();
#elif d... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/disp_driver.c | C | apache-2.0 | 5,308 |
/**
* @file disp_driver.h
*/
#ifndef DISP_DRIVER_H
#define DISP_DRIVER_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#if defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/disp_driver.h | C | apache-2.0 | 2,412 |
/**
* @file disp_spi.c
*
*/
/*********************
* INCLUDES
*********************/
#include "esp_system.h"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "esp_log.h"
#define TAG "disp_spi"
#include <string.h>
#include <freertos/FreeRTOS.h>
#include <freertos/semphr.h>
#include <freerto... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/disp_spi.c | C | apache-2.0 | 10,530 |
/**
* @file disp_spi.h
*
*/
#ifndef DISP_SPI_H
#define DISP_SPI_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#include <driver/spi_master.h>
/*********************
* DEFINES
*********************/
/*******... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/disp_spi.h | C | apache-2.0 | 2,533 |
/**
* @file esp_lcd_backlight.c
*
*/
/*********************
* INCLUDES
*********************/
#include "esp_lcd_backlight.h"
#include "driver/ledc.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "soc/ledc_periph.h" // to invert LEDC output on IDF version < v4.3
typedef struct {
bool pwm_contro... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/esp_lcd_backlight.c | C | apache-2.0 | 3,522 |
/**
* @file esp_lcd_backlight.h
*/
#ifndef ESP_LCD_BACKLIGHT_H
#define ESP_LCD_BACKLIGHT_H
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef __cplusplus
extern "C" { /* extern "C" */
#endif
/**********************
* GLOBAL PROTOTYPES
**********************/
/**
* @bri... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/esp_lcd_backlight.h | C | apache-2.0 | 1,623 |
/**
* @file HX8357.c
*
* Roughly based on the Adafruit_HX8357_Library
*
* This library should work with:
* Adafruit 3.5" TFT 320x480 + Touchscreen Breakout
* http://www.adafruit.com/products/2050
*
* Adafruit TFT FeatherWing - 3.5" 480x320 Touchscreen for Feathers
* https://www.adafruit.com/product/3651... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/hx8357.c | C | apache-2.0 | 8,091 |
/**
* @file HX8357.h
*
* Roughly based on the Adafruit_HX8357_Library
*
* This library should work with:
* Adafruit 3.5" TFT 320x480 + Touchscreen Breakout
* http://www.adafruit.com/products/2050
*
* Adafruit TFT FeatherWing - 3.5" 480x320 Touchscreen for Feathers
* https://www.adafruit.com/product/3651... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/hx8357.h | C | apache-2.0 | 4,904 |
/**
@file il3820.c
@brief Waveshare e-paper 2.9in b/w display
@version 1.0
@date 2020-05-29
@author Juergen Kienhoefer
@section LICENSE
MIT License
Copyright (c) 2020 Juergen Kienhoefer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/il3820.c | C | apache-2.0 | 12,863 |
/**
* @file il3820.h
*
*/
#ifndef IL3820_H
#define IL3820_H
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "sdkconfig.h"
/* Values for Waveshare 2.9inch e-Paper Module, this values shouldn't be
* swapped to change display ori... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/il3820.h | C | apache-2.0 | 3,572 |
/**
* @file ILI9163C.c
*
*/
/*********************
* INCLUDES
*********************/
#include "ili9163c.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "assert.h"
/*********************
* DEFINES
***************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9163c.c | C | apache-2.0 | 6,943 |
/**
* @file lv_templ.h
*
*/
#ifndef ILI9163C_H
#define ILI9163C_H
#ifdef __cplusplus
extern "C"
{
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
/******... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9163c.h | C | apache-2.0 | 985 |
/**
* @file ili9341.c
*
*/
/*********************
* INCLUDES
*********************/
#include "ili9341.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define TAG "... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9341.c | C | apache-2.0 | 5,519 |
/**
* @file lv_templ.h
*
*/
#ifndef ILI9341_H
#define ILI9341_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "sdkconfig.h"
/*************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9341.h | C | apache-2.0 | 1,015 |
/**
* @file ili9481.c
*/
/*********************
* INCLUDES
*********************/
#include "ili9481.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "esp_heap_caps.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9481.c | C | apache-2.0 | 5,903 |
/**
* @file ili9481.h
*/
#ifndef ILI9481_H
#define ILI9481_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include <stdint.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpe... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9481.h | C | apache-2.0 | 4,436 |
/**
* @file mpi3501.c
*
*/
/*********************
* INCLUDES
*********************/
#include "ili9486.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define TAG "... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9486.c | C | apache-2.0 | 4,604 |
/**
* @file ili9486.h
*
*/
#ifndef ILI9486_H
#define ILI9486_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
/*********... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9486.h | C | apache-2.0 | 902 |
/**
* @file ili9488.c
*/
/*********************
* INCLUDES
*********************/
#include "ili9488.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "esp_heap_caps.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9488.c | C | apache-2.0 | 6,147 |
/**
* @file ili9488.h
*/
#ifndef ILI9844_H
#define ILI9844_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include <stdint.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpe... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ili9488.h | C | apache-2.0 | 6,534 |
/**
@file jd79653a.c
@brief GoodDisplay GDEW0154M09 e-paper display w/ FitiPower JD79653A
@version 1.0
@date 2020-08-28
@author Jackson Ming Hu <huming2207@gmail.com>
@section LICENSE
MIT License
Copyright (c) 2020 Jackson Ming Hu
Permission is hereby granted, free of charge, to any person obtaining a copy o... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/jd79653a.c | C | apache-2.0 | 15,843 |
/**
* @file il3820.h
*
*/
#ifndef JD79653A_H
#define JD79653A_H
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
void jd79653a_init();
void jd79653a_deep_sleep();
void jd79653a_lv_set_fb_cb(struct _disp_drv_t * disp_drv, uint8_t* buf, l... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/jd79653a.h | C | apache-2.0 | 792 |
/**
* @file ra8875.c
*
*/
/*********************
* INCLUDES
*********************/
#include "ra8875.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define DEBUG fa... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ra8875.c | C | apache-2.0 | 12,102 |
/**
* @file ra8875.h
*
*/
#ifndef RA8875_H
#define RA8875_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/*********************
* DEFINES
**... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ra8875.h | C | apache-2.0 | 4,921 |
/**
* @file sh1107.c
*
*/
/*********************
* INCLUDES
*********************/
#include "sh1107.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define TAG "SH... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/sh1107.c | C | apache-2.0 | 6,287 |
/**
* @file lv_templ.h
*
*/
#ifndef SH1107_H
#define SH1107_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
/**********... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/sh1107.h | C | apache-2.0 | 1,172 |
/**
* @file ssd1306.c
*
* Code from https://github.com/yanbe/ssd1306-esp-idf-i2c.git is used as a starting point,
* in addition to code from https://github.com/espressif/esp-iot-solution.
*
* Definitions are borrowed from:
* http://robotcantalk.blogspot.com/2015/03/interfacing-arduino-with-ssd1306-driven.html
*... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ssd1306.c | C | apache-2.0 | 6,703 |
/**
* @file lv_templ.h
*
*/
#ifndef SSD1306_H
#define SSD1306_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
/********... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/ssd1306.h | C | apache-2.0 | 1,098 |
/**
* @file st7735s.c
*
*/
/*********************
* INCLUDES
*********************/
#include "st7735s.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#ifdef CONFIG_LV_M5STICKC_HANDLE_AXP192
#include "lvgl_i2c/i2c_manager.h"... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/st7735s.c | C | apache-2.0 | 8,080 |
/**
* @file lv_templ.h
*
*/
#ifndef ST7735S_H
#define ST7735S_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/*********************
* DEFINES
... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/st7735s.h | C | apache-2.0 | 3,615 |
/**
* @file st7789.c
*
* Mostly taken from lbthomsen/esp-idf-littlevgl github.
*/
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#include "esp_log.h"
#include "st7789.h"
#include "disp_spi.h"
#include "driver/gpio.h"
/*********************
* DEFINES
********************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/st7789.c | C | apache-2.0 | 6,237 |
/**
* @file st7789.h
*
* Mostly taken from lbthomsen/esp-idf-littlevgl github.
*/
#ifndef ST7789_H
#define ST7789_H
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
#include "sdkconfig.h"
#define ST7789_DC ... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/st7789.h | C | apache-2.0 | 4,551 |
/**
* @file st7796s.c
*
*/
/*********************
* INCLUDES
*********************/
#include "st7796s.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define TAG "S... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/st7796s.c | C | apache-2.0 | 5,377 |
/**
* @file st7796s.h
*/
#ifndef ST7796S_H
#define ST7796S_H
#ifdef __cplusplus
extern "C"
{
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include <stdint.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpe... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/st7796s.h | C | apache-2.0 | 3,593 |
/**
@file uc8151d.c
@brief GoodDisplay GDEW0154M10 DES e-paper display w/ UltraChip UC8151D
@version 1.0
@date 2020-08-28
@author Jackson Ming Hu <huming2207@gmail.com>
@section LICENSE
MIT License
Copyright (c) 2020 Jackson Ming Hu
Permission is hereby granted, free of ch... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/uc8151d.c | C | apache-2.0 | 8,377 |
/**
@file uc8151d.h
@brief GoodDisplay GDEW0154M09 e-paper display w/ FitiPower JD79653A
@version 1.0
@date 2020-08-28
@author Jackson Ming Hu <huming2207@gmail.com>
@section LICENSE
MIT License
Copyright (c) 2020 Jackson Ming Hu
Permission is hereby granted, free of charg... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_tft/uc8151d.h | C | apache-2.0 | 1,803 |
/**
* @file FT81x.c
*/
/*********************
* INCLUDES
*********************/
#include "esp_system.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include <stddef.h>
#include "FT81x.h"
#include "../lvgl_tft/EVE.h"
#include "../lvgl_tft/EVE_comma... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/FT81x.c | C | apache-2.0 | 1,601 |
/**
* @file STMPE610.h
*/
#ifndef FT81X_TOUCH__H
#define FT81X_TOUCH__H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/**********... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/FT81x.h | C | apache-2.0 | 715 |
/**
* @file ADCRAW.c
*/
#include "adcraw.h"
#include "esp_system.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include <stddef.h>
#if CONFIG_LV_TOUCH_CONTROLLER_ADCRAW
#define TAG "ADCRAW"
#define CALIBRATIONINSET 1 // range 0 <= CALIBRATIONINSET <= 40
... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/adcraw.c | C | apache-2.0 | 8,130 |
/**
* @file ADCRAW.h
*/
#ifndef ADCRAW_H
#define ADCRAW_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
#include "driver/gpio.h"
#include "driver/adc.h"
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#define TOUCHSCREEN_RESISTIVE_PIN_YU CONFIG... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/adcraw.h | C | apache-2.0 | 1,826 |
/*
* Copyright © 2020 Wolfgang Christl
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the “Software”), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publi... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/ft6x36.c | C | apache-2.0 | 4,984 |
#ifndef __FT6X06_H
/*
* Copyright © 2020 Wolfgang Christl
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the “Software”), to deal in the Software
* without restriction, including without limitation the rights to use, copy, mod... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/ft6x36.h | C | apache-2.0 | 6,731 |
/*
* Copyright © 2021 Sturnus Inc.
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the “Software”), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publis... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/gt911.c | C | apache-2.0 | 5,823 |
#ifndef __GT911_H
/*
* Copyright © 2021 Sturnus Inc.
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the “Software”), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/gt911.h | C | apache-2.0 | 3,238 |
/**
* @file RA8875_TOUCH.c
*/
/*********************
* INCLUDES
*********************/
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <stddef.h>
#include "ra8875_touch.h"
#include "../lvgl_tft/ra8875.h"
#ifndef CONFIG_LV_TFT_DISPLAY_CONTROLLER_RA8875
#error "Di... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/ra8875_touch.c | C | apache-2.0 | 4,607 |
/**
* @file RA8875_TOUCH.h
*/
#ifndef RA8875X_TOUCH__H
#define RA8875X_TOUCH__H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/**... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/ra8875_touch.h | C | apache-2.0 | 1,151 |
/**
* @file STMPE610.c
*/
/*********************
* INCLUDES
*********************/
#include "stmpe610.h"
#include "esp_system.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "tp_spi.h"
#include <stddef.h>
/*********************
* DEFIN... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/stmpe610.c | C | apache-2.0 | 5,798 |
/**
* @file STMPE610.h
*/
#ifndef STMPE610_H
#define STMPE610_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/******************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/stmpe610.h | C | apache-2.0 | 4,894 |
/**
* @file touch_driver.c
*/
#include "touch_driver.h"
#include "tp_spi.h"
#include "ft6x36.h"
void touch_driver_init(void)
{
#if defined (CONFIG_LV_TOUCH_CONTROLLER_XPT2046)
xpt2046_init();
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_FT6X06)
ft6x06_init(FT6236_I2C_SLAVE_ADDR);
#elif defined (CONFIG_LV_TOUC... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/touch_driver.c | C | apache-2.0 | 1,574 |
/**
* @file touch_driver.h
*/
#ifndef TOUCH_DRIVER_H
#define TOUCH_DRIVER_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#if defi... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/touch_driver.h | C | apache-2.0 | 1,232 |
/**
* @file tp_spi.c
*
*/
/*********************
* INCLUDES
*********************/
#include "tp_spi.h"
#include "touch_driver.h"
#include "esp_system.h"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include <string.h>
#include "../lvgl_helpers.h"
#include "../lvgl_spi_conf.h"
/******************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/tp_spi.c | C | apache-2.0 | 2,382 |
/**
* @file tp_spi.h
*
*/
#ifndef TP_SPI_H
#define TP_SPI_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <driver/spi_master.h>
/*********************
* DEFINES
*********************/
/**********************
* TYP... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/tp_spi.h | C | apache-2.0 | 903 |
/**
* @file XPT2046.c
*
*/
/*********************
* INCLUDES
*********************/
#include "xpt2046.h"
#include "esp_system.h"
#include "esp_log.h"
#include "driver/gpio.h"
#include "tp_spi.h"
#include <stddef.h>
/*********************
* DEFINES
*********************/
#define TAG "XPT2046"
#define... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/xpt2046.c | C | apache-2.0 | 5,054 |
/**
* @file XPT2046.h
*
*/
#ifndef XPT2046_H
#define XPT2046_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/******************... | YifuLiu/AliOS-Things | components/drivers/external_device/m5driver/lvgl_esp32_drivers/lvgl_touch/xpt2046.h | C | apache-2.0 | 1,449 |
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <stdint.h>
/*#include "aos/i2c.h"*/
#include "pca9544.h"
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
static void pca9544_comp_example(int argc, char **argv)
{
(void)argc;
(void)argv;
int ret;
uint8_t data[7] =... | YifuLiu/AliOS-Things | components/drivers/external_device/pca9544/example/pca9544_example.c | C | apache-2.0 | 1,919 |