8
8
use elsewhere.
9
9
*/
10
10
11
- // Generated for STM32Duino by TcMenu 4.3.1 on 2024-09-22T11:33:46.688735900Z .
11
+ // Generated for STM32Duino by TcMenu 4.4.0-SNAPSHOT on 2024-10-19T08:59:45.395538500Z .
12
12
13
13
#include < tcMenu.h>
14
14
#include " stm32DuinoOneButton_menu.h"
17
17
18
18
// Global variable declarations
19
19
const ConnectorLocalInfo applicationInfo = { " One Button" , " 4fe6e85d-2bbd-4d19-84e5-5d6746883028" };
20
+ TcMenuRemoteServer remoteServer (applicationInfo);
20
21
HalStm32EepromAbstraction glBspRom;
21
- EepromAuthenticatorManager authManager (4 );
22
22
U8G2_SSD1306_128X64_NONAME_F_4W_HW_SPI gfx (U8G2_R0, PF13, PD15, PF12);
23
23
U8g2Drawable gfxDrawable (&gfx);
24
24
GraphicsDeviceRenderer renderer (30 , applicationInfo.name, &gfxDrawable);
25
25
TcOneButtonHandler oneButtonHandler (USER_BTN, 250 );
26
+ NoInitialisationNeeded serialInitializer;
27
+ SerialTagValueTransport serialTransport (&Serial);
28
+ TagValueRemoteServerConnection serialConnection (serialTransport, serialInitializer);
26
29
27
30
// Global Menu Item declarations
28
31
const char enumStrSettingsEnumProp_0[] = " Item1" ;
@@ -48,14 +51,13 @@ void setupMenu() {
48
51
setSizeBasedEEPROMStorageEnabled (false );
49
52
glBspRom.initialise (0 );
50
53
menuMgr.setEepromRef (&glBspRom);
51
- authManager.initialise (menuMgr.getEepromAbstraction (), 150 );
52
- menuMgr.setAuthenticator (&authManager);
53
54
// Code generated by plugins and new operators.
54
55
gfx.begin ();
55
56
renderer.setUpdatesPerSecond (5 );
56
57
switches.init (internalDigitalIo (), SWITCHES_POLL_EVERYTHING, false );
57
58
menuMgr.initWithoutInput (&renderer, &menuPressMe);
58
59
oneButtonHandler.start ();
60
+ remoteServer.addConnection (&serialConnection);
59
61
installMonoInverseTitleTheme (renderer, MenuFontDef (&OpenSansRegular8pt, 0 ), MenuFontDef (&OpenSansRegular8pt, 0 ), true , BaseGraphicalRenderer::NO_TITLE, true );
60
62
}
61
63
0 commit comments