NuttX driver libraries for Rohm Sensors & Bluetooth LE
(NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. http://nuttx.org/doku.php?id=nuttx)
- Accelerometer KX122, I2C, SAD=0x1F
- Accelerometer KX224, I2C, SAD=0x1F
- Magnetosensor BM1422AGMV, I2C, SAD=0x0F
- Pressure sensor BM1383AGLV, I2C, SAD=0x5D
- ALS/Proximity sensor RPR-0521RS, I2C, SAD=0x38
- Hall Effect sensor BD7411G, GPIO
- Color sensor BH1749NUC, I2C, SAD=0x38/0x39
This repository contains the drivers for:
- Accelerometer KX224
- Hall Effect sensor BD7411G
- Color sensor BH1749NUC
This repository contains the makefile
, kconfig
and cxd56-sensors.c
modifications to allow you to easily test these devices.
However these files could be outdated compared to the Sony-provided files, and as such may cause you to lose other functionality.
Should you wish to use these drivers on a newer base, you need to modify:
sdk/drivers/Kconfig
andMake.defs
sdk/bsp/board/Makefile
sdk/bsp/board/common/src/cxd56-sensors.c
The actual driver files are located in:
sdk/drivers
sdk/bsp/board/common
sdk/bsp/include/nuttx/sensors
The rest of the drivers are available on the Sony GitHub , and should come with the SDK.
About Sony Spresense https://developer.sony.com/develop/spresense/
For help regarding the installation of the Spresense SDK please refer to Setting up the Spresense SDK
- Run the config and select the drivers and examples you wish to upload
- In the sdk folder, type
tools/config.py --menuconfig
- Save the configuration and run make
- Upload the nuttx.spk to the board according to the instructions in the Flashing tutorial
- When the system has booted, type help. This will show you the built-in applications, which should include the driver example you chose in the config
- Type the name of the application in the NuttX shell, and the application should begin running