Search found 2682 matches

by Roberthh
Tue May 04, 2021 6:20 am
Forum: Raspberry Pi microcontroller boards
Topic: How do I read keyboard input without waiting for the user to press Enter?
Replies: 9
Views: 1604

Re: How do I read keyboard input without waiting for the user to press Enter?

It may as well be that the character is not sent from the PC until you push enter. Which terminal program do you use to connect to the Pi Pico, and how is it configured, I use sys.stdin.read() in my on-board editor for exactly reading character key by key. (see https://github.com/robert-hh/Micropyth...
by Roberthh
Mon May 03, 2021 7:46 pm
Forum: Raspberry Pi microcontroller boards
Topic: Identifying a special Pico
Replies: 9
Views: 1673

Re: Identifying a special Pico

The PR has been merged and should be accessible latest tomorrow in the daily build. Devices are visible then is /dev/serial/by-id e.g. as

usb-MicroPython_Board_in_FS_mode_e66058388340512e-if00

with e66058388340512e being the number returned by machine.unique_id()
by Roberthh
Mon May 03, 2021 6:19 pm
Forum: ESP32 boards
Topic: ESP32 and ADC class - pin numbering scheme?
Replies: 3
Views: 386

Re: ESP32 and ADC class - pin numbering scheme?

It' sup to the board designers which ESP32 pin they expose to the board's pins. If they use for instance the espressif Wroom or Wrover module, then GPIO37 and 38 are not accessible outside theses modules.
by Roberthh
Mon May 03, 2021 2:27 pm
Forum: ESP32 boards
Topic: ESP32 and ADC class - pin numbering scheme?
Replies: 3
Views: 386

Re: ESP32 and ADC class - pin numbering scheme?

Micropython uses the GPIO numbers.
by Roberthh
Sun May 02, 2021 6:40 pm
Forum: Raspberry Pi microcontroller boards
Topic: Hard hang on accessing the filesystem
Replies: 3
Views: 1667

Re: Hard hang on accessing the filesystem

Please let the title of that isseu start with 'rp2:', which makes it better visible. You can edit the title.
by Roberthh
Sun May 02, 2021 7:25 am
Forum: ESP8266 boards
Topic: ImportError: no module named 'urequests'
Replies: 3
Views: 1730

Re: ImportError: no module named 'urequests'

I do not us uPyCraft, so I do not know if it has an option to upload files to the board. Other tools to do so are e.g.
- rshell
- ampy
- pyboard.py
- thonny
by Roberthh
Sun May 02, 2021 7:20 am
Forum: General Discussion and Questions
Topic: input pin level is reversed somehow??
Replies: 6
Views: 1686

Re: input pin level is reversed somehow??

The pins X9, X10, Y9 and Y10 have a physically wired pull-up resistor on the board supporting it's use for I2C. This pull-up cannot be overridden by the MCU internal PULL_DOWN, simply because the driving strength of the internal resistor is way lower. It will bring down the voltage at the pin only f...
by Roberthh
Sat May 01, 2021 7:58 pm
Forum: ESP8266 boards
Topic: ImportError: no module named 'urequests'
Replies: 3
Views: 1730

Re: ImportError: no module named 'urequests'

The 1M firmware does not include urequests by default. You can add it manually to your file system by copying in this file: into the directory lib: https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py You may also need this one into a directory called lib/urllib.urequest...
by Roberthh
Sat May 01, 2021 7:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: Hard hang on accessing the filesystem
Replies: 3
Views: 1667

Re: Hard hang on accessing the filesystem

I can replicate that with the my own build, using the script below based on the script in the cited forum: from machine import Pin, Timer import uos, time led = Pin(25, Pin.OUT) timer = Timer() count = 0 f = open("afile", "w") f.write("This is a file\n") f.close() def blink(timer): global count; cou...
by Roberthh
Sat May 01, 2021 6:14 pm
Forum: General Discussion and Questions
Topic: input pin level is reversed somehow??
Replies: 6
Views: 1686

Re: input pin level is reversed somehow??

About the IRQ: Pin Y9 has an external pull-up resistor of 4.7kOhm. The internal pulls have a value of about 40k. So whatever pull you set, the input level is high, when you set it to input mode. Connecting it to Vcc does not change the level, and therefore the IRQ does not fire. If you connect Y9 to...