File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed
arduino_nano_33_ble_sense Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
3
cmake_minimum_required (VERSION 3.20.0 )
4
- set (DTC_OVERLAY_FILE $ENV{HOME} /zephyrproject/modules/lib/Arduino-Zephyr-API/variants/ARDUINO_NANO33BLE /arduino_nano_33_ble.overlay )
4
+ set (DTC_OVERLAY_FILE $ENV{HOME} /zephyrproject/modules/lib/Arduino-Zephyr-API/variants/ARDUINO_NANO_33_BLE /arduino_nano_33_ble.overlay )
5
5
6
6
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
7
7
project (blinky )
Original file line number Diff line number Diff line change 8
8
#pragma once
9
9
#include <zephyr/drivers/gpio.h>
10
10
#include <zephyr/zephyr.h>
11
+ #include <zephyr/drivers/i2c.h>
12
+ #include <zephyr/device.h>
11
13
12
14
#define LED_BUILTIN 13
13
15
@@ -79,4 +81,6 @@ enum digitalPins {
79
81
D19 ,
80
82
D20 ,
81
83
D21
82
- };
84
+ };
85
+
86
+ const static struct device * i2c_dev = DEVICE_DT_GET (DT_NODELABEL (i2c0 ));
Original file line number Diff line number Diff line change 8
8
#pragma once
9
9
#include <zephyr/drivers/gpio.h>
10
10
#include <zephyr/zephyr.h>
11
+ #include <zephyr/drivers/i2c.h>
12
+ #include <zephyr/device.h>
11
13
12
14
#define LED_BUILTIN 13
13
15
@@ -80,3 +82,5 @@ enum digitalPins {
80
82
D20 ,
81
83
D21
82
84
};
85
+
86
+ const static struct device * i2c_dev = DEVICE_DT_GET (DT_NODELABEL (i2c0 ));
Original file line number Diff line number Diff line change 1
1
#ifdef CONFIG_BOARD_ARDUINO_NANO_33_BLE
2
- #include " arduino_nano_33_ble_pinmap.h"
2
+ #include < arduino_nano_33_ble_pinmap.h>
3
3
#endif // CONFIG_BOARD_ARDUINO_NANO_33_BLE
4
4
#ifdef CONFIG_BOARD_ARDUINO_NANO_33_BLE_SENSE
5
- #include " arduino_nano_33_ble_sense_pinmap.h"
5
+ #include < arduino_nano_33_ble_sense_pinmap.h>
6
6
#endif // CONFIG_BOARD_ARDUINO_NANO_33_BLE_SENSE
7
7
#ifdef CONFIG_BOARD_ARDUINO_NANO_33_IOT
8
- #include " arduino_nano_33_iot_pinmap.h"
8
+ #include < arduino_nano_33_iot_pinmap.h>
9
9
#endif // CONFIG_BOARD_ARDUINO_NANO_33_IOT
You can’t perform that action at this time.
0 commit comments