Search found 9 matches
- Tue Aug 09, 2016 10:06 pm
- Forum: General Discussion and Questions
- Topic: How to create an array of 16-bit words?
- Replies: 2
- Views: 6098
How to create an array of 16-bit words?
I'd like the use the ADC in 12-bit resolution mode and write to a buffer of 16-bit words. How to create this array in uPython? Doing "a = array.array('i',range(100))" creates an array of 4-byte words. Is there something like bytearray but for words? I guess there is plenty of RAM in the CPU and I co...
- Mon Aug 08, 2016 2:36 pm
- Forum: General Discussion and Questions
- Topic: Where to find source code for Pyboard classes?
- Replies: 2
- Views: 3079
Re: Where to find source code for Pyboard classes?
Thanks, Dave. I read through adc.c more thoroughly overnight and saw the notations for interfacing to Python.
- Mon Aug 08, 2016 12:07 am
- Forum: General Discussion and Questions
- Topic: Where to find source code for Pyboard classes?
- Replies: 2
- Views: 3079
Where to find source code for Pyboard classes?
I'd like to read the source code for the Pyboard class ADC library. Where do I find this? I've fished around in github but don't see it. I found "stmhal" in micropython-master and it contains adc.c, but there must be a Python layer above that.
- Mon Aug 08, 2016 12:03 am
- Forum: General Discussion and Questions
- Topic: Can't get REPL prompt
- Replies: 16
- Views: 16420
Re: Can't get REPL prompt
What fixed the problem for me was running Dell diagnostics on the USB system. I know the specifics of what I'm offering are only applicable to Dells, but maybe others can find similar diagnostic programs. In dell.com/support, once you let it identify your computer, you are offered an array of tests....
- Mon May 02, 2016 7:06 pm
- Forum: General Discussion and Questions
- Topic: Can't get REPL prompt
- Replies: 16
- Views: 16420
Re: Can't get REPL prompt
I think my difficulty is due to a problem in my computer, perhaps conflicting USB drivers. I cranked up an old laptop running Windows XP, removed all old USB drivers, installed pybcdc.inf, and the program works properly there.
- Mon Apr 25, 2016 6:14 pm
- Forum: General Discussion and Questions
- Topic: Can't get REPL prompt
- Replies: 16
- Views: 16420
Can't get REPL prompt
Simply put, when I press Ctrl-C in puTTY, my program stops but I don't get a REPL prompt. Where is the REPL data going? boot.py: import pyb pyb.usb_mode('CDC+MSC') # act as a serial and a storage device pyb.main('main.py') # main script to run after this one main.py: import pyb switch = pyb.Switch()...
- Wed Apr 06, 2016 5:21 pm
- Forum: General Discussion and Questions
- Topic: Need help debugging with REPL
- Replies: 11
- Views: 12350
Re: Need help debugging with REPL
@pythoncoder - Thanks, Peter. I'll try your approach of running the program from REPL. I have so far been running the program as a startup, without starting from REPL.
- Fri Apr 01, 2016 5:54 pm
- Forum: General Discussion and Questions
- Topic: Need help debugging with REPL
- Replies: 11
- Views: 12350
- Fri Apr 01, 2016 3:12 pm
- Forum: General Discussion and Questions
- Topic: Need help debugging with REPL
- Replies: 11
- Views: 12350
Need help debugging with REPL
This is my first post. By way of introduction, I'm a longtime programmer currently using E-Lab Pascal (from Germany) for embedded projects with Atmel AVR chips, and Labview for data acquisition and analysis. I also used Ada for about 8 years. I've never used Python and am just beginning to work with...