Search found 5 matches

by hai.nguyen
Wed Apr 06, 2022 6:43 am
Forum: ESP32 boards
Topic: How to get params from webpage?
Replies: 1
Views: 901

How to get params from webpage?

Hi everyone, I set a form in html that inclues 2 text box inputs: ssid and password. After click submit button, a content is received very long as below: b'GET /favicon.ico HTTP/1.1\r\nHost: 192.168.2.112\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/...
by hai.nguyen
Wed Apr 06, 2022 4:40 am
Forum: ESP32 boards
Topic: Automatically esp32 Firmware load time from internet?
Replies: 1
Views: 685

Automatically esp32 Firmware load time from internet?

Hi everyone, I am using esp32-20220404-unstable-v1.18-296-g71344c15f for esp32 devkit . After few minute I setup wifi connect for kit then print localtime, the time is correct with timezone where I live. I wonder the firmware automatically get time from internet or Thonny IDE webrepl support??? Than...
by hai.nguyen
Thu Mar 31, 2022 3:47 am
Forum: ESP32 boards
Topic: Need a function that controls number of beeps
Replies: 3
Views: 1205

Re: Need a function that controls number of beeps

Your program runs very well. Thank you !!! This code should work for you. from machine import Pin, PWM from utime import sleep_ms BUZ_PIN = const(16) def buzzer(n=3, freq=4000): buzzer = PWM(Pin(BUZ_PIN)) buzzer.freq(freq) for _ in range(n): buzzer.duty_u16(1<<15) sleep_ms(500) buzzer.duty_u16(0) sl...
by hai.nguyen
Thu Mar 24, 2022 7:30 am
Forum: ESP32 boards
Topic: ESP32 simulator for Windows
Replies: 2
Views: 1610

Re: ESP32 simulator for Windows

Thank you very much but after installation I can't find where the app is. My os is windows 10
by hai.nguyen
Thu Mar 24, 2022 7:09 am
Forum: ESP32 boards
Topic: Need a function that controls number of beeps
Replies: 3
Views: 1205

Need a function that controls number of beeps

Dear my all friends,
I am new to python on esp32 but I want to write a function :
def beep(n,t)
# n: number of cycles. for Example n = 3 : 3 times of beep
#t: tone. Tone is made by controlling PWM
Please, give me some codes!