Search found 5 matches
- Tue Oct 26, 2021 12:25 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: adafruit library on pico
- Replies: 0
- Views: 1204
adafruit library on pico
while i'm still trying to recompile micropython for hashlib with sha1 support (see https://forum.micropython.org/viewtopic.php?f=21&t=11220) i just found out that downloading files from this adafruit library (https://pypi.org/project/adafruit-circuitpython-hashlib/) can let you use sha1 on micropyth...
- Fri Oct 22, 2021 11:50 am
- Forum: Raspberry Pi microcontroller boards
- Topic: How to Send/Receive via Pico USB
- Replies: 2
- Views: 3251
Re: How to Send/Receive via Pico USB
so far i only found this way:
import sys, select
mystring = sys.stdin.buffer.read()
#code to modify the string
select.select([sys.stdout],[],[],0)[0]
sys.stdout.write(modifiedstring)
will the REPL interfere with this? Is it possible to use other interface like the usb_cdc.data in circuitpython?
import sys, select
mystring = sys.stdin.buffer.read()
#code to modify the string
select.select([sys.stdout],[],[],0)[0]
sys.stdout.write(modifiedstring)
will the REPL interfere with this? Is it possible to use other interface like the usb_cdc.data in circuitpython?
- Thu Oct 21, 2021 9:54 am
- Forum: Raspberry Pi microcontroller boards
- Topic: How to Send/Receive via Pico USB
- Replies: 2
- Views: 3251
How to Send/Receive via Pico USB
Hi all, i'm a beginner playing with MP on the Raspberry Pico. In a simple project i need the Pico, attached via USB to the PC, to receive a string, modify the string, and send back the modified string to PC. On the PC i wrote the Python script that sends the string via serial.write to /dev/ttyACM0 O...
- Fri Oct 08, 2021 8:09 am
- Forum: Raspberry Pi microcontroller boards
- Topic: need help to recompile firmware
- Replies: 2
- Views: 1366
Re: need help to recompile firmware
Thanks for the tip, i added #define MICROPY_SSL_AXTLS (1) and did git submodule update --init lib/axtls The compilation works but as you said, it errors out at linking Linking CXX executable firmware.elf /usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/firmware.dir/pico/mic...
- Wed Oct 06, 2021 11:30 am
- Forum: Raspberry Pi microcontroller boards
- Topic: need help to recompile firmware
- Replies: 2
- Views: 1366
need help to recompile firmware
Hi all, i just joined now for suggestions. I have a pico and i'm using the micropython port for rp2 board, trying to use uhashlib.sha1(), but it gives error: module object has no attribute sha1. It seems that the official firmware has only sha256 implemented. I'm trying to compile micropython from s...