@@ -34,7 +34,7 @@ DashDrawParametersIntUpdateRange::IntColorRange drawVoltageColorRanges[] {
3434 {LCD_WHITE, LCD_BLUE, 2440 , 3000 }
3535};
3636DashDrawParametersIntUpdateRange drawVoltageWithIntRange (LCD_BLACK, LCD_LIGHT_BLUE, LCD_BLACK, LCD_YELLOW,
37- & RobotoMedium24, drawVoltageColorRanges, 2 );
37+ RobotoMedium24, drawVoltageColorRanges, 2 );
3838
3939// As above we create another one for the analog item, it has two ranges.
4040// Note that this is a parameter, not the actual dashboard item, they are defined below
@@ -43,7 +43,7 @@ DashDrawParametersIntUpdateRange::IntColorRange drawPowerColorRanges[] {
4343 {LCD_YELLOW, LCD_RED, 2100 , 3000 }
4444};
4545DashDrawParametersIntUpdateRange drawPowerValueWithIntRange (LCD_BLACK, LCD_LIGHT_BLUE, LCD_BLACK, LCD_YELLOW,
46- & RobotoMedium24, drawPowerColorRanges, 2 );
46+ RobotoMedium24, drawPowerColorRanges, 2 );
4747
4848//
4949// Although the dashboard support provides a wide range of menu drawing capabilities, it does not cover every case,
@@ -52,9 +52,9 @@ DashDrawParametersIntUpdateRange drawPowerValueWithIntRange(LCD_BLACK, LCD_LIGHT
5252// to the encoder state.
5353//
5454// For drawing onto device drawable see:
55- // https://www.thecoderscorner.com/products /arduino-libraries/tc-menu/rendering-with-tcmenu-lcd-tft-oled/#drawing-direct-to-the-display-with-devicedrawabl
56- // For more on the delegate class and all the points where you can extend
57- // https://www.thecoderscorner.com/ref-docs/tcmenu/html/class_drawable_dashboard_delegate.html
55+ // https://tcmenu.github.io/documentation /arduino-libraries/ /tc-menu/rendering-with-tcmenu-lcd-tft-oled/#drawing-direct-to-the-display-with-devicedrawabl
56+ // For more on the dashboard, delegate class and all the points where you can extend
57+ // https://tcmenu.github.io/documentation/arduino-libraries/tc-menu/renderer-take-over-display/
5858//
5959class MyDrawableDashboardDelegate : public DrawableDashboardDelegate {
6060private:
@@ -63,9 +63,9 @@ class MyDrawableDashboardDelegate : public DrawableDashboardDelegate {
6363 int lastEncoderTurn = 0 ;
6464public:
6565 MyDrawableDashboardDelegate () : button1(Coord(10 , 240 ), Coord(105 , 60 ), LCD_LIGHT_BLUE, LCD_BLACK, LCD_SEL_BLUE, " AC" ,
66- DeviceFontDrawingMode (& RobotoMedium24)),
66+ DeviceFontDrawingMode (RobotoMedium24)),
6767 button2(Coord(125 , 240 ), Coord(105 , 60 ), LCD_LIGHT_BLUE, LCD_BLACK, LCD_SEL_BLUE, "Batt",
68- DeviceFontDrawingMode(& RobotoMedium24)) { }
68+ DeviceFontDrawingMode(RobotoMedium24)) { }
6969
7070 // this is called before the dashboard titles are drawn when first presented.
7171 // you return true to tell the core code that you've already cleared the screen, otherwise false.
@@ -92,7 +92,7 @@ class MyDrawableDashboardDelegate : public DrawableDashboardDelegate {
9292 color_t palette[2 ] = { LCD_LIGHT_BLUE, RGB (0 , 0 , 0 ) };
9393 DeviceDrawableHelper helper (dr, palette, 2 , Coord (10 , 10 ), Coord (80 , 25 ));
9494 helper.getDrawable ()->setDrawColor (palette[0 ]);
95- helper.setFont (DeviceFontDrawingMode (& RobotoMedium24));
95+ helper.setFont (DeviceFontDrawingMode (RobotoMedium24));
9696 helper.getDrawable ()->drawBox (helper.offsetLocation (Coord (10 , 10 )), Coord (80 , 25 ), true );
9797 helper.drawText (helper.offsetLocation (Coord (12 , 10 )), palette[1 ], " Power" );
9898 helper.endDraw ();
0 commit comments