Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:38 02 Dec 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : LCD Visual Design Studio Free browser-based UI builder & C++ generator

     Page 2 of 3    
Author Message
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 95
Posted: 10:40pm 28 Nov 2026
Copy link to clipboard 
Print this post

Peter,
Thanks for the taking the time to read my comments and produce a cogent response- I was close on hiding the keyboard, I caught the .visible property but must have used it wrong.

I think that Peter Mather (matherp on this forum) or Geoff Graham would be happy to share source, etc.  Both might also have some good ideas on how to best go about this- there may be a better way to generate and link this code than MMBASIC directly.  A lot of system level additions are written as C Subroutines and the very latest versions of MMBASIC even include a C complier!  I hope I'm able to Grok all of it, haven't tried it yet.

Thanks
Take care.
John Wettroth
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 09:21am 29 Nov 2026
Copy link to clipboard 
Print this post

OK John, thanks for the suggestions, something to look into. I like the C subroutine method as I can make an app to generate the C code that can be added to MMBASIC as a subroutine.

Regards

Peter
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9420
Posted: 10:01am 29 Nov 2026
Copy link to clipboard 
Print this post

A C subroutine wouldn't be directly integrated into a MMBasic program though would it? The GUI system runs, sort of, as an alternative to a normal program, not inside it, and is purely interrupt driven by the user's actions. It's a truly interactive system. Generating the code to put the GUI objects into position is only part of it (the easy bit!). The program uses the object numbers and interrupts for control. In many cases it just sits in a tight loop waiting for the user.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 10:31am 29 Nov 2026
Copy link to clipboard 
Print this post

Thanks Mixtel90,

I thought after i posted to jwettroth above, that C subs would be difficult as i would need separate cross-compiled binaries for ARM Cortex-M0+ (RP2040), Cortex-M33 (RP2350), and MIPS (PIC32) etc!  So I'll stick to generating mmbasic code for now at least.

If I get something going I'll open a new topic so it will be separate web app to the ESP32 ones.

Peter
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 05:22pm 29 Nov 2026
Copy link to clipboard 
Print this post

Hi,

I've added PSRAM buffering to the BMP loader in the exported sketch. On ESP32 boards where PSRAM is turned on, like your CrowPanel 7" with PSRAM set to Huge, each picture row now comes off the SD card in one read and goes to the screen in one go. Before, it was read and drawn 64 pixels at a time, which still happens on none PSRAM devices!

Peter
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 01:17am 30 Nov 2026
Copy link to clipboard 
Print this post

Hi,

Added WebServer and SDCard controls which allows anyone connected to the ESP32’s Wi-Fi network (or Access Point) to grab sensor logs, CSV files, and pictures directly from a browser without removing the physical SD card.

Here how it works:

A. Direct File URLs

Any file on the card can be fetched directly in a browser:

http://192.168.4.1/sd/weather.csv → prompts a download of the CSV spreadsheet.
http://192.168.4.1/sd/picture.bmp → displays the BMP picture or downloads it.
http://192.168.4.1/sd/logs/sensor.txt → views the text log in the browser.


B. Mirrored Dashboard Integration

(Virtual LCD Web Page)
When the WebServer is in Dashboard mode (mirroring the LCD):

An expandable "SD Files" tray (similar to Run Preview) sits right below or above the virtual LCD screen.
It lists all files and folders on the card with their file sizes.
Each row provides a Download link and a View button.
If the card isn't inserted or mounted, it displays "SD Card not mounted".

VB Code & Project Configuration

Zero-Code Default: If a project contains both a WiFi, WebServer, and SDCard control, SD downloads work automatically.
WebServer Property Setting: An optional property in the WebServer inspector:
Allow SD Downloads: True / False (default: True when SDCard exists).


Optional VB Helper:

WebServer1.SendSDFile "logs/day1.csv" — lets custom WebServer1_Request() handlers serve files programmatically.

Simulator & Run Preview Parity

In Run Preview:

The simulated web page (Open web page) serves virtual SD files from memory (api.sd).Clicking /sd/weather.csv in the simulated browser triggers a standard browser download using a Blob, exactly matching physical hardware.

Peter
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 95
Posted: 02:47am 30 Nov 2026
Copy link to clipboard 
Print this post

Batteryman- I got a chance to look at BASICBASIC Studio that you mentioned.  This is also interesting!  What does this do?, is it a web based VB web app builder? Sorry if I'm a bit slow on the uptake- I'm a hardware guy mostly.

The VT100 terminal is quite interesting for my needs.  How would someone use it, is the functionality internal or do I point it at my Terminal Emulator (like Teraterm?) or something like Realterm with an API interface?

My recommendations for further exploration of MMBASIC's built in library are just swags and ideas to explore.  My intent was to recommend that you engage with Peter Mather, Geoff Graham or others in the forum about how this might be done.  C Subs may not have any intersection.

Take care and thanks for some interesting vectors to explore.
John Wettroth
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 03:25am 30 Nov 2026
Copy link to clipboard 
Print this post

Good morning gents -

Just like John I am impressed from and interested in BBVDS too after a first look.

I could see good use running GUI apps on my Android tablet.

Is this DS not public (yet) ? I have not found infos on the web after a quick search.
Is it meant to be or ever become freeware ?
To which extent is MMBasic embedded and functional ? Which version is used ?
By now there is no option to install as browser app locally for Android - would you consider to add ?

As a first app idea: I would like to use it as graphical data logger using serial data streams from an open BT socket or from an USB(OTG) UART, is the access to these streams possible or just limited to web serial

Lots of questions - tnx for answering if you like to.

Best regards: Thomas
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 11:57am 30 Nov 2026
Copy link to clipboard 
Print this post

jwettroth

Hi john,

BBVDS is a simple copy of RealBasic or VB5/6 that i use to make desktop apps. I test the web app using 'Test In Browser' and if all looks good and it works, i then click 'Build' button. This opens a dialog for me to select MacOS, Linux or Windows OS. The build uses 'electron build' app to create a stand alone executable local app on your computer. If anyone wants to use this they can and I will create a new TOPIC in the bachshed.com forum

@tom_g

BBVDS is available free online as its a personal project that has evolved over time!  
MMBASIC is not embedded at all, it just connects as a VT100 terminal to your MCU via web serial. MMedit and possibly other apps are now used, I just needed it back in the early days!
It can be run locally by using 'electron build' this is quite a task, I could build it and make it available as a .zip download?
With regards to datalogging, the limitiations are within the browser (security vulnerabilities), If you send me more about how you want you data logger to look like and maybe basic Pseudo code, i'll add it to the requirements list.  



The VT100 terminal (its like Tera Term or Terminal etc) is what i used in the early days when i wanted to connect to the PIC32MX170F256B running MMBASIC. In the 'Examples' at the to right hand of screen, select VT100 which opens the project into the designer. When you run the VT100 example in the Studio (click 'Test In Browser'), a new tab will open in your browser that is now running the web app. select the 'connect' menu item and if your MCU device is connected (USB - Serial), then the USB device should show up in the browsers permissions 'Block or Allow' balloon bubble dialog! I click allow and you are hopefully connected to MMBASIC. You may not see the MMBASIC copyright start up message as this would have been sent out when your MCU is first connected to the USB port. You can build this as a stand alone app if you wish.

I shall reach out to Geoff Graham, Peter Mather and others that contribute to MMBASIC development about this,but I shall generate MMBASIC code instead of C subs (for now at least).
I done some research on this, I've looked at the MMBASIC Native GUI Control Visual Specifications (GUI.c) etc which i can use to draw the graphics in the designer and simulation run (if I'm allowed to use). The graphics should match what you see on MMBASIC run. I will create a separate web app for this but it will be a copy of the ESP32 but the transpiler will do MMBASIC generated output and if your device is connected during design time, you can click 'XMODEM' to send direct to your MCU.


Let me know more about what you need/want and if i can i shall 'try' and add to existing or create a new project.

I've recently semi retired, so the garden looks good now, house painted, new windows fitted in back and helping a friend with the wiring loom on his 'Rickman Ranger' kit car. So as winter is now keeping me inside, I like to keep the brain going by sharing projects that up until now I have kept as a personal homebrew hobby!

Peter

ESP32 LCD Visual Design Studio
BBVDS (will put on a new topic if anyone wishes me carry on with it)
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 95
Posted: 05:36pm 30 Nov 2026
Copy link to clipboard 
Print this post

Peter- thanks very much for the explanation of BB.  That's fascinating.  I still try to use VB6 and its getting pretty creaky.  I'll play with these things.  I'd be happy to alpha/beta test things on the MMBASIC graphics front.

I'm retired since ten years ago, I'm active outside in the summer (boats) but do a lot of hacking in my shop in the winter.  I'm somewhat obsessive and get into these projects and can't let go until I get them figured out.

My software skills kind of stopped at straight C.  AI is a potential savior but I'm not quite there.  What a fun time to be a hacker!

Enjoy.  You can PM me if you want me to look at anything.  I check this board irregularly usually when I'm fighting a problem.

Take care and
John Wettroth
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 05:55pm 30 Nov 2026
Copy link to clipboard 
Print this post

Hi John,

Thanks for offering to test the MMBASIC studio when its ready! i copied my ESP32 designer and changed the UI to match what i think would be suitable for MMBASIC LCD design. I had a good look at the GUI.c to get the exact graphic image to show in the designer canvas. So far ive converted to JSON and it seems to work in the studio, ive not tested the output generated MMBASIC on any hardware yet.

If Geoff Graham and Peter Mather are ok with this,then ill upload to my hosting site.





The output then generates the MMBASIC to create this on your LCD.



' Generated by MMBasic LCD Designer — native MMBasic GUI controls
' Target: PicoMite 2 (RP2350)
' Display: ILI9488 — 480 x 320
' Before RUN, allocate controls at the MMBasic prompt: OPTION GUI CONTROLS 22
' Configure ILI9488 and touch with OPTION LCDPANEL / OPTION TOUCH for your wiring.

GUI DELETE ALL
COLOUR RGB(WHITE), RGB(BLACK)
FONT 2, 1
CLS RGB(BLACK)

' ---------------- Page 1 ----------------
GUI SETUP 1
GUI FRAME #1, "PROCESS CONTROL", 12, 12, 456, 296, RGB(WHITE)
GUI GAUGE #2, 128, 135, 86, RGB(WHITE), RGB(BLACK), 0, 100, 1, "%", RGB(GREEN), 60, RGB(YELLOW), 80, RGB(RED), 95, RGB(MAGENTA)
GUI LED #3, "Running", 285, 63, 30, RGB(GREEN)
GUI SWITCH #4, "ON|OFF", 270, 90, 140, 50, RGB(WHITE), RGB(BLUE)
GUI BUTTON #5, "START|STOP", 270, 150, 140, 50, RGB(WHITE), RGB(BLUE)
GUI CHECKBOX #6, "Auto mode", 270, 210, 30, RGB(WHITE)
GUI RADIO #7, "Man", 284, 268, 14, RGB(CYAN)
GUI RADIO #8, "Auto", 374, 268, 14, RGB(CYAN)

' ---------------- Page 2 ----------------
GUI SETUP 2
GUI FRAME #9, "DATA ENTRY", 40, 35, 400, 250, RGB(WHITE)
GUI TEXTBOX #10, 80, 80, 180, 44, RGB(WHITE), RGB(BLACK)
GUI NUMBERBOX #11, 80, 140, 140, 44, RGB(WHITE), RGB(BLACK)
GUI DISPLAYBOX #12, 80, 200, 180, 44, RGB(WHITE), RGB(BLACK)

' Initial values and states
CtrlVal(#2) = 42.5
CtrlVal(#3) = 1
CtrlVal(#4) = 0
CtrlVal(#6) = 1
CtrlVal(#7) = 0
CtrlVal(#8) = 1
CtrlVal(#10) = "PicoMite"
CtrlVal(#11) = 123.5
CtrlVal(#12) = "Ready"

GUI PAGE 1
GUI INTERRUPT GuiTouchDown, GuiTouchUp

DO
 PAUSE 50
LOOP

SUB GuiTouchDown
 SELECT CASE TOUCH(REF)
   CASE 3
     RunningLed_Down
   CASE 4
     RunSwitch_Down
   CASE 5
     StartButton_Down
   CASE 6
     AutoCheck_Down
   CASE 7
     ManualRadio_Down
   CASE 8
     AutoRadio_Down
   CASE 10
     NameText_Down
   CASE 11
     SetpointNumber_Down
   CASE 12
     StatusDisplay_Down
 END SELECT
END SUB

SUB GuiTouchUp
 SELECT CASE TOUCH(LASTREF)
   CASE 3
     RunningLed_Up
   CASE 4
     RunSwitch_Up
   CASE 5
     StartButton_Up
   CASE 6
     AutoCheck_Up
   CASE 7
     ManualRadio_Up
   CASE 8
     AutoRadio_Up
   CASE 10
     NameText_Up
   CASE 11
     SetpointNumber_Up
   CASE 12
     StatusDisplay_Up
 END SELECT
END SUB

SUB RunningLed_Down
 LOCAL value AS INTEGER
 value = CtrlVal(#3)
 ' Add native MMBasic statements here.
END SUB

SUB RunningLed_Up
 LOCAL value AS INTEGER
 value = CtrlVal(#3)
 ' Add native MMBasic statements here.
END SUB

SUB RunSwitch_Down
 LOCAL value AS INTEGER
 value = CtrlVal(#4)
 ' Add native MMBasic statements here.
END SUB

SUB RunSwitch_Up
 LOCAL value AS INTEGER
 value = CtrlVal(#4)
 ' Add native MMBasic statements here.
END SUB

SUB StartButton_Down
 LOCAL value AS INTEGER
 value = CtrlVal(#5)
 ' Add native MMBasic statements here.
END SUB

SUB StartButton_Up
 LOCAL value AS INTEGER
 value = CtrlVal(#5)
 ' Add native MMBasic statements here.
END SUB

SUB AutoCheck_Down
 LOCAL value AS INTEGER
 value = CtrlVal(#6)
 ' Add native MMBasic statements here.
END SUB

SUB AutoCheck_Up
 LOCAL value AS INTEGER
 value = CtrlVal(#6)
 ' Add native MMBasic statements here.
END SUB

SUB ManualRadio_Down
 LOCAL value AS INTEGER
 value = CtrlVal(#7)
 ' Add native MMBasic statements here.
END SUB

SUB ManualRadio_Up
 LOCAL value AS INTEGER
 value = CtrlVal(#7)
 ' Add native MMBasic statements here.
END SUB

SUB AutoRadio_Down
 LOCAL value AS INTEGER
 value = CtrlVal(#8)
 ' Add native MMBasic statements here.
END SUB

SUB AutoRadio_Up
 LOCAL value AS INTEGER
 value = CtrlVal(#8)
 ' Add native MMBasic statements here.
END SUB

SUB NameText_Down
 LOCAL value$
 value$ = CtrlVal(#10)
 ' Add native MMBasic statements here.
END SUB

SUB NameText_Up
 LOCAL value$
 value$ = CtrlVal(#10)
 ' Add native MMBasic statements here.
END SUB

SUB SetpointNumber_Down
 LOCAL value AS FLOAT
 value = CtrlVal(#11)
 ' Add native MMBasic statements here.
END SUB

SUB SetpointNumber_Up
 LOCAL value AS FLOAT
 value = CtrlVal(#11)
 ' Add native MMBasic statements here.
END SUB

SUB StatusDisplay_Down
 LOCAL value$
 value$ = CtrlVal(#12)
 ' Add native MMBasic statements here.
END SUB

SUB StatusDisplay_Up
 LOCAL value$
 value$ = CtrlVal(#12)
 ' Add native MMBasic statements here.
END SUB





Peter
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 07:59pm 30 Nov 2026
Copy link to clipboard 
Print this post

Peter,

thank you for clarifying.

Before wanting to explore further and specifying a possible logging functionality, I must be able to use web serial, it being the only bridge from within BBVDS to the external world as far as I understand at the stage BBVDS app actually is.

I am using Android and definitely want to stick with the Brave browser. I was not able to connect the USB-UART-bridge (CP2102) through the Brave browser, nor through the Chrome browser.
Other apps however are able to identify the bridge (Serial USB terminal, WebSerial USB, TCPUART) all these apps do work seamlessly with the bridge)

The problem seems to be caused by missing or wrongly configured permissions within the browsers. Any attempt to change related settings failed.

Another issue seems to be access to the audio source (mic), your provided spectral analyser example has not worked for me. (Beeping however did work)

So for now I am stuck.

Any hints are welcome, thank you !

Have a good evening.

Best regards: Thomas
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 08:06pm 30 Nov 2026
Copy link to clipboard 
Print this post

Thanks Thomas,

I'll look into the brave browser and see what I can do. I initially found that Firefox was not happy, so I test everything in that now! So I'll try brave on my android phone to see what I can do, I'll add brave to my testing browser from now on.

Rs

Peter
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 08:15pm 30 Nov 2026
Copy link to clipboard 
Print this post

  Batteryman said  Thanks Thomas,

I'll look into the brave browser and see what I can do. I initially found that Firefox was not happy, so I test everything in that now! So I'll try brave on my android phone to see what I can do, I'll add brave to my testing browser from now on.

Rs

Peter



Peter,
very much appreciated !

73 from Thomas
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 07:29am 01 Dec 2026
Copy link to clipboard 
Print this post

Peter,

I fear that probably one or both of my components

Android 13; Build/TP1A.220624.014
Brave 1.100.59, Chromium 158.0.8127.92

running on a Galaxy S6 lite
are still unable to use web serial

brave://device-log
finds the device but the platform needs to be built using SDK37...  





WebUSB is not able to fully connect, too, but the browser responds at least with interface selection panel and permission queries
https://larsgk.github.io/webusb-tester/





I will test with Chrome browser and report again.

Have agood day, best, Thomas
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 07:43am 01 Dec 2026
Copy link to clipboard 
Print this post

Peter,

chrome://device-log
response is the same as with Brave

so the issue is probably related to my Android version ?

Best: Thomas
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 08:05am 01 Dec 2026
Copy link to clipboard 
Print this post

Peter,

just a thought in order to bypass my Web serial problems here :
would it be possible to implement TCP sockets into BBVDS ?

Benefit would be flexibility, using third party comms bridges, examples among the many existent: (Communication bridge pro,BT/TCP bridge,TCPUART...)

Best, Thomas
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 09:46am 01 Dec 2026
Copy link to clipboard 
Print this post

Hi Thomas,

https://larsgk.github.io/webusb-tester/ has provided 'ultra intelligence' for me! It shows that the OTG is OK, device is getting power and is detected. The issue I'm looking at is setting your security flags in Brave and Chrome.

I write most of my backshed responses in a simple text editor and then copy and paste in the post here.

I'll send you a try it homework to see if that works, but don't update anything yet.

Rs

Peter
 
Batteryman
Newbie

Joined: 05/04/2016
Location: United Kingdom
Posts: 32
Posted: 11:54am 01 Dec 2026
Copy link to clipboard 
Print this post

Thomas, try the following, if you haven't already!

Step A: Enable the flag in the browser


In the address bar, type:

brave://flags


(or chrome://flags if testing in Chrome)


In the search box at the top, type: serial


Look for #enable-web-serial-on-android (or Web Serial API).


Change the dropdown from Default to Enabled.


Tap the blue Relaunch button that appears at the bottom of the screen.




Step B: Disable Brave Shields for your site



Brave's fingerprinting shield aggressively blocks hardware access:


Load the app (https://basicbasicvds.prontogwyn.site).


Tap the Brave Lion icon in the address bar.


Toggle the shield OFF (down) for the site.




Step C: Tap a button to request the port



On Android, the security model requires a direct physical screen touch:


Tap the button in your app that runs Serial1.RequestPort.


If the flag is active, Android will pop up a system dialog:

"Allow BasicBasic VDS to access CP2102 USB to UART Bridge Controller?" → Tap OK.


If this does not work or you cannot change the flag etc, ill look into the Communication bridge pro,BT/TCP bridge,TCPUART suggestion!


Peter
 
tom_g
Newbie

Joined: 21/02/2023
Location: Switzerland
Posts: 40
Posted: 04:39pm 01 Dec 2026
Copy link to clipboard 
Print this post

Hi Peter,

thanks so much for your effort to help.

In Brave, the referred flag is not present.
In Chrome, I found it and set it, however without success in BBVDS. Then I updated Chrome and did not find the referred flag any more ...

I have only continued to explore the features in BBVDS after giving up Web Serial (in my  present environment, Android Brave...)

- with much joy I have found that Web Socket is already in, great.

Can you acknowledge that they work exclusively in slave mode ?

I can establish a TCP connection between BBVDS and an external app (TCP UART, which can be set to either server or slave), with TCP UART I can successfully connect via USB OTG to a CP2102 USB-UART HW-bridge, but have not yet observed the payload throughput when trying to send from BBVDS. But I think I am near.

And I am looking forward with WebSock to being able to use an external app TCP/BT bridge (BT/TCP Bridge 12.2) connecting to HC-05/Pico zeros (my favourite tiny RP2040 controller.

I hope I can report success in todays later evening.

In the meantime with best regards, Thomas
 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026