mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2024-12-20 21:53:12 +00:00
2018.03.14.01
SET_I2C_BUS_SPEED in settings file; set I2C bus speed to help address I2C I/O time impact serial port performance
This commit is contained in:
parent
02c2aec064
commit
9bf5fa1c33
@ -368,6 +368,9 @@
|
||||
2018.03.11.01
|
||||
GPS performance tweak - now ignoring gps_data_available and reading all data available on GPS port
|
||||
|
||||
2018.03.14.01
|
||||
SET_I2C_BUS_SPEED in settings file; set I2C bus speed to help address I2C I/O time impact serial port performance
|
||||
|
||||
|
||||
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
||||
Anything rotator_*.* should be in the ino directory!
|
||||
@ -378,7 +381,7 @@
|
||||
|
||||
*/
|
||||
|
||||
#define CODE_VERSION "2018.03.11.01"
|
||||
#define CODE_VERSION "2018.03.14.01"
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
#include <EEPROM.h>
|
||||
@ -7436,6 +7439,11 @@ void initialize_peripherals(){
|
||||
ethernetserver0.begin();
|
||||
#endif //FEATURE_ETHERNET
|
||||
|
||||
#ifdef SET_I2C_BUS_SPEED
|
||||
TWBR = ((F_CPU / SET_I2C_BUS_SPEED) - 16) / 2;
|
||||
#endif
|
||||
|
||||
|
||||
} /* initialize_peripherals */
|
||||
|
||||
|
||||
|
@ -336,4 +336,6 @@ You can tweak these, but read the online documentation!
|
||||
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
|
||||
#define AUDIBLE_ALERT_AT_EL_TARGET 1
|
||||
|
||||
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
|
||||
|
||||
|
||||
|
@ -325,3 +325,6 @@ You can tweak these, but read the online documentation!
|
||||
#define AUDIBLE_ALERT_AT_STARTUP 1
|
||||
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
|
||||
#define AUDIBLE_ALERT_AT_EL_TARGET 1
|
||||
|
||||
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
|
||||
|
||||
|
@ -326,3 +326,5 @@ You can tweak these, but read the online documentation!
|
||||
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
|
||||
#define AUDIBLE_ALERT_AT_EL_TARGET 1
|
||||
|
||||
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
|
||||
|
||||
|
@ -346,6 +346,8 @@ You can tweak these, but read the online documentation!
|
||||
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
|
||||
#define AUDIBLE_ALERT_AT_EL_TARGET
|
||||
|
||||
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
|
||||
|
||||
|
||||
// ######## ######## ###### ########
|
||||
// ## ## ## ## ##
|
||||
|
@ -328,3 +328,6 @@ You can tweak these, but read the online documentation!
|
||||
#define AUDIBLE_ALERT_AT_AZ_TARGET 1
|
||||
#define AUDIBLE_ALERT_AT_EL_TARGET 1
|
||||
|
||||
//#define SET_I2C_BUS_SPEED 800000L // Can set up to 800 kHz, depending on devices. 800000L = 800 khz, 400000L = 400 khz. Default is 100 khz
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user