Quantcast
Channel: MicroPython Forum (Archive)
Browsing latest articles
Browse All 40 View Live

Programs, Libraries and Tools • Re: Abstract class in MicroPython

Class name:Phylumclass MyClass: i=123 def f(self): print("correct")Statistics: Posted by Jackli — Thu May 25, 2023 8:17 am

View Article


ESP32 boards • Re: ESP32: get which EXT1 pin caused wake

Just wondered if anyone had tested this with lightsleep() and/or on an ESP32S3?I am having some difficulty using gpios to wake from light sleep and call the irq() callback associated with the...

View Article


General Discussion and Questions • Re: Properly checking for errors during a...

esp32/network_wlan: Fix network.WLAN.status().https://github.com/micropython/micropython/pull/12932status() can return STAT_NO_AP_FOUND and STAT_WRONG_PASSWORD.This allows users to set the correct...

View Article

ESP8266 boards • Re: Has anyone had success?

pythoncoder wrote: ↑Tue Jan 03, 2017 8:08 amIs there an issue with the D1 Mini Pro? The D1 Mini works fine and is widely used. Alas I don't have a Pro: has anyone managed to run MicroPython on...

View Article

ESP8266 boards • Re: Flashing micropython on Wemos D1 Mini Pro

When I saw you post first in the discussion forum, I tried to build & load the ESP8266 firmware for a Wemos D1 mini. It worked as expected. Are you sure that you flashed the firmware with the...

View Article


Other Boards • Re: STM32 F7 Discovery

Hi,Is there a way for update the firmware... There isn't uasyncio for example...I bought the discovery H7... I wil try to adapt this firmware... If someone has an advise....Thanks.Statistics: Posted...

View Article

ESP32 boards • Re: Waveshare e-paper display how to rotate?

??? Sorry but, I really couldn't understand this thread.Rotating a frame buffer is as simple as (or I am missing something?):CODE: import framebufdef bufrotate(fb, w, h, defaultcolor=1): rotatebuf =...

View Article

MicroPython pyboard • Re: UART IRQ/Callbacks and Class Example

pythoncoder wrote: ↑Tue Feb 20, 2018 6:07 amdonikuy wrote: ↑Mon Feb 19, 2018 1:58 pm...Documentation indicates that irq is available...I don't know where you found that. The official docs have no...

View Article


General Discussion and Questions • Re: UART IRQ

danielm wrote: ↑Wed Mar 02, 2016 9:33 pmIt seems that interrupt function is called with UART class parameter, on which I can call function any() ( it does not work with read() ).CODE: >>> def...

View Article


General Discussion and Questions • Re: The ntptime module documenation is...

Hey - this is an old question on an almost-closed forum. But it's still showing up in search results and perhaps confusing users.The link given by the OP as the NTP documentation:Jibun no kage wrote:...

View Article

General Discussion and Questions • Re: Benchmark comparison of MicroPython...

Raspberry Pi Pico W w7 RP2040 @ 125 MHzPystone (1.2) time for 500 passes = 384 msThis machine benchmarks at 1302 pystones/second.Statistics: Posted by ckuehnel — Fri Mar 01, 2024 2:24 pm

View Article

Other Boards • Re: Micropython Unix port on Raspberry Pi - I2C/SPI?

I did this a few months ago for a personal project: https://github.com/AsensioL/smbus2/blob ... /smbus2.pyI only recently got a chance to upload it.Check the last 2 commits. In the most recent one I...

View Article

MicroPython pyboard • Re: ssd1306 OSError: I2C operation not supported

I2C was right, don't use pyb. The real reason for the error is confusing softI2C with hardware I2C. When you specify an I2C number (which i2c controller to use), then you are implicitly specifying it...

View Article


Other Boards • Re: asynchronous buffered SPI Slave interface

kbrafford wrote: ↑Thu Feb 22, 2018 12:59 amI need to implement a SPI slave capability that works in the following way:1) You set up your SPI port as a slave, with the polarity and phase of your...

View Article

General Discussion and Questions • Re: Using machine Pin class no way to get...

I could not get those to work, I wrote the following function:def extract_gpio_pin(pin_struct): # Use a regular expression to find the GPIO number in the pin struct since .id() and .pin() don't work...

View Article


Pyboard D-series • Re: Overflow in time.localtime()

HelloI have get exatcly the same issue on NUCLEO-WB55 :CODE: MicroPython v1.22.2 on 2024-02-22; NUCLEO-WB55 with STM32WB55RGV6Type "help()" for more information.>>> from time import...

View Article

Raspberry Pi microcontroller boards • Re: Custom board with RP2040 impossible...

Lobo-T wrote: ↑Tue Jul 12, 2022 12:11 pm3) Wrong value for the 27 Ohm series resistors on the USB lines.How precise does the value of the series resistors on the USB lines have to be?Statistics:...

View Article


ESP32 boards • Re: How to generate checksum using micropython?

Reviewing this post years later and I wish I could give a standing ovation haha. That was an impressive analysis on so little input data.Statistics: Posted by BetterAutomations — Sun May 26, 2024 8:06...

View Article

Programs, Libraries and Tools • Re: Having an issue getting the lib for the...

The ENABLE in question is an input to the OLED display. If this input is not high (either by connecting it to a pin which you set to ON, or by using a 10k resistor to the 3.3v power line) the device...

View Article

ESP32 boards • Re: Flash encryption support

Hi Mauro,have you documented how to do it ?I am struggling to resolve all bits.Statistics: Posted by jcolo — Mon Oct 28, 2024 7:58 pm

View Article

Hardware Projects • Re: Larger fonts on SSD1306 OLED displays

If someone is still interested in this topic, here is a solution I came up with....NB: I am using ESP32-WROOM-32, 0.91" OLED 128x32CODE: from machine import SoftI2C, Pinimport timeimport...

View Article


Image may be NSFW.
Clik here to view.

ESP32 boards • Re: Changing from portrait mode to landscape mode with ST7735

Hello,are there any news about an actuell ST7735 Driver with several fonts and fontsizes.RegardsAlexanderStatistics: Posted by Ar-We — Thu Jan 02, 2025 5:48 pm

View Article


Image may be NSFW.
Clik here to view.

MicroPython pyboard • Re: [Q] Programming the pyBoard v1.1 in Arduino IDE?

Now also the RunCPM v6.7 Updatefor the Pyboard v1.1 (STM32)with the onboard SDCard-Slot Get it athttps://github.com/.../GL20250207_RunCP ... yboard.zipStatistics: Posted by guidol — Fri Feb 07, 2025...

View Article

micro:bit boards • Re: File system greater than 30k for V2?

I hit this again while making a clock based on a BBC micro:bit V2. I put a ticket in for the request: GitHub Edge:bit microbit-foundation /micropython-microbit-v2 Increase file system size on V2...

View Article
Browsing latest articles
Browse All 40 View Live