How easy or complicated is in ESPBasic to have a instant response slider for your MPDMv4 AC Dimmer Web interface?

Just look at the code below:

let xpv = 0
let PWMpin = 5 
slider x,150,900
timer 500, [set.dimmer]
wprint "<br><br>"
button " Exit ", [TestExit] 

 if x <> xpv then 
   xpv = x
 end if

wprint |<a href="./edit"> Edit</a>|

Yes, it’s all there, plus some extras 🙂

The Power of ESPBasic !

Categories: ESPBasicMPDMv4

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts


ESPBasic – Web Interface – CSS elements example

A quick example on how to change your Web interface GUI objects properties without using a separate CSS file: Reading Humidity and Temperature from a DHT22 Sesor connected to the GPIO5 and also retrieving Date Read more…


ESPBasic Series : Decimal-to-Binary conversion

I was looking a while ago to implement some Decimal-to-Binary conversion subroutine to be used for easy visualisation of the Registry content. Been able to see the values directly binary can help a lot when Read more…


ESPBasic Series – DEC to BCD and BCD to DEC conversions

In the process of working on a new Driver Tutorial for the ESPBasic Series I am looking today to implement some Decimal-to-BCD and BCD-to-Decimal subroutines. What I have done so far: 1. BCD-to-Decimal subroutine: [DEC] Read more…