Search found 10 matches
- Thu Dec 02, 2021 11:44 am
- Forum: ESP32 boards
- Topic: MicroPython and PostgreSQL
- Replies: 4
- Views: 2780
Re: MicroPython and PostgreSQL
You may want to look into https://github.com/mevdschee/php-crud-api yes, its a full blown API for databases. If you just need to insert data from MCU into Database- create quite simple PHP (or whatever language works for you) server side script. I have PHP scrip that accept parameters for temperatur...
- Wed Dec 01, 2021 8:55 pm
- Forum: General Discussion and Questions
- Topic: Location is directory or file
- Replies: 3
- Views: 1739
Re: Location is directory or file
Google? never heard of it :shock: This is what i came up with: def file_exists(path): try: f = open(path, "r") f.close() return True except OSError: return False def dir_exists(path): try: if os.stat(path)[0] & 0x4000: return True else: return False except OSError: return False Thanks for pointing m...
- Wed Dec 01, 2021 7:59 pm
- Forum: General Discussion and Questions
- Topic: Location is directory or file
- Replies: 3
- Views: 1739
Location is directory or file
Hello
What are my options to know, is location exists, is it a file or directory ?
What are my options to know, is location exists, is it a file or directory ?
- Thu Oct 21, 2021 5:51 am
- Forum: General Discussion and Questions
- Topic: Install Micropython on an esp 32
- Replies: 0
- Views: 811
Re: Install Micropython on an esp 32
Install required drivers for USB-To-TTL (CP2101 or drivers for CH340 if you have this chip)
Then, from start menu open application Device manager and look into section Ports (COM & LPT) and youll find your COM port number. In my case my boards work on COM3 and COM6 ports
Then, from start menu open application Device manager and look into section Ports (COM & LPT) and youll find your COM port number. In my case my boards work on COM3 and COM6 ports
- Thu Oct 21, 2021 5:28 am
- Forum: General Discussion and Questions
- Topic: Virtual ESP32 Simulator on MicroPython - Feedback please
- Replies: 4
- Views: 3454
Re: Virtual ESP32 Simulator on MicroPython - Feedback please
Hello I would like to ask you for specific code examples that fail so that we can reproduce and look into it. import machine print("Hello, now i'm going to sleep for 1 msec and continue...") machine.lightsleep(1) # it sleeps here 1 milisecond print("I'm continuing my stuff after sleep") # never prin...
- Tue Oct 19, 2021 4:43 pm
- Forum: General Discussion and Questions
- Topic: Virtual ESP32 Simulator on MicroPython - Feedback please
- Replies: 4
- Views: 3454
Re: Virtual ESP32 Simulator on MicroPython - Feedback please
I gave it a spin. It looks like it's most complete micropython simulator available. It's really impressive solution!! My target platform is ESP32, and lightsleep / deepsleep functionality just does not work as expected. Simulation hangs on those commands. I saw you support ili9341, so wish to see LV...
- Tue Aug 10, 2021 9:57 am
- Forum: ESP32 boards
- Topic: IO0 and EN needed to flash ESP32
- Replies: 2
- Views: 1547
Re: IO0 and EN needed to flash ESP32
ESP-CAM is also requires some pins to be shorted to burn firmware into MCU, so i presume it could be the same on ESP-S2 bare module.
- Mon Aug 09, 2021 12:57 pm
- Forum: ESP32 boards
- Topic: Building a webserver on ESP32 using MicroPython
- Replies: 3
- Views: 1760
Re: Building a webserver on ESP32 using MicroPython
... I also tried by writing like this: addr = socket.getaddrinfo(("0,0,0,0",80)) But the result was same. I do not understand what is the required another positional argument. So I want advice or feedback to solve this issue. You have to many parenthesis ( and ) symbol in declaration. Also, IP sepa...
- Fri Aug 21, 2020 9:56 am
- Forum: ESP32 boards
- Topic: GPIO wakeup enable
- Replies: 6
- Views: 3715
Re: GPIO wakeup enable
This works for me to wake up from deepsleep, transmit message, and go sleep again. btn1 and btn2 are reed switch positions (magnet close to reed or far). This way my board sleeps all time possible and only wakes up when magnet position changes. My if...elseif...else statements maybe can help you wit...
- Fri Aug 21, 2020 9:25 am
- Forum: ESP32 boards
- Topic: machine.lightsleep() makes my ILI9341 display dead
- Replies: 1
- Views: 1113
machine.lightsleep() makes my ILI9341 display dead
Hello I'm playin' around with ILI9341 screen and trying to build simple environmental sensor battery powered so i wish to use sleep. Light sleep at first, later i'll work on deepsleep Simplified code: from ili934x import ILI9341 # , color565 from machine import Pin, SPI, lightsleep import config as ...