BV HiZ: display mode and pinout on OLED display

This commit is contained in:
King Kévin 2018-02-06 12:32:44 +01:00
parent 980bc67419
commit 434c664d5b
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include "print.h" // printing utilities
#include "menu.h" // menu definitions
#include "busvoodoo_global.h" // BusVoodoo definitions
#include "busvoodoo_oled.h" // OLED utilities
#include "busvoodoo_hiz.h" // own definitions
#define BUSVOODOO_XV_DEFAULT (0.8*(1+30.0/10.0)) /**< default (when not driven) xV voltage regulator output voltage based on R1 and R2 */
@ -50,6 +51,10 @@ static bool busvoodoo_hiz_setup(char** prefix, const char* line)
(void)line; // no configuration is required
*prefix = "HiZ"; // set command line prefix
led_blink(0, 1); // switch blue LED on to show we are ready
busvoodoo_oled_text_left("HiZ"); // set mode title on OLED display
const char* pins[10] = {NULL, NULL, NULL, "5V", "GND", NULL, NULL, NULL, "lV", "3V3"}; // HiZ mode pinout
busvoodoo_oled_text_pinout(pins, true); // set pinout on display
busvoodoo_oled_update(); // update display to show text and pinout
return true;
}