When the code HERE(Edit: Wrong code :) is used, the Serial monitor is spammed with this:
http://pastebin.com/nsD4CALFg
I cannot find any problems with the code, and it is a long one...
EDIT2: It now spams this http://pastebin.com/BXfFFBKHz
I know what was wrong(Sort of)... There was a bug with that specific program, because I copied the exact same program into an empty one and it worked :L...
Related
I am trying to turn my uno to joystick. I have two UNO's one of them is like in the first picture, and the other one is like in the second picture. As I see the tutoriols about turning an uno to joystick mostly they use the one that is shown in the second picture. But, my PC does not recognize the second uno. It is not in the com port or unknown devices, it just does not recognize. And as the first UNO, I uploaded CH340 driver and it is seen in the com port. But when ı try to turn it into joystick it gave me the error "Atlbusbdfu. not found" I erased the Flıp. However when ı tried to reinstall it it said to me like it is already installed please remove it. It was not seen in the files, so ı went to "add or remove programs" part. It was seen there, but when ı tried to delete it it gave the error "ıt is not detected by windows, please make sure it's name is correct" . Now I can not reinstall flip, but there is not flip in my computer. I would like to ask three questions. First one; How can ı delete and install flıp again? Second one; How can I get the second uno recognized by pc? Third question; Would it be a problem as the first uno is different then usual? Also, sorry for my english. I am not so good at it.
image
(First UNO)
image
image
600×600 81.1 KB
(Second UNO)
I would really appreciate the help
f
When I test my code, I add Serial.print messages temporarily, to see what my code does. This is quite tedious, because there's no such thing as printf() in the Arduino world. Plus sometimes I forget to remove the Serial.print()s and I must search them later in my code to remove them. And if I put the Serial.print()s into a loop, the output will scroll so fast that I can't really track how the values are changing. Then I need delay(), which are yet another piece of test code to remove later.
Is there any library or tool out there that makes this task easier?
If you've got Visual Studio you can use VisualMicro for real debugging including breakpoints and value monitoring:
http://www.visualmicro.com/page/Debugging-for-Arduino.aspx
It works with the community edition of Visual Studio (which is free):
http://www.visualstudio.com/products/visual-studio-community-vs
I've used VisualMicro a lot and it's a real time saver because you can really focus on debugging and not on adding log calls.
You can use the tried and true conditional compilation method such as with:
#ifdef DEBUGGING
Serial.print (something);
Serial.print (somethingElse);
delay (1000);
#endif
Then, compile yor test code with the DEBUGGING flag set, whilst leaving it off in the production code.
That way, you don't need to remove the debug code from your source, it's removed automatically by the compiler itself.
I am trying to write and read from the EEPROM (25LC256) with my dsPIC 33FJ128MC804, I tried to use the examples from the website, however they used the explorer16 with the dsPIC 33FJ256MC710, so I take the code and I made the changes to used it in my dsPIC but I started to use interruptions, right now I can send data, but I am not able to read from the memory, even if I follow the steps in the datasheet of the EEPROM and using the configuration of the SPI.
Could you help me please with this little problem please?
UPDATE: I just noticed that whenever I send the code for read the STATUS register I always get zero as answer, is it normal?
source code: https://www.dropbox.com/s/wdahlmhjrilcqw6/main.c?dl=0
Going through the phantomJS code i ran into this in the webpage.cpp file (line 315)
connect(m_networkAccessManager, SIGNAL(resourceRequested(QVariant)),
SIGNAL(resourceRequested(QVariant)));
And i don't quite understand how this works, i'm aware that you can connect signals to signals in Qt.
On the Qt documentation i found out that you can also connect signals directly to a method (http://doc.qt.io/qt-5/qobject.html#connect-2) , seeing that it's a 3 parameters call i thought that this would be the desired function on the webpage.cpp code, but connecting a signal to the same signal...i got completely lost there, any help?
PD: not very experienced in Qt i should say, sorry if it's a dumb question
Three parameters QObject::connect()
connect(m_networkAccessManager, SIGNAL(resourceRequested(QVariant)),
SIGNAL(resourceRequested(QVariant)));
is an equivalent of
connect(m_networkAccessManager, SIGNAL(resourceRequested(QVariant)),
this, SIGNAL(resourceRequested(QVariant)));
Thus, QNetworkAccessManager::resourceRequested(QVariant) is connected to WebPage::resourceRequested(QVariant) and cause the latter to be emitted every time when the former is emitted.
More details in Qt documentation
i made a program using Qt for Symbian, its all working very well ... However, it always exits with a status code -10737something when i close the program
i think the problem is in the deconstructer, maybe some memory leaks ... any suggestion on how to solve this problem, or to find the error using Qt Creator?
thanks
Record the exact number, convert it to hexadecimal, then put the result into a search engine and see what you can find.
The exit code you've got is most likely an error code which would normally be represented in hexadecimal (but the operating system has chosen to report program exit codes in signed decimal format).
Symbian defines a lot of globally used error codes. The most complete error code reference I know of can be found on newlc.com page.
If you post the question on SO, please be as precise as possible, don't write "I got -128903something error, please help", because the answer to the question phrased this way is "You've got an error somewhere in your code".
So if you need more help, post the error code with all details.