From b830b3c3d79333e9bdee2748bc4178b099e652ae Mon Sep 17 00:00:00 2001 From: Sol Huebner Date: Sun, 16 Jan 2022 01:27:10 +0100 Subject: [PATCH] Enable Adafruit_BusIO as ESP-IDF component support Enables Adafruit_BusIO as ESP-IDF component support (with Arduino as component) --- CMakeLists.txt | 11 +++++++++++ component.mk | 1 + 2 files changed, 12 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 component.mk diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..880b1aa --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +# Adafruit Bus IO Library +# https://github.com/adafruit/Adafruit_BusIO +# MIT License + +cmake_minimum_required(VERSION 3.5) + +idf_component_register(SRCS "Adafruit_I2CDevice.cpp" "Adafruit_BusIO_Register.cpp" "Adafruit_SPIDevice.cpp" + INCLUDE_DIRS "." + REQUIRES arduino) + +project(Adafruit_BusIO) diff --git a/component.mk b/component.mk new file mode 100644 index 0000000..049f190 --- /dev/null +++ b/component.mk @@ -0,0 +1 @@ +COMPONENT_ADD_INCLUDEDIRS = .