The aim is to provide some sort of Arduino-like BSP for that MCU.
This is currently a toy project.
Tested on the following development board, which is flashed with an LDROM bootloader:
https://www.electrodragon.com/product/n76e003-mini-development-board/
sdcc make nvtispflash for ISP support (https://github.com/frank-zago/nvtispflash)
To build the library and examples: make
To clean the tree: make clean
The examples can be flashed in ISP mode. For instance: cd example/blink make isp
- blink: blink the builtin LED
- uart: send a short message every 2 seconds, on serial port at 115200 8N1.
- iap: with the IAP, read the MCU UID, company ID and device ID.
- ws2812: a basic LED effect for a ws2812 strip.
- bmp280-i2c: read temperature and pressure from a BMP280 using I2C
- bmp280-spi: read temperature and pressure from a BMP280 using SPI
- wii-nunchuk: read input data from a Nintendo Wii Nunchuk
- tm1637: write some numbers on a 7-segment display using a TM1637
This project, with the exception of n76e003.h, is released under the GPL-v3 or later license. See LICENSE file. n76e003.h has its own license.
The header file, n76e003.h, is coming from
https://github.com/erincandescent/libn76
Also see https://spdx.dev/ for the SPDX license tags.