[arduino][stm32l475] update application/arduino folder (#5599)
This commit is contained in:
parent
5ec00a5a1d
commit
89bf823f7d
|
@ -1,12 +1,9 @@
|
|||
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')
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* 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 */
|
Loading…
Reference in New Issue