add testing function for 24AA02E48 EEPROM module
This commit is contained in:
+7
-4
@@ -26,6 +26,7 @@
|
||||
#include "lcd.h"
|
||||
#include "external_temp.h"
|
||||
#include "PCA9685.h"
|
||||
#include "24AA02E48.h"
|
||||
|
||||
/* USER CODE END Includes */
|
||||
|
||||
@@ -57,16 +58,18 @@ I2C_HandleTypeDef hi2c1;
|
||||
void ((*executors[])(void)) = {
|
||||
external_temp_show_celsius,
|
||||
external_temp_show_fahrenheit,
|
||||
PCA9685_run_test
|
||||
PCA9685_run_test,
|
||||
EEPROM_24AA02E48_run_test
|
||||
};
|
||||
|
||||
void ((*cleanup_functions[])(void)) = {
|
||||
NULL,
|
||||
NULL,
|
||||
PCA9685_cleanup
|
||||
PCA9685_cleanup,
|
||||
NULL
|
||||
};
|
||||
|
||||
int delay_between_runs[] = {250, 250, -1};
|
||||
int delay_between_runs[] = {250, 250, -1, -1};
|
||||
|
||||
size_t current_executor_id = 0;
|
||||
|
||||
@@ -209,7 +212,7 @@ void button_init_and_test(void)
|
||||
void switch_to_next_test(void)
|
||||
{
|
||||
current_executor_id += 1;
|
||||
current_executor_id %= 3;
|
||||
current_executor_id %= 4;
|
||||
}
|
||||
|
||||
/* USER CODE END 0 */
|
||||
|
||||
Reference in New Issue
Block a user