Search found 360 matches

by scruss
Thu Jan 11, 2024 3:44 pm
Forum: General Discussion and Questions
Topic: The ntptime module documenation is confusing?
Replies: 3
Views: 98652

Re: The ntptime module documenation is confusing?

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: Reference https://mpython.readthedocs.io/en/master/library/micropython/ntptime.html ... is not the official library, an...
by scruss
Tue May 02, 2023 11:23 pm
Forum: Drivers for External Components
Topic: Micropython library for the TI INA219 voltage/current sensor
Replies: 26
Views: 161905

Re: Micropython library for the TI INA219 voltage/current sensor

jcf wrote:
Tue May 02, 2023 9:47 am
Maybe I should have started a new topic...
best on GitHub Discussions, since this forum is moribund
by scruss
Fri Oct 28, 2022 5:54 pm
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 39479

Re: Two buttons on the Pico W

It's great when things get worked out. Here's your code for posterity, in code tags and reformatted using black: # Program for working with two buttons. # Date: october 2022 # Creat : Wim van der Leek with help from a menber of raspberrystore.nl import machine from machine import Pin import time # O...
by scruss
Wed Oct 19, 2022 4:06 pm
Forum: Other Boards
Topic: Pycom F01 H7 - STM32H7 MCU + WiFi + BLE + LoRa + LTE-M
Replies: 1
Views: 23080

Re: Pycom F01 H7 - STM32H7 MCU + WiFi + BLE + LoRa + LTE-M

Sadly, Pycom are in administration (~= bankrupt, assets for sale), and the F01 will likely never reach the market.

(via Discussions)
by scruss
Sat Oct 08, 2022 6:26 pm
Forum: Raspberry Pi microcontroller boards
Topic: Great Lesson, don't mess up with main.py
Replies: 4
Views: 29635

Re: Great Lesson, don't mess up with main.py

Please use Github Discussions - this site is no longer read by people who know what they're doing.

There's no substitute for backups, but MicroPython_RenameMainDotPy.uf2 can often get your files back
by scruss
Sat Oct 08, 2022 5:35 pm
Forum: MicroPython pyboard
Topic: Sd card file error when using I2C 2
Replies: 2
Views: 38588

Re: Sd card file error when using I2C 2

Please use Github Discussions - this site is no longer read by people who know what they're doing.

Without the code, how can we tell what's going wrong?

If you have the SD card mounted as USB storage on your computer, that can cause corruption and is not recommended.
by scruss
Thu Oct 06, 2022 2:14 pm
Forum: General Discussion and Questions
Topic: urequests
Replies: 3
Views: 32909

Re: urequests

I think you'd have to build it from source, which isn't particularly easy. Roberto hasn't touched these builds in a while. Are you sure you need double precision? Remember, these are microcontrollers here. Everything is constrained. To free up memory, call res.close() after you're done with a reques...
by scruss
Tue Sep 27, 2022 4:40 pm
Forum: Raspberry Pi microcontroller boards
Topic: Strange behaviour with Thonny/standalone
Replies: 3
Views: 33497

Re: Strange behaviour with Thonny/standalone

(this forum is going read-only soon. If you're not happy using Discussions · micropython on github, maybe re-ask on MicroPython - Raspberry Pi Forums ) Thonny quietly sets the Pico's system clock on connection. In standalone mode, this doesn't happen. Maybe your MQTT broker is expecting a mostly-cor...
by scruss
Wed Sep 21, 2022 11:51 pm
Forum: Raspberry Pi microcontroller boards
Topic: help function for bm180
Replies: 3
Views: 29811

Re: help function for bm180

what are you trying to do? learn about configuring sensors and developing support modules, or get results out of those sensors? If the latter, there are a couple of modules on Awesome MicroPython that might help. This one looks the most current: octaprog7/BMP180: MicroPython module for BMP180 pressu...