未验证 提交 89bf823f 编写于 作者: mysterywolf's avatar mysterywolf 提交者: GitHub

[arduino][stm32l475] update application/arduino folder (#5599)

上级 5ec00a5a
from building import *
cwd = GetCurrentDir()
src = ['arduino_pinout.c']
src = Glob('*.c') + Glob('*.cpp')
inc = [cwd]
group = DefineGroup('Arduino', src, depend = ['RT_USING_ARDUINO'], CPPPATH = inc)
src = ['arduino_main.cpp']
group = group + DefineGroup('Applications', src, depend = ['RT_USING_ARDUINO'])
Return('group')
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-10 Meco Man first version
*/
#include <Arduino.h>
void setup(void)
{
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
}
void loop(void)
{
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
delay(200);
}
......@@ -9,7 +9,7 @@
*/
#include <Arduino.h>
#include <board.h>
#include "arduino_pinout.h"
#include "pins_arduino.h"
const pin_map_t pin_map_table[ARDUINO_PINOUT_PIN_MAX]=
{
......
......@@ -7,8 +7,8 @@
* Date Author Notes
* 2021-12-10 Meco Man first version
*/
#ifndef __UNO_PINOUT_H__
#define __UNO_PINOUT_H__
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#define LED_BUILTIN 13 /* Built-in LED */
......@@ -25,4 +25,4 @@
#define A4 (18)
#define A5 (19)
#endif /* __UNO_PINOUT_H__ */
#endif /* Pins_Arduino_h */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册