add new argument for all boards with built-in display
This commit is contained in:
parent
ffc451b338
commit
cbff9dd8e3
@ -111,7 +111,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // not SH1107
|
false, // not SH1107
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -91,7 +91,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // not SH1107
|
false, // not SH1107
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -92,7 +92,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -90,7 +90,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
2, // native_frames_per_second
|
2, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
true); // SH1107_addressing
|
true, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -144,7 +144,8 @@ void board_init(void) {
|
|||||||
false, // auto_refresh
|
false, // auto_refresh
|
||||||
20, // native_frames_per_second
|
20, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -114,7 +114,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -114,7 +114,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -101,7 +101,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -109,7 +109,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
|
|
||||||
// Enabling the Power of the 40-pin at the back
|
// Enabling the Power of the 40-pin at the back
|
||||||
CTR_5V.base.type = &digitalio_digitalinout_type;
|
CTR_5V.base.type = &digitalio_digitalinout_type;
|
||||||
|
@ -111,7 +111,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -96,7 +96,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // not SH1107
|
false, // not SH1107
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -125,7 +125,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000 // backlight pwm frequency
|
||||||
);
|
);
|
||||||
|
|
||||||
common_hal_never_reset_pin(&pin_GPIO45); // backlight pin
|
common_hal_never_reset_pin(&pin_GPIO45); // backlight pin
|
||||||
|
@ -101,7 +101,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // not SH1107
|
false, // not SH1107
|
||||||
|
50000); // backlight pwm frequency
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // not SH1107
|
false, // not SH1107
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -87,7 +87,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
|
|
||||||
// Debug UART
|
// Debug UART
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -115,7 +115,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
|
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
|
||||||
|
@ -119,7 +119,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000 // backlight pwm frequency
|
||||||
);
|
);
|
||||||
|
|
||||||
common_hal_never_reset_pin(&pin_GPIO45); // backlight pin
|
common_hal_never_reset_pin(&pin_GPIO45); // backlight pin
|
||||||
|
@ -124,7 +124,8 @@ static void display_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000 // backlight pwm frequency
|
||||||
);
|
);
|
||||||
|
|
||||||
common_hal_never_reset_pin(&pin_GPIO38); // backlight pin
|
common_hal_never_reset_pin(&pin_GPIO38); // backlight pin
|
||||||
|
@ -124,7 +124,8 @@ static void display_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000 // backlight pwm frequency
|
||||||
);
|
);
|
||||||
|
|
||||||
common_hal_never_reset_pin(&pin_GPIO33); // backlight pin
|
common_hal_never_reset_pin(&pin_GPIO33); // backlight pin
|
||||||
|
@ -205,7 +205,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
false, // backlight_on_high
|
false, // backlight_on_high
|
||||||
false // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000 // backlight pwm frequency
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // not SH1107
|
false, // not SH1107
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -92,7 +92,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -92,7 +92,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -91,7 +91,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
false, // backlight_on_high
|
false, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -103,7 +103,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
true); // SH1107_addressing
|
true, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
bool board_requests_safe_mode(void) {
|
bool board_requests_safe_mode(void) {
|
||||||
|
@ -108,7 +108,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
}
|
}
|
||||||
|
|
||||||
void board_deinit(void) {
|
void board_deinit(void) {
|
||||||
|
@ -111,7 +111,8 @@ void board_init(void) {
|
|||||||
true, // auto_refresh
|
true, // auto_refresh
|
||||||
60, // native_frames_per_second
|
60, // native_frames_per_second
|
||||||
true, // backlight_on_high
|
true, // backlight_on_high
|
||||||
false); // SH1107_addressing
|
false, // SH1107_addressing
|
||||||
|
50000); // backlight pwm frequency
|
||||||
|
|
||||||
board_buzz_obj.base.type = &audiopwmio_pwmaudioout_type;
|
board_buzz_obj.base.type = &audiopwmio_pwmaudioout_type;
|
||||||
common_hal_audiopwmio_pwmaudioout_construct(&board_buzz_obj,
|
common_hal_audiopwmio_pwmaudioout_construct(&board_buzz_obj,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user