Search found 121 matches

by bitninja
Fri Mar 06, 2020 4:39 pm
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 609

Re: Display image on a html page from main.py

All you seem to be doing is dumping your html to the standard output. That is not the same thing as serving a web page to a browser over the network.
by bitninja
Fri Mar 06, 2020 3:36 pm
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 609

Re: Display image on a html page from main.py

ChrisB wrote:
Fri Mar 06, 2020 10:53 am

I don't use a web server...
That's not going to work... you need an http server.
by bitninja
Mon Feb 10, 2020 3:28 am
Forum: ESP8266 boards
Topic: Web server with HTML and CSS
Replies: 2
Views: 683

Re: Web server with HTML and CSS

I haven't had a chance to look at what's available recently... but I have been upgrading to uasyncio 2.0 and did have a script that may help... First you have to install some dependencies... when you get to a REPL prompt and the ESP8266 device is connected to the Internet... import upip upip.install...
by bitninja
Mon Feb 10, 2020 3:09 am
Forum: ESP8266 boards
Topic: led.off() turns it on and vise versa??
Replies: 4
Views: 282

Re: led.off() turns it on and vise versa??

Yeah this caught my attention a while back... so I had to look it up... It's because they wire the LED so that the positive side is connected to power and the negative (drain) is connected to the output pin... so when it goes low (or to GROUND) the LED will light. It's because they can pass more cur...
by bitninja
Fri Dec 20, 2019 10:31 pm
Forum: General Discussion and Questions
Topic: get more free RAM...
Replies: 44
Views: 2402

Learn How To Freeze Your Modules

Hi, I just want to back the notion that freezing modules into the firmware is really a good idea. It's not that difficult and you gain so much. https://www.youtube.com/watch?v=jG7WBY_vmpE While it is really reserved for thoroughly debugged code, the edit-compile-upload cycle is not that convoluted o...
by bitninja
Thu Nov 28, 2019 9:38 am
Forum: ESP8266 boards
Topic: long running webserver not reachable
Replies: 7
Views: 512

Related Question

Is the sleep_type() setting persistent like the connection and debug settings?

ie. You only need to execute the commands once and the ESP8266 remembers the value even after a reboot.
by bitninja
Thu Mar 28, 2019 2:01 am
Forum: General Discussion and Questions
Topic: Target audience for MicroPython?
Replies: 63
Views: 5647

Re: Target audience for MicroPython?

Actually, I DO have tons of fun working with MicroPython...however you would classify me.
by bitninja
Wed Mar 27, 2019 9:48 pm
Forum: General Discussion and Questions
Topic: Target audience for MicroPython?
Replies: 63
Views: 5647

Re: Target audience for MicroPython?

Picasso wrote:
Mon Mar 25, 2019 7:29 pm
Have you ever tried to build micropython on windows? Impossible.
I find this funny because I do it all the time. No not natively, but with a VM running the perfect environment for building my firmware.
by bitninja
Sun Mar 24, 2019 3:41 pm
Forum: Programs, Libraries and Tools
Topic: urandom.randint() replacement?
Replies: 1
Views: 631

Re: urandom.randint() replacement?

Not sure where I found it... :?

Code: Select all

import urandom

def randint(min, max):
    span = max - min + 1
    div = 0x3fffffff // span
    offset = urandom.getrandbits(30) // div
    val = min + offset
    return val
by bitninja
Sat Mar 02, 2019 11:47 pm
Forum: Hardware Projects
Topic: Portable WiFi LED Matrix Marquee
Replies: 0
Views: 721

Portable WiFi LED Matrix Marquee

Just wanted to share my latest MicroPython project...

https://github.com/joewez/WifiMarquee

It's a pretty small application of about 200 lines, but it seemed original and fun to work on.