Notifications
Clear all

ESP32 WiFiAccessPoint sketch font is too small.

6 Posts
3 Users
0 Likes
755 Views
(@bob207)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

Hi,

I have just purchased a ESP32 and am going through Bills video about the ESP32. 

I can get a WiFiAccess point with the sketch he uses and turn a led on with my phone but the font is minute.

The relevant lines in the sketch are

client.print("Click <a href=\"/H\">here</a> to turn ON the LED.<br>");
client.print("Click <a href=\"/L\">here</a> to turn OFF the LED.<br>");

and I assume the line I need would be something like 

client.print("<p style=Click to turn ON the LED.\">absolute size - xx-large</p><br>");

but I can't find the right format? can you help?

I can't see how to present this page with sections in code boxes either?

Bob.


   
Quote
(@sj_h1)
Member
Joined: 4 years ago
Posts: 167
 

Could you please link the Bill's ESP32 sketch.

 


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1073
 
Posted by: @bob207

I can't see how to present this page with sections in code boxes either?

I did it for you. Just highlight the code you want to format and press the Code button on the editor, the one that looks like "<>".

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1073
 
Posted by: @sj_h1

Could you please link the Bill's ESP32 sketch.

Even better, why not discuss this in the forum post dedicated to this video & article?

The link to the relevant article with code is in the post.

@bob207 - You're on the right track to changing the font, but the syntax you are using is incorrect.  Check out W3 Schools for assistance with this.

😎

Bill

 

 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
(@bob207)
Member
Joined: 3 years ago
Posts: 16
Topic starter  
 If I highlight part of this sentence, say, just 
the word
lines
and click on <> above, preview shows it puts the whole sentence in a code box and
puts the letters
PRE at the bottom left corner of the box,
if I highlight the word and click on the <> again it all clears from the blue box
and the letters in the bottom left change to P
If I highlight any part again and click on <> above anything
I now type shows in the 'code' box and PRE reappears. I also notice the lines are
not word wrapping.
I think there is a problem with the way my reply box is formatting?

I think I have found the problem. If I go to source code and type after the pre it works fine. The source code is not "building correctly"?

This post was modified 3 years ago by Bob207

   
ReplyQuote
(@bob207)
Member
Joined: 3 years ago
Posts: 16
Topic starter  

I have moved the post to here. 

https://forum.dronebotworkshop.com/2020/using-servo-motors-with-esp32/#post-15442


   
ReplyQuote