Skip to content

Commit 1f3bcac

Browse files
committed
Revert "Revert "examples prepared for release""
This reverts commit 4c17a47.
1 parent d123764 commit 1f3bcac

39 files changed

+89
-73
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ If you are manually using tcMenu, without the designer, this page fully document
4444

4545
## Asking questions
4646

47-
There is a forum where questions can be asked, but the rules of engagement are: **this is my hobby, I make it available because it helps others**. Don't expect immediate answers, make sure you've recreated the problem in a simple sketch that you can send to me. Please consider making at least a one time donation using the sponsor link above before using the forum.
48-
49-
* [TCC Community forum](https://www.thecoderscorner.com/jforum/)
50-
* [Commercial support](https://www.thecoderscorner.com/all-contact)
51-
* I also monitor the Arduino forum [https://forum.arduino.cc/], Arduino related questions can be asked there too, please make sure the library name is in the subject.
47+
You can ask questions either in the [discussions section of the tcMenu repo](https://github.com/davetcc/tcMenu/discussions), or using the Arduino forum. We generally answer most questions, but the rules of engagement are: **this is my hobby, I make it available because it helps others**. Don't expect immediate answers, make sure you've recreated the problem in a simple sketch that you can send to me. Please consider making at least a one time donation using the sponsor link if we do help you out.
5248

49+
* [discussions section of the tcMenu repo](https://github.com/davetcc/tcMenu/discussions) of tcmenu git repo
50+
* [Arduino discussion forum](https://forum.arduino.cc/) where questions can be asked, please tag me using `@davetcc`.
51+
* [Legacy discussion forum probably to be made read only soon](https://www.thecoderscorner.com/jforum/).

examples/esp/esp32SimHub/dashboardSetup.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ void CustomDashboardDelegate::dashboardDidDraw(unsigned int encVal, RenderPressM
2121
if(!ledsChanged) return;
2222
ledsChanged = false;
2323
int widthOfOneLed = renderer.getDeviceDrawable()->getDisplayDimensions().x / LED_STATES;
24+
int startX = widthOfOneLed / 2;
2425

25-
int offsetX = widthOfOneLed / 2;
2626
for (uint16_t ledState : ledColors) {
27-
renderer.getDeviceDrawable()->drawCircle(Coord(offsetX, offsetX), offsetX - 1, ledState);
28-
offsetX += widthOfOneLed;
27+
renderer.getDeviceDrawable()->setDrawColor(ledState);
28+
renderer.getDeviceDrawable()->drawCircle(Coord(startX, 12), 11, true);
29+
startX += widthOfOneLed;
2930
}
3031
}
3132

@@ -68,12 +69,12 @@ void setupDashboard() {
6869
serdebugF("Starting dashboard setup");
6970
dashCustomDrawing = new DrawableDashboard(renderer.getDeviceDrawable(), &renderer, nullptr, DrawableDashboard::DASH_ON_RESET_CLICK_EXIT);
7071
dashCustomDrawing->clearItems();
71-
dashCustomDrawing->addDrawingItem(&menuGear, Coord(15, 60), &gearDrawParams, 1);
72-
dashCustomDrawing->addDrawingItem(&menuTyreTemp, Coord(145, 125), &white18ptUpdateRightParam, 5, "TMP");
73-
dashCustomDrawing->addDrawingItem(&menuRPM, Coord(145, 45), &rpmDrawParams, 5);
74-
dashCustomDrawing->addDrawingItem(&menuSpeed, Coord(145, 85), &white18ptNoUpdate, 5, "MPH");
75-
dashCustomDrawing->addDrawingItem(&menuDashboard, Coord(5, 220), &yellow9PtUpdateLeft, 10);
76-
dashCustomDrawing->addDrawingItem(&menuLap, Coord(200, 220), &yellow9PtUpdateRight, 5);
72+
dashCustomDrawing->addDrawingItem(&menuGear, Coord(15, 50), &gearDrawParams, 1);
73+
dashCustomDrawing->addDrawingItem(&menuTyreTemp, Coord(125, 125), &white18ptUpdateRightParam, 5, "TMP");
74+
dashCustomDrawing->addDrawingItem(&menuRPM, Coord(125, 45), &rpmDrawParams, 5);
75+
dashCustomDrawing->addDrawingItem(&menuSpeed, Coord(125, 85), &white18ptNoUpdate, 5, "MPH");
76+
dashCustomDrawing->addDrawingItem(&menuDashboard, Coord(5, 215), &yellow9PtUpdateLeft, 10);
77+
dashCustomDrawing->addDrawingItem(&menuLap, Coord(200, 215), &yellow9PtUpdateRight, 5);
7778
dashCustomDrawing->setDelegate(&dashboardDelegate);
7879
serdebugF("Finished dash setup");
7980

src/BaseDialog.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88

99
/**
1010
* @file BaseDialog.h
11-
*
12-
* The definition of the base dialog object, that can be used with any display type. These are designed
11+
* @brief The definition of the base dialog object, that can be used with any display type. These are designed
1312
* to handle simple user informational pages and questions.
14-
*
15-
* Dialogs are a core function of tcMenu, and must be supported on all available platforms.
1613
*/
1714

1815
#define FIRST_DEFAULT_BUTTON 0

src/BaseRenderers.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
* This product is licensed under an Apache license, see the LICENSE file in the top-level directory.
44
*/
55

6+
/**
7+
* @file BaseRenderers.h
8+
* @brief The base definitions and classes shared by all TcMenu renderers.
9+
*/
10+
611
#ifndef _BASE_RENDERERS_H_
712
#define _BASE_RENDERERS_H_
813

src/EditableLargeNumberMenuItem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* @file EditableLargeNumberMenuItem.h
14-
* This file contains the classes needed to edit very large number values that could not be edited with a rotary encoder.
14+
* @brief This file contains the classes needed to edit very large number values that could not be edited with a rotary encoder.
1515
* These numeric values have 12 digits, and as many decimal places as required.
1616
*/
1717

src/EepromItemStorage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* @file EepromItemStorage.h
11-
* this file contains a series of helper methods for loading and saving menu item to eeprom.
11+
* @brief this file contains a series of helper methods for loading and saving menu item to eeprom.
1212
*/
1313

1414
#include "EepromAbstraction.h"

src/MenuHistoryNavigator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
*/
55

66
/**
7-
* @file MenuHistoryNavigator.h contains the functionality to do with menu item navigation, including a stack of
7+
* @file MenuHistoryNavigator.h
8+
* @brief contains the functionality to do with menu item navigation, including a stack of
89
* previous navigations
910
*/
1011

src/MenuItems.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55

66
/**
77
* @file MenuItems.h
8-
*
9-
* In TcMenu, MenuItem storage is shared between program memory and RAM. Usually each MenuItem has associated Info block and
8+
* @brief In TcMenu, MenuItem storage is shared between program memory and RAM. Usually each MenuItem has associated Info block and
109
* within the InfoBlock, the first fields must be in the same order as AnyMenuInfo. The most commonly used menu items are
1110
* defined within this file. Each menu item also has a menu item type that is used during rendering and remote communication
1211
* to determine what it actually is.
13-
*
14-
* Most of the editable menu items can stored to EEPROM, including AnalogMenuItem, EnumMenuItem, BooleanMenuItem and TextMenuItem
1512
*/
1613

1714
#ifndef _MENUITEMS_h

src/MenuIterator.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
/**
99
* @file MenuIterator.h
10-
*
11-
* Provides a number of utility functions for the processing of menu item structures.
10+
* @brief Provides a number of utility functions for the processing of menu item structures.
1211
*/
1312

1413
#ifndef _MENUITERATOR_H

src/MessageProcessors.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
/**
1616
* @file MessageProcessors.h
17-
*
18-
* This file contains the default processors that can deal with incoming messages turning
17+
* @brief This file contains the default processors that can deal with incoming messages turning
1918
* them into events on tcMenu.
2019
*/
2120

0 commit comments

Comments
 (0)