Thanks, that was well hidden. I usually use CircuitPython on MCUs and that uses mu-editor instead of Thonny. The Pico shows up there as a USB drive, so you use file system delete
Again, thanks.
Search found 129 matches
- Tue Feb 23, 2021 1:45 pm
- Forum: General
- Topic: how to delete unneeded micropython programs?
- Replies: 3
- Views: 210
- Tue Feb 23, 2021 1:58 am
- Forum: General
- Topic: how to delete unneeded micropython programs?
- Replies: 3
- Views: 210
how to delete unneeded micropython programs?
After going thru a bunch of micropython tutorials my Pico had a lot of unneeded programs. How do you delete those?
- Sun Feb 07, 2021 3:13 pm
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
Re: /dev/ttyACM0 disappears during debug
The correct way to upload via VSCode is using the SWD interface. That also give full debugging facilities. Its all in the Getting Started guide. Yes indeed it does upload automatically. I'm surprised that there is no longer a Build button on the bottom line. However, what I'm doing that works is: 1...
- Sun Feb 07, 2021 1:56 pm
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
Re: /dev/ttyACM0 disappears during debug
The correct way to upload via VSCode is using the SWD interface. That also give full debugging facilities. Its all in the Getting Started guide. So I think my system was setup wrong. I originally has VS Code with PlatformIO for another chip I was using. I've blown away my image and reinstalled ever...
- Sat Feb 06, 2021 11:11 pm
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
Re: /dev/ttyACM0 disappears during debug
Well if you can do it with software, then some smart person can integrate it into the VSCode system. I know of boards like Adafruit Feather ESP32 and Seeeduino Xiao, using VSCode with PlatformIO can upload the code without you touching the board. Once you get used to touch-less loading and booting y...
- Sat Feb 06, 2021 3:31 pm
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
Re: /dev/ttyACM0 disappears during debug
The USB stack is stopped when the debugger breaks. So if there is anything attached at the other end, it will give up because the USB on the Pico is no longer active and cannot respond to anything. So you cannot just start up again later, because whatever was listening at the other end will have gi...
- Sat Feb 06, 2021 10:19 am
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
Re: /dev/ttyACM0 disappears during debug
The USB CDC code is also running on the device, so when you are stopped/stepping in the debugger, the device is not responding to an USB traffic. You can use serial UART instead if you want to step thru a program with output. It is technically possible to run code on one core and debug only the oth...
- Fri Feb 05, 2021 11:59 pm
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
Re: /dev/ttyACM0 disappears during debug
The USB CDC code is also running on the device, so when you are stopped/stepping in the debugger, the device is not responding to an USB traffic. You can use serial UART instead if you want to step thru a program with output. It is technically possible to run code on one core and debug only the oth...
- Fri Feb 05, 2021 5:12 pm
- Forum: General
- Topic: /dev/ttyACM0 disappears during debug
- Replies: 13
- Views: 424
/dev/ttyACM0 disappears during debug
I'm doing the projects from the Getting Started with Pico for C/C++ Chapter 6 and trying out debugging. I'm testing with the hello_usb.c example and I can use the VSCode debugger just fine. I can step thru code, watch variable, etc. The one thing I can't do is use minicom to view the output of my pr...
- Wed Feb 03, 2021 1:14 am
- Forum: SDK
- Topic: getting started with pico VS code example
- Replies: 4
- Views: 340
Re: getting started with pico VS code example
I found some help here:
https://www.element14.com/community/com ... th-windows
i'm not using Windows, but the VS stuff helped
]
https://www.element14.com/community/com ... th-windows
i'm not using Windows, but the VS stuff helped
]
- Wed Feb 03, 2021 12:13 am
- Forum: SDK
- Topic: getting started with pico VS code example
- Replies: 4
- Views: 340
Re: getting started with pico VS code example
but with VS Code I can't build the hello_usb what exactly did you do? what exactly did it say? I did exactly what it says in the Getting Started Guide with the Pico for C/C++ If you've used VS Code, you know that any statement in the source code that generates an error is underlined with comments, ...
- Tue Feb 02, 2021 9:28 pm
- Forum: SDK
- Topic: getting started with pico VS code example
- Replies: 4
- Views: 340
getting started with pico VS code example
I'm on Chapter 6.2 of the Getting Started with Raspberry Pico C/C++. I've been successful up to this point in just working the examples, but with VS Code I can't build the hello_usb.c because there is no library to match "pico/stdlib.h".
Not sure where it is or how to add it to VS Code?
Not sure where it is or how to add it to VS Code?
- Fri Dec 18, 2020 11:23 pm
- Forum: Python
- Topic: using curses() keep newline from returning to start of line
- Replies: 2
- Views: 91
Re: using curses() keep newline from returning to start of line
Duh! that fixed it. I just changed the prints like
Code: Select all
print ("up")
Code: Select all
print ("up\r")
Thanks
- Fri Dec 18, 2020 10:53 pm
- Forum: Python
- Topic: using curses() keep newline from returning to start of line
- Replies: 2
- Views: 91
using curses() keep newline from returning to start of line
The following simple test program demonstrates my problem. # import curses import curses # Get the curses window, turn off echoing of keyboard to screen, turn on # instant (no waiting) key response, and use special values for cursor keys screen = curses.initscr() curses.noecho() curses.cbreak() scre...
- Tue Dec 15, 2020 6:31 pm
- Forum: General discussion
- Topic: Remote pigpio
- Replies: 2
- Views: 95
Remote pigpio
My first attempt at taking a python3 program that flashed an LED locally on a RPI3B+ and making it work remotely worked to my surprise. All I did was change pi = pigpio.pi() to pi = pigpio.pi('192.168.0.48') where that IP address is the address of my RPI3B+ running the pigpiod daemon and run it on a...
- Tue Dec 15, 2020 12:22 pm
- Forum: General discussion
- Topic: Understanding PIGPIO
- Replies: 8
- Views: 316
Re: Understanding PIGPIO
Thanks, that clears up a lot. I did get my simple LED example working in C using the pigpiod_if2 library. For me I guess it makes sense for me to continue to use C with the pigpiod_if2 library while running the daemon since that works along with python3 applications importing pigpio. This also allow...
- Tue Dec 15, 2020 10:56 am
- Forum: General discussion
- Topic: Understanding PIGPIO
- Replies: 8
- Views: 316
Re: Understanding PIGPIO
thanks for the pointers to the examples. I'm not sure why I didn't find them. I think I'm there but trying to sort out the different libraries. If I understand correctly there are C libraries that can be called that use the daemon and some that don't. pigpio.h is used without the daemon running?? pi...
- Tue Dec 15, 2020 2:20 am
- Forum: General discussion
- Topic: Understanding PIGPIO
- Replies: 8
- Views: 316
Re: Understanding PIGPIO
I've modified a number of RPi.GPIO sample/example python programs to pigpio and feel that I have a handle on it. However, I've had zero luck doing the same with the C language. Can you point me to some sample code for simply blinking an LED or fading a LED with PWM that use the pigpio library and da...
- Mon Dec 14, 2020 11:11 am
- Forum: General discussion
- Topic: Understanding PIGPIO
- Replies: 8
- Views: 316
Re: Understanding PIGPIO
You are using pigpio as a daemon, i.e. it is providing a service. Typically socket messages are used to talk to the daemon. Those messages may originate from any other program (whatever language they are written in). pigpio is an equal opportunities service, any one can make a request and that requ...
- Mon Dec 14, 2020 10:53 am
- Forum: General discussion
- Topic: Understanding PIGPIO
- Replies: 8
- Views: 316
Understanding PIGPIO
Now that I know the pigpio library is included with Raspberry Pi OS I'm trying to understand it better so I have a few questions. In my testing I've found that once I start the pigpiod daemon I can run multiple programs as long as they do not try to use the same GPIOs on the RPi. I'm guessing that's...
- Sun Dec 13, 2020 1:47 pm
- Forum: General discussion
- Topic: Understanding RPi.GPIO and wiringPi
- Replies: 21
- Views: 812
Re: Understanding RPi.GPIO and wiringPi
It seems that pigpio is also included with the latest Raspberry OS desktop image. It is however, v71. For fun I cloned master and built the latest which is v78
- Sun Dec 13, 2020 11:25 am
- Forum: General discussion
- Topic: Understanding RPi.GPIO and wiringPi
- Replies: 21
- Views: 812
Re: Understanding RPi.GPIO and wiringPi
... pigpio waveforms allowed me to trigger multiple exposure photos with single digit microsecond length pulses for v1 camera global external I have found examples where pigpio has been better at applications where the hardware accuracy of the signal is more important. I saw in a Youtube video wher...
- Sat Dec 12, 2020 3:08 pm
- Forum: General discussion
- Topic: Understanding RPi.GPIO and wiringPi
- Replies: 21
- Views: 812
Re: Understanding RPi.GPIO and wiringPi
Thanks all, looks like I have a direction and plenty of reading to do. This should keep me busy for a while.
- Sat Dec 12, 2020 12:54 pm
- Forum: General discussion
- Topic: Understanding RPi.GPIO and wiringPi
- Replies: 21
- Views: 812
Re: Understanding RPi.GPIO and wiringPi
I appreciate the information that has been provided. First maybe some context would help to explain my confusion and my reasons for asking these questions. I have a flock of RPi's and have been using them mostly as media computers, but as a retired BSEE, I thought I'd buy a breadboarding kit on Amaz...
- Sat Dec 12, 2020 11:11 am
- Forum: General discussion
- Topic: Understanding RPi.GPIO and wiringPi
- Replies: 21
- Views: 812
Re: Understanding RPi.GPIO and wiringPi
http://wiringpi.com/ https://sourceforge.net/projects/raspberry-gpio-python/ The first link you provided to wiringpi.com is one of the links that I question because the last active post was in August of 2019 and was more of a rant and then an update release announcement about it being updated for t...