Hello,
I'm just wondering if there is a list of OS Error codes and their meanings?
Is this the kind of area where they are described: https://github.com/micropython/micropyt ... e/device.h?
Thank you in advance!
Search found 23 matches
- Wed Feb 11, 2015 4:28 pm
- Forum: General Discussion and Questions
- Topic: OS Errors and their meaning
- Replies: 4
- Views: 9179
- Mon Jan 26, 2015 10:55 am
- Forum: General Discussion and Questions
- Topic: Select Class
- Replies: 1
- Views: 2134
Select Class
Hello,
Excuse my ignorance but what is the difference between using uart.any() and the Select Class: http://docs.micropython.org/en/latest/l ... ule-select? To me it seems like a long winded way to achieve the same results?
Please correct me if I am wrong.
Thanks, Cooper
Excuse my ignorance but what is the difference between using uart.any() and the Select Class: http://docs.micropython.org/en/latest/l ... ule-select? To me it seems like a long winded way to achieve the same results?
Please correct me if I am wrong.
Thanks, Cooper
- Thu Jan 15, 2015 9:59 am
- Forum: General Discussion and Questions
- Topic: Detecting if a PC is connected
- Replies: 6
- Views: 5949
Re: Detecting if a PC is connected
It would seem that I am trying to write too many bytes at once to the SD card. I found that reducing this to 500 bytes fixes the OSError: 5 Issue. But I am still getting missing bytes here and there...OSerror 5. Could someone please explain why that is happening and how to prevent it?
- Thu Jan 15, 2015 7:54 am
- Forum: General Discussion and Questions
- Topic: Detecting if a PC is connected
- Replies: 6
- Views: 5949
Re: Detecting if a PC is connected
I might have missed something but pyb.have_cdc() always returns False unless a terminal is open on the PC. The reasoning for detecting a PC is because I don't want the pyboard to write to flash when a computer is connected as I want to retrieve files from it: logEN = pyb.have_cdc() if not logEN: gps...
- Wed Jan 14, 2015 10:00 am
- Forum: General Discussion and Questions
- Topic: Detecting if a PC is connected
- Replies: 6
- Views: 5949
Re: Detecting if a PC is connected
I must have missed the pyb.have_cdc() function in the documentation.
With this I can just let the pyboard boot normally and only run the script if the CDC is absent.
Danke Schoen!
With this I can just let the pyboard boot normally and only run the script if the CDC is absent.
Danke Schoen!
- Tue Jan 13, 2015 3:17 pm
- Forum: General Discussion and Questions
- Topic: Detecting if a PC is connected
- Replies: 6
- Views: 5949
Detecting if a PC is connected
Hello, I am trying to get the micropython to switch into different modes depending on whether a PC is connected or not. If a PC is not connected I want it to run a script without any input (this part is easy enough), but if a PC is connected I don't wait it to do anything unless instructed to do so....
- Wed Nov 05, 2014 10:04 am
- Forum: Hardware Projects
- Topic: Module for DHT22 temperature/humidity sensor
- Replies: 13
- Views: 18554
- Wed Nov 05, 2014 9:54 am
- Forum: General Discussion and Questions
- Topic: MicroPython for machine vision project?
- Replies: 4
- Views: 9960
Re: Advice please
Hi Johan,
I found this book a while ago http://pythonforengineers.com/
But it is only available for preorder at the moment, he has a section on image processing, perhaps this is what you're looking for?
I'm still waiting for my copy
I found this book a while ago http://pythonforengineers.com/
But it is only available for preorder at the moment, he has a section on image processing, perhaps this is what you're looking for?
I'm still waiting for my copy
- Wed Nov 05, 2014 9:50 am
- Forum: General Discussion and Questions
- Topic: New starter to uPython board
- Replies: 9
- Views: 7559
Re: New starter to uPython board
Hello Brian, Thank you for your input, I agree that directly measuring the output would be best as I don't really fancy doing Fourier analysis (especially as I have forgotten it all!). As I do not need to sample for long periods of time, there might be enough ram to store the info on. I intend this ...
- Mon Nov 03, 2014 9:51 am
- Forum: General Discussion and Questions
- Topic: New starter to uPython board
- Replies: 9
- Views: 7559
Re: New starter to uPython board
Does anyone have any other suggestions for measuring rise time for a signal on an RS485 bus without having to use a really fast ADC? Or another means of measuring signal quality... My other idea was to measure the capacitance of the line as any rise time below the time constant would never reach pea...