Take a look at "microdot" which is a web server for MicroPython. It includes an example that has a web page that lets you control a GPIO pin.
https://github.com/miguelgrinberg/microdot
Search found 2754 matches
- Fri Sep 13, 2019 12:19 pm
- Forum: Programs, Libraries and Tools
- Topic: html to variable
- Replies: 11
- Views: 14208
- Fri Sep 13, 2019 12:16 pm
- Forum: General Discussion and Questions
- Topic: unable to flash micropython to esp 32: open serial error
- Replies: 11
- Views: 14051
Re: unable to flash micropython to esp 32: open serial error
Hi,
Which ESP32 board do you have? It's likely that you need to install drivers for the serial adaptor. That page has instructions for the CP210X but it's possible you need a different driver?
Which ESP32 board do you have? It's likely that you need to install drivers for the serial adaptor. That page has instructions for the CP210X but it's possible you need a different driver?
- Fri Sep 13, 2019 12:12 pm
- Forum: Programs, Libraries and Tools
- Topic: mu editor for micropython
- Replies: 46
- Views: 67303
Re: mu editor for micropython
Does anyone has a solution for this? Do I have to install CircuitPython which is impossible on a LOLIN-board I fear. Hi, Are you using the latest version of Mu? Have you switched it into "ESP MicroPython" mode? (Click the "Mode" button in the top left). I just tested my ESP32 with Mu and it seems t...
- Fri Sep 13, 2019 12:48 am
- Forum: General Discussion and Questions
- Topic: Help Porting minimal to aarch64 armv8
- Replies: 2
- Views: 1768
Re: Help Porting minimal to aarch64 armv8
Hi,
Can I get some more information about what you've done?
Which version and distribution of aarch64-gcc are you using?
Did you set CROSS=1
Did you change CFLAGS_CORTEX_M4 with the relevant settings for a53?
What do you mean by the elf was empty? Like actually a zero byte file?
Can I get some more information about what you've done?
Which version and distribution of aarch64-gcc are you using?
Did you set CROSS=1
Did you change CFLAGS_CORTEX_M4 with the relevant settings for a53?
What do you mean by the elf was empty? Like actually a zero byte file?
- Thu Sep 12, 2019 9:42 pm
- Forum: ESP32 boards
- Topic: bluetooth on esp32
- Replies: 19
- Views: 17321
Re: bluetooth on esp32
https://github.com/micropython/micropython/pull/5051 -- PYBD any day now. ESP32 soon (although we might wait to move to ESP-IDF 4.0).
- Thu Sep 12, 2019 11:42 am
- Forum: MicroPython pyboard
- Topic: Install original windows driver
- Replies: 7
- Views: 9891
Re: Install original windows driver
Just saw this post on Scott Hanselman's blog, might be useful -- https://www.hanselman.com/blog/HowToFix ... ndows.aspx
- Thu Sep 12, 2019 8:43 am
- Forum: General Discussion and Questions
- Topic: Private const() variables aren't defined
- Replies: 8
- Views: 5220
Re: Private const() variables aren't defined
Shouldn't the same explanation apply to this too? If _B="hi" works then I would expect it to work with const too. This optimisation exists purely to save memory - the const() variables starting with underscores don't even exist, their value just gets substituted at compile time. But when you're not...
- Thu Sep 12, 2019 8:26 am
- Forum: MicroPython pyboard
- Topic: SPI hardware NSS
- Replies: 7
- Views: 4629
Re: SPI hardware NSS
Yup, the F405 ref manual.
- Thu Sep 12, 2019 6:42 am
- Forum: General Discussion and Questions
- Topic: Private const() variables aren't defined
- Replies: 8
- Views: 5220
Re: Private const() variables aren't defined
This is because you're running this in the REPL. There's a neat optimisation that MicroPython does to save memory based on hte convention that variables starting with _ are "private". So they will only apply to the scope of the current module being compiled. Each statement executed on the REPL kind ...
- Wed Sep 11, 2019 2:01 pm
- Forum: MicroPython pyboard
- Topic: Does pyboard use RTC pin as GPIO
- Replies: 5
- Views: 2954
Re: Does pyboard use RTC pin as GPIO
Are you using HSI or HSE?
Also, which pyboard do you have? I'm guessing that because Pin('PC14') worked, you have PYBLITE1.0?
Also, which pyboard do you have? I'm guessing that because Pin('PC14') worked, you have PYBLITE1.0?