Search found 46 matches

by kbrenner
Mon May 09, 2022 1:42 pm
Forum: General Discussion and Questions
Topic: Viewing all class variables created within class instance
Replies: 6
Views: 2600

Re: Viewing all class variables created within class instance

I tried what you mentioned, though I don't necessarily see how it differs from the previously mentioned suggestion. Here is my output:
Machine.ADC Terminal Output.png
Machine.ADC Terminal Output.png (21.93 KiB) Viewed 2527 times
by kbrenner
Sun May 08, 2022 11:01 pm
Forum: General Discussion and Questions
Topic: Viewing all class variables created within class instance
Replies: 6
Views: 2600

Re: Viewing all class variables created within class instance

Thanks, @davef. That provides me with a list that looks like:

['__class__','__name__','__bases__','__dict__','CORE_TEMP','CORE_VBAT','CORE_VREF','VREF','read_u16']

The only one of those that is callable on a class instance is '__dict__', which effectively just prints out a large dictionary.
by kbrenner
Sun May 08, 2022 10:24 pm
Forum: General Discussion and Questions
Topic: Viewing all class variables created within class instance
Replies: 6
Views: 2600

Viewing all class variables created within class instance

After I create a class instance from test_script.py, I would like to view these variables. I know that in Pycharm, when running a Python script, you have the ability to view these variables in a variable pane; however, using the Micropython plugin, I am unable to view these variables in a the same w...
by kbrenner
Wed Jan 19, 2022 11:49 pm
Forum: Pyboard D-series
Topic: How to view changes to micro-SD card in real-time in Windows File Explorer
Replies: 3
Views: 37277

Re: How to view changes to micro-SD card in real-time in Windows File Explorer

Thanks, Dave. So does that mean that there really isn't a way to give the Pyboard permission to write to the SD card while still viewing the contents of the SD card in File Explorer without running the risk of corruption?
by kbrenner
Wed Jan 19, 2022 5:05 pm
Forum: Pyboard D-series
Topic: How to view changes to micro-SD card in real-time in Windows File Explorer
Replies: 3
Views: 37277

How to view changes to micro-SD card in real-time in Windows File Explorer

I currently have the micro-SD on the SF6W exposed in Windows File Explorer by calling the following line in boot.py: pyb.usb_mode('VCP+MSC',msc=(pyb.Flash(), pyb.SDCard())) However, when I make a modification to one or more of the contents of the SD card, it is not immediately reflected in File Expl...
by kbrenner
Thu Jan 06, 2022 7:44 pm
Forum: General Discussion and Questions
Topic: Copying from Pyboard to C drive with rshell
Replies: 3
Views: 7304

Re: Copying from Pyboard to C drive with rshell

Under windows, / will be the root of the current drive. So you have 2 options. When you launch rshell, the current directory will be the directory that you were in when you launched. You could then use: cp /pyboard/main.py main.py or if you had already changed the current directory to say /pyboard:...
by kbrenner
Wed Jan 05, 2022 7:59 pm
Forum: General Discussion and Questions
Topic: Copying from Pyboard to C drive with rshell
Replies: 3
Views: 7304

Copying from Pyboard to C drive with rshell

In the online tutorials, it is clear how to copy a file from the C drive to a Pyboard when using rshell: cp main.py /pyboard/main.py However, how do you go the opposite direction and copy a file from a Pyboard to the C drive? I have tried the following syntax but have been receiving the following er...
by kbrenner
Tue Oct 26, 2021 3:54 pm
Forum: Pyboard D-series
Topic: Soft Reboot crashing REPL prompt/rshell unable to connect to REPL
Replies: 0
Views: 30890

Soft Reboot crashing REPL prompt/rshell unable to connect to REPL

I am using a PYBD-SF6W with MicroPython v1.13, and I've been experiencing a soft reboot (hitting CTRL-D) causing the REPL prompt to completely crash. This is what I see on the screen: REPL Prompt Error.PNG Any other people ever see this? I am powering the Pyboard with an external power source and us...
by kbrenner
Wed Jun 02, 2021 3:11 pm
Forum: Pyboard D-series
Topic: SD Card becoming corrupted
Replies: 1
Views: 9314

SD Card becoming corrupted

Hi, I have an SD card mounted to the PYBD-SF6W and am writing data to it (.DAP files, .txt files, and .json files); however, it is getting corrupted quite often. Here is a picture of what the corrupted files look like: Corrupted SD Card.PNG The steps I am taking are as follows: In my boot script, I ...