Search found 5 matches
- Mon Jun 21, 2021 9:58 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Save recorded data to .txt file
- Replies: 3
- Views: 6749
Save recorded data to .txt file
Hi, I'm looking for a way to save data that I have stored into an array on the Raspberry Pi Pico using Thonny into a .txt file on my computer so that I can access it. This is the code I am using: import machine from utime import sleep, ticks_ms, ticks_diff # This code reads the serial data and assig...
- Fri Jun 11, 2021 9:28 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Make a counter
- Replies: 4
- Views: 2424
Re: Make a counter
Hi, so I used your suggestion for the counter code. Thanks! I'm now trying to work out a way to assign the various functions to one matrix so that I can call each successive function at a specific time, e.g. when a button is pressed. I tried the following: from machine import Pin import utime # A G ...
- Thu Jun 10, 2021 3:04 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: WARNING:root:Unexpected echo
- Replies: 3
- Views: 5575
- Thu Jun 10, 2021 10:46 am
- Forum: Raspberry Pi microcontroller boards
- Topic: WARNING:root:Unexpected echo
- Replies: 3
- Views: 5575
WARNING:root:Unexpected echo
Not sure what's happened, I received this error in the shell and am now receiving the same error every time I attempt to run any programme, even programmes that I know work. WARNING:root:Unexpected echo. Expected b'%Run -c $EDITOR_CONTENT\r\n', got b'You pressed the button!\r\n' It came after trying...
- Wed Jun 09, 2021 1:22 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Make a counter
- Replies: 4
- Views: 2424
Make a counter
Hi, I'm new to micropython and the pi pico board, but I'm developing activities for students using basic components, a pi pico and Thonny. I'm trying to develop a programme that essentially uses a single-digit 7-segment display to count to 5 from 0, and have attached my code so far which works but w...