Search found 59 matches

by jomas
Sat Aug 20, 2022 7:05 pm
Forum: Development of MicroPython
Topic: Attempting compile of pico firmware error?
Replies: 5
Views: 21312

Re: Attempting compile of pico firmware error?

These instructions are wrong/incomplete.

Use the instructions from this document https://datasheets.raspberrypi.com/pico ... on-sdk.pdf
Chapter 1.3
by jomas
Sun Aug 14, 2022 4:32 pm
Forum: General Discussion and Questions
Topic: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?
Replies: 18
Views: 24550

Re: ESP01 1M Flash 512 and 1M MicroPython Neither Responds?

Using a different bootloader type, I got the firmware image loaded and it booted. But then got an error in Thonny IDE. But this is progress. MicroPython v1.19.1-229-g579f33050 on 2022-08-02; ESP module (512K) with ESP8266 Type "help()" for more information. ERROR thonny.plugins.micropython.backend:...
by jomas
Mon Jul 25, 2022 7:47 am
Forum: ESP8266 boards
Topic: time.ticks_ms overflow
Replies: 5
Views: 22434

Re: time.ticks_ms overflow

Roberthh wrote:
Mon Jul 25, 2022 5:25 am
The period is 2**30 ms, which is about 298 days.
It is ~298 Hours. Not days.
by jomas
Sat Jul 23, 2022 12:56 pm
Forum: General Discussion and Questions
Topic: Traffic lights with a button interrupt - how would you have done it?
Replies: 12
Views: 8503

Re: Traffic lights with a button interrupt - how would you have done it?

In this example I would define the traffic light always as a couple (tlc) because that is how traffic lights work. So one traffic light couple (tlc) is a light for the pedestrian and one for the traffic. Then it will always follow the same sequence which can be programmed in a simple while loop. No ...
by jomas
Fri Feb 11, 2022 7:39 pm
Forum: Programs, Libraries and Tools
Topic: found a bug in esp8266 wifi
Replies: 8
Views: 3892

Re: found a bug in esp8266 wifi

I think this is how it's supposed to work. The ESP8266 stores its configuration in Flash. For example, in station mode on power up it remembers its WiFi credentials and automatically logs in. I don't believe you can make it "forget" other than by erasing flash. I guess AP mode works similarly. I'm ...
by jomas
Sat Nov 27, 2021 1:18 pm
Forum: Programs, Libraries and Tools
Topic: Websocket client question.
Replies: 3
Views: 4690

Re: Websocket client question.

topovich wrote:
Fri Nov 26, 2021 9:02 pm
I searched A LOT in Google
Are you serious?

When I google for "micropython websocket client", the first hit gives a websocket client for micropython. (And it is a topic from this micropython forum, which you also could have searched for".
by jomas
Sun Nov 21, 2021 10:51 am
Forum: ESP8266 boards
Topic: How to compile firmware?
Replies: 10
Views: 45997

Re: How to compile firmware?

Nice work @bitninja To patch esp-open-sdk you can also apply a patchfile, which is more common. save the following code to a file named esp-open-sdk.patch diff -Naur esp-open-sdk/crosstool-NG/config/companion_libs/expat.in esp-open-sdk.patched/crosstool-NG/config/companion_libs/expat.in --- esp-open...
by jomas
Sun May 02, 2021 12:38 pm
Forum: General Discussion and Questions
Topic: Web server In/out + physical button control via gpio
Replies: 14
Views: 10346

Re: Web server In/out + physical button control via gpio

@pythoncoder, I'm also no expert on webprogramming. But if you look at the link of the arduino code (See TS) all steps are explained. If you convert all these steps to Python code you get something like this. (it just some "dirty" code, uses globals etc.) try: import asyncio except: import uasyncio ...
by jomas
Sat May 01, 2021 11:00 am
Forum: General Discussion and Questions
Topic: Web server In/out + physical button control via gpio
Replies: 14
Views: 10346

Re: Web server In/out + physical button control via gpio

Unfortunately I haven't a clue how to push changes to the client. The "push changes to the client" is implemented in the html code that is served. It is some javascript that uses the function 'setInterval'. The javascript function 'setinterval' will then refresh the page automatically every second....
by jomas
Sun Jun 28, 2020 11:26 am
Forum: ESP8266 boards
Topic: I2C.scan() only returning 1 address in chain
Replies: 7
Views: 4139

Re: I2C.scan() only returning 1 address in chain

Pulled all the jumper wires, swapped them out for different ones. I've been disconnecting the slaves by pulling VCC from them, so the logic lines are still there. Currently it's the GY521 being detected, which is physically 2nd in the chain. Pull power from it & the BMP280 is detected; repower and ...