mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2024-12-21 06:03:12 +00:00
2020.05.26.01
Hopefully fixed issues with Arduino Leonardo and Micro and serial port classes Added note on Arduino Leonardo and Micro serial configuration in rotator_hardware.h
This commit is contained in:
parent
be47f2143f
commit
0c3dd72321
@ -489,6 +489,9 @@
|
||||
Added OPTION_ALLOW_ROTATIONAL_AND_CONFIGURATION_CMDS_AT_BOOT_UP which is disabled by default. By default the controller will ignore at boot up GS-232 commands that start rotation or change the configuration.
|
||||
Related setting (new): ROTATIONAL_AND_CONFIGURATION_CMD_IGNORE_TIME_MS 5000 (ignore commands the first 5 seconds after boot up)
|
||||
|
||||
2020.05.26.01
|
||||
Hopefully fixed issues with Arduino Leonardo and Micro and serial port classes
|
||||
Added note on Arduino Leonardo and Micro serial configuration in rotator_hardware.h
|
||||
|
||||
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
||||
Anything rotator_*.* should be in the ino directory!
|
||||
@ -501,7 +504,7 @@
|
||||
|
||||
*/
|
||||
|
||||
#define CODE_VERSION "2020.05.11.02"
|
||||
#define CODE_VERSION "2020.05.26.01"
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
#include <EEPROM.h>
|
||||
|
@ -27,17 +27,19 @@
|
||||
#include "rotator_features.h"
|
||||
#endif
|
||||
|
||||
#include "rotator_hardware.h"
|
||||
|
||||
// Serial port class definitions for various devices
|
||||
|
||||
#if defined(ARDUINO_MAPLE_MINI)
|
||||
#define SERIAL_PORT_CLASS USBSerial
|
||||
#elif defined(ARDUINO_AVR_PROMICRO) || defined(ARDUINO_AVR_LEONARDO) || defined(ARDUINO_AVR_MICRO) || defined(ARDUINO_AVR_YUN) || defined(ARDUINO_AVR_ESPLORA) || defined(ARDUINO_AVR_LILYPAD_USB) || defined(ARDUINO_AVR_ROBOT_CONTROL) || defined(ARDUINO_AVR_ROBOT_MOTOR) || defined(ARDUINO_AVR_LEONARDO_ETH)
|
||||
#define SERIAL_PORT_CLASS Serial_
|
||||
#elif defined(TEENSYDUINO)
|
||||
#define SERIAL_PORT_CLASS usb_serial_class
|
||||
#else
|
||||
#define SERIAL_PORT_CLASS HardwareSerial
|
||||
#endif
|
||||
// #if defined(ARDUINO_MAPLE_MINI)
|
||||
// #define SERIAL_PORT_CLASS USBSerial
|
||||
// #elif defined(ARDUINO_AVR_PROMICRO) || defined(ARDUINO_AVR_LEONARDO) || defined(ARDUINO_AVR_MICRO) || defined(ARDUINO_AVR_YUN) || defined(ARDUINO_AVR_ESPLORA) || defined(ARDUINO_AVR_LILYPAD_USB) || defined(ARDUINO_AVR_ROBOT_CONTROL) || defined(ARDUINO_AVR_ROBOT_MOTOR) || defined(ARDUINO_AVR_LEONARDO_ETH)
|
||||
// #define SERIAL_PORT_CLASS Serial_
|
||||
// #elif defined(TEENSYDUINO)
|
||||
// #define SERIAL_PORT_CLASS usb_serial_class
|
||||
// #else
|
||||
// #define SERIAL_PORT_CLASS HardwareSerial
|
||||
// #endif
|
||||
|
||||
// #ifdef FEATURE_ETHERNET
|
||||
// #include <SPI.h>
|
||||
|
@ -4,6 +4,9 @@
|
||||
|
||||
*/
|
||||
|
||||
#if !defined(rotator_hardware_h) // can't touch this
|
||||
#define rotator_hardware_h // can't touch this
|
||||
|
||||
// #define HARDWARE_M0UPU // customize rotator_features_m0upu.h, rotators_pins_m0upu.h, rotator_settings_m0upu.h
|
||||
// #define HARDWARE_EA4TX_ARS_USB // customize rotator_features_e4tx_ars_usb.h, rotators_pins_e4tx_ars_usb.h, rotator_settings_e4tx_ars_usb.h
|
||||
// #define HARDWARE_WB6KCN // customize rotator_features_wb6kcn.h, rotators_pins_wb6kcn.h, rotator_settings_wb6kcn.h
|
||||
@ -17,7 +20,19 @@
|
||||
#endif
|
||||
|
||||
|
||||
// Serial port class definitions for various devices
|
||||
/* Serial port class definitions for various devices
|
||||
|
||||
|
||||
For Arduino Leonardo, Micro, and Yún, PLEASE READ THIS ! :
|
||||
|
||||
If using Serial (USB Serial) for the control (main) port, set SERIAL_PORT_CLASS to Serial_
|
||||
If using Serial1 (Board pins 0 and 1 Serial) for the control (main) port, set SERIAL_PORT_CLASS to HardwareSerial
|
||||
If using Serial (USB Serial) for the gps or remote port, set SERIAL_PORT_CLASS_SECONDARY to Serial_
|
||||
If using Serial1 (Board pins 0 and 1 Serial) for the gps or remote port, set SERIAL_PORT_CLASS_SECONDARY to HardwareSerial
|
||||
|
||||
For more information on serial ports on various boards: https://www.arduino.cc/reference/en/language/functions/communication/serial/
|
||||
|
||||
*/
|
||||
|
||||
#if defined(ARDUINO_MAPLE_MINI)
|
||||
#define SERIAL_PORT_CLASS USBSerial
|
||||
@ -31,3 +46,6 @@
|
||||
#else
|
||||
#define SERIAL_PORT_CLASS HardwareSerial
|
||||
#endif
|
||||
|
||||
|
||||
#endif //!defined(rotator_hardware_h) stop. hammer time.
|
||||
|
Loading…
Reference in New Issue
Block a user