add new argument for all boards with built-in display

This commit is contained in:
foamyguy 2022-06-04 11:08:20 -05:00
parent ffc451b338
commit cbff9dd8e3
27 changed files with 54 additions and 27 deletions

View File

@ -111,7 +111,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // not SH1107
false, // not SH1107
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -91,7 +91,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // not SH1107
false, // not SH1107
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -92,7 +92,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -90,7 +90,8 @@ void board_init(void) {
true, // auto_refresh
2, // native_frames_per_second
true, // backlight_on_high
true); // SH1107_addressing
true, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -144,7 +144,8 @@ void board_init(void) {
false, // auto_refresh
20, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -114,7 +114,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -114,7 +114,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -101,7 +101,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -109,7 +109,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
// Enabling the Power of the 40-pin at the back
CTR_5V.base.type = &digitalio_digitalinout_type;

View File

@ -111,7 +111,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -96,7 +96,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // not SH1107
false, // not SH1107
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -125,7 +125,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false // SH1107_addressing
false, // SH1107_addressing
50000 // backlight pwm frequency
);
common_hal_never_reset_pin(&pin_GPIO45); // backlight pin

View File

@ -101,7 +101,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // not SH1107
false, // not SH1107
50000); // backlight pwm frequency
*/
}

View File

@ -104,7 +104,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // not SH1107
false, // not SH1107
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -87,7 +87,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
// Debug UART
#ifdef DEBUG

View File

@ -115,7 +115,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
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) {

View File

@ -119,7 +119,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false // SH1107_addressing
false, // SH1107_addressing
50000 // backlight pwm frequency
);
common_hal_never_reset_pin(&pin_GPIO45); // backlight pin

View File

@ -124,7 +124,8 @@ static void display_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false // SH1107_addressing
false, // SH1107_addressing
50000 // backlight pwm frequency
);
common_hal_never_reset_pin(&pin_GPIO38); // backlight pin

View File

@ -124,7 +124,8 @@ static void display_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false // SH1107_addressing
false, // SH1107_addressing
50000 // backlight pwm frequency
);
common_hal_never_reset_pin(&pin_GPIO33); // backlight pin

View File

@ -205,7 +205,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
false, // backlight_on_high
false // SH1107_addressing
false, // SH1107_addressing
50000 // backlight pwm frequency
);
}

View File

@ -91,7 +91,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // not SH1107
false, // not SH1107
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -92,7 +92,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -92,7 +92,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -91,7 +91,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
false, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -103,7 +103,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
true); // SH1107_addressing
true, // SH1107_addressing
50000); // backlight pwm frequency
}
bool board_requests_safe_mode(void) {

View File

@ -108,7 +108,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
}
void board_deinit(void) {

View File

@ -111,7 +111,8 @@ void board_init(void) {
true, // auto_refresh
60, // native_frames_per_second
true, // backlight_on_high
false); // SH1107_addressing
false, // SH1107_addressing
50000); // backlight pwm frequency
board_buzz_obj.base.type = &audiopwmio_pwmaudioout_type;
common_hal_audiopwmio_pwmaudioout_construct(&board_buzz_obj,