mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
remove .vscode its user dependant add SEEED and nano every support
This commit is contained in:
parent
f263975672
commit
33ba4f4df4
7
.vscode/extensions.json
vendored
7
.vscode/extensions.json
vendored
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
|
||||||
// for the documentation about the extensions.json format
|
|
||||||
"recommendations": [
|
|
||||||
"platformio.platformio-ide"
|
|
||||||
]
|
|
||||||
}
|
|
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"array": "cpp",
|
|
||||||
"deque": "cpp",
|
|
||||||
"string": "cpp",
|
|
||||||
"unordered_map": "cpp",
|
|
||||||
"vector": "cpp",
|
|
||||||
"string_view": "cpp",
|
|
||||||
"initializer_list": "cpp",
|
|
||||||
"cstdint": "cpp"
|
|
||||||
}
|
|
||||||
}
|
|
2
FSH.h
2
FSH.h
|
@ -1,7 +1,7 @@
|
||||||
#ifndef FSH_h
|
#ifndef FSH_h
|
||||||
#define FSH_h
|
#define FSH_h
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#if defined(ARDUINO_ARCH_MEGAAVR)
|
#ifdef ARDUINO_ARCH_MEGAAVR
|
||||||
typedef char FSH;
|
typedef char FSH;
|
||||||
#define GETFLASH(addr) (*(const unsigned char *)(addr))
|
#define GETFLASH(addr) (*(const unsigned char *)(addr))
|
||||||
#define FLASH
|
#define FLASH
|
||||||
|
|
|
@ -29,6 +29,11 @@
|
||||||
new MotorDriver(3, 12, UNUSED_PIN, UNUSED_PIN, A0, 2.99, 2000, UNUSED_PIN), \
|
new MotorDriver(3, 12, UNUSED_PIN, UNUSED_PIN, A0, 2.99, 2000, UNUSED_PIN), \
|
||||||
new MotorDriver(11, 13, UNUSED_PIN, UNUSED_PIN, A1, 2.99, 2000, UNUSED_PIN)
|
new MotorDriver(11, 13, UNUSED_PIN, UNUSED_PIN, A1, 2.99, 2000, UNUSED_PIN)
|
||||||
|
|
||||||
|
// SEEED Motor Shield v2.0
|
||||||
|
#define SEEED_MOTOR_SHIELD F("SEEED_MOTOR_SHIELD"), \
|
||||||
|
new MotorDriver(9, 8, 11, UNUSED_PIN, A0, 2.99, 2000, UNUSED_PIN), \
|
||||||
|
new MotorDriver(10, 12, 13, UNUSED_PIN, A1, 2.99, 2000, UNUSED_PIN)
|
||||||
|
|
||||||
// Pololu Motor Shield
|
// Pololu Motor Shield
|
||||||
#define POLOLU_MOTOR_SHIELD F("POLOLU_MOTOR_SHIELD"), \
|
#define POLOLU_MOTOR_SHIELD F("POLOLU_MOTOR_SHIELD"), \
|
||||||
new MotorDriver( 9, 7, UNUSED_PIN, -4, A0, 18, 3000, 12), \
|
new MotorDriver( 9, 7, UNUSED_PIN, -4, A0, 18, 3000, 12), \
|
||||||
|
|
|
@ -70,7 +70,21 @@ lib_deps =
|
||||||
marcoschwartz/LiquidCrystal_I2C
|
marcoschwartz/LiquidCrystal_I2C
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
monitor_flags = --echo
|
monitor_flags = --echo
|
||||||
build_flags = "-DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO_WIFI_DEV_ED -DARDUINO_ARCH_AVR -DESP_CH_UART -DESP_CH_UART_BR=19200"g
|
board_build.extra_flags = -DARDUINO_AVR_UNO_WIFI_REV2 -DMILLIS_USE_TIMERB3
|
||||||
|
|
||||||
|
[env:nanoevery]
|
||||||
|
platform = atmelmegaavr
|
||||||
|
board = nano_every
|
||||||
|
framework = arduino
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
||||||
|
DIO2
|
||||||
|
arduino-libraries/Ethernet
|
||||||
|
SPI
|
||||||
|
marcoschwartz/LiquidCrystal_I2C
|
||||||
|
monitor_speed = 115200
|
||||||
|
monitor_flags = --echo
|
||||||
|
board_build.extra_flags = "-DARDUINO_AVR_NANO_EVERY -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP"
|
||||||
|
|
||||||
[env:uno]
|
[env:uno]
|
||||||
platform = atmelavr
|
platform = atmelavr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user