Search found 2754 matches

by jimmo
Tue Nov 19, 2019 4:15 am
Forum: Hardware Projects
Topic: Larger fonts on SSD1306 OLED displays
Replies: 23
Views: 162173

Re: Larger fonts on SSD1306 OLED displays

writer_demo.py uses ssd1306_setup.py which looks like it's written for the Pyboard. You can replace ssd1306_setup.py to use the working code that you already have that creates the i2c and oled instances. My guess with the out of memory error is that freesans.py is too large for the ESP8266 (it's onl...
by jimmo
Mon Nov 18, 2019 9:03 pm
Forum: Programs, Libraries and Tools
Topic: html to variable
Replies: 11
Views: 14201

Re: html to variable

urequests is for sending HTTP requests, so that won't help here.

Did you take a look at microdot? It takes care of this for you. Let us know if we can help you get that set up.
by jimmo
Mon Nov 18, 2019 11:15 am
Forum: General Discussion and Questions
Topic: ESP32: Brownout detection configuration
Replies: 1
Views: 3755

Re: ESP32: Brownout detection configuration

I'm unsure of the current status of the brownout detector on ESP32. There's this comment in the Kconfig file (this is part of the ESP IDF, not MicroPython). config ESP32_BROWNOUT_DET #The brownout detector code is disabled (by making it depend on a nonexisting symbol) because the current #revision o...
by jimmo
Mon Nov 18, 2019 5:10 am
Forum: Programs, Libraries and Tools
Topic: [Solved]Finding errors in porting STM32L4R9IDISC for Micropython programming
Replies: 2
Views: 6426

Re: Finding errors in porting STM32L4R9IDISC for Micropython programming

This is the same board as from https://forum.micropython.org/viewtopic.php?f=3&t=7239 ? I wrote 4 board definition files and 2 linker files. I also added "defined STM32L4R9xx" in dozens of places in the HAL library of L4. I'm surprised you had to modify the HAL (after updating stm32lib to the latest...
by jimmo
Mon Nov 18, 2019 3:02 am
Forum: General Discussion and Questions
Topic: Libraries in MicroPython
Replies: 3
Views: 2067

Re: Libraries in MicroPython

Not currently supported unfortunately.

There is some work already, but there's a lot to be done. Although there's some support currently for 3.x boards, the 4.0 is quite different.

Will be great to see it running one day on the 4.0 though!
by jimmo
Mon Nov 18, 2019 2:27 am
Forum: General Discussion and Questions
Topic: "recover" a ESP8266 (programm loop)
Replies: 1
Views: 1725

Re: "recover" a ESP8266 (programm loop)

You might find this thread useful -- https://forum.micropython.org/viewtopic.php?f=16&t=6677 (it's long but skip ahead to the bit where the filesystem is discussed). In summary you can calculate where exactly the filesystem is, and then it's just a fat12 disk image. Which you can mount on a Linux/Ma...
by jimmo
Mon Nov 18, 2019 2:21 am
Forum: ESP32 boards
Topic: PyPortal, ESP32 and Nina
Replies: 1
Views: 2150

Re: PyPortal, ESP32 and Nina

It might be worth posting the commands you're running (and what their full output is). It does sound like it's not finding the correct path to your bin file. You might get more specific advice on the Adafruit forums -- the pyportal is a CircuitPython device and the nina firmware that runs on the ESP...
by jimmo
Mon Nov 18, 2019 2:17 am
Forum: General Discussion and Questions
Topic: Libraries in MicroPython
Replies: 3
Views: 2067

Re: Libraries in MicroPython

Hi, Yes, many libraries will work unmodified in MicroPython. In some cases (e.g. requests), there are "micro" versions, e.g. urequests (which are either pre-installed on the board, like on ESP32 and ESP8266) or can be installed manually from https://github.com/micropython/micropython-lib/ (either us...
by jimmo
Mon Nov 18, 2019 2:14 am
Forum: Pyboard D-series
Topic: Very peculiar on-off issue with urequests
Replies: 2
Views: 3393

Re: Very peculiar on-off issue with urequests

Wow that is super weird. I don't understand why this would lead to the alternating behavior, but have you confirmed that it's successfully making the wifi connection on every power-up? What does your code that verifies the network connection look like? Edit: it sounds like you're saying that the req...
by jimmo
Mon Nov 18, 2019 2:08 am
Forum: Pyboard D-series
Topic: UART on alternate pins
Replies: 4
Views: 4159

Re: UART on alternate pins

I haven't tested this, but I would imagine that you could also manually switch the pins into the UART AF mode? u = machine.UART(3) machine.Pin.board.Y9.init(mode=machine.Pin.IN) # Reset default TX to hi-z machine.Pin.board.Y10.init(mode=machine.Pin.IN) # Reset default RX to hi-z machine.Pin.cpu.D8.i...