Go Down

Topic: How to upload images [SOLVED] + other beginners questions [NOT SOLVED] (Read 2547 times) previous topic - next topic

Krodal

Hello,

(1) I use two pictures for this item : http://arduino.cc/playground/Main/SPX3058D
But one is already removed from tinypic.com. How can I upload images to arduino.cc ?
[SOLVED] Scroll down to this one: http://arduino.cc/forum/index.php/topic,100237.msg753755.html#msg753755

(2) An example is not so good at sizeof : http://arduino.cc/en/Reference/Sizeof
The last example should not have the "- 1".
Someone already mentioned this in the forum, but it is not corrected.
[NOT SOLVED]

(3) The "tone" function is not for the ATmega8 : http://arduino.cc/en/Reference/Tone
There is already a better and good version, but the new one is not in Arduino 1.0.
[IT'S TOO OLD]

CrossRoads

To upload images, click on Additional Options below, browse to your image.
Resize before posting so its like 1000 x 800, too big makes it hard  to see.

Or, use the Insert Image button above (bottom row, 2nd from left)
it will create [ img ] & [ /img ] tags (less the spaces), put a weblink to your picture.jpg in the middle.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Krodal

I already know how to upload images for the forum, but i need to upload images for the playground.
I do use a weblink now, but my image was removed from tinypic.com. So I want to upload it to arduino.cc.


CrossRoads

I followed the links in the playground section, found this for images.

http://arduino.cc/playground/PmWiki/Images
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Krodal

That's about an image which is uploaded to an other server.
That's what I did, but I want to avoid that.
I want to upload to arduino.cc (to the playground wiki actually).

There is also information about uploading with PmWiki : http://arduino.cc/playground/PmWiki/Uploads
But that still does not explain how I can enable the uploading of images.

CrossRoads

Says right at the top of that:

"Note: PmWiki is distributed with uploads disabled by default. See Uploads Admin for information about how to enable and configure the upload feature. "

So maybe you can't.

Maybe link to an attachment you've uploaded elsewhere in the forum?
http://arduino.cc/forum/index.php?action=dlattach;topic=80483.0;attach=15949
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Krodal

It came to my mind also, to uploading it in the forum and using it in the Playground.

Thanks for you answers. Perhaps I have to mail a moderator or so. I want to participate in Arduino, but this is a little disappointing.

CrossRoads

Well, mailing us moderators won't help, we have no privileges like that.
Try the Arduino Team members, they are listed on the Home page, and you can PM them.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Krodal

#9
Apr 09, 2012, 04:16 am Last Edit: May 03, 2012, 10:55 am by Krodal Reason: 1
Answer to question (1) found.
Uploading a picture to Playgrond :
I used "Attach:filename" (without quotes), and select 'Preview'. Clicking on the 'attach' link will show an upload page.
The filename has to match.

For an image that is located elsewhere, just the link with http://.... will do, without the "Attach".

David Cuartielles

Hello,

it is common practice to separate questions in the forum, as they will otherwise be hard to search in the future. It would have been good if you had posted three topics instead of just one.

Anyway, your questions are very valid. I am happy you figured out about how to attach images in the playground, it is not the easiest thing in the world, but it is easy enough. The good news are that, unlike other places, we do not erase pictures unless they are offensive. Also we run backups daily and weekly.

As for the other two questions:

Quote
(2) An example is not so good at sizeof : http://arduino.cc/en/Reference/Sizeof
The last example should not have the "- 1".
Someone already mentioned this in the forum, but it is not corrected.


This is not exact. A properly formatted string is an array of bytes that has one more byte closing. That character is NULL (ASCII of value 0). Therefore we need one byte less than the size of the array of bytes that makes the string. You can try yourself to remove the "-1" from the code and you will see how character 14 comes out empty.

On the other hand, there was a different error due to the upgrade to Arduino 1.0 that removes Serial.print(var, BYTE) to become Serial.write(var). I have fixed that in the example, thanks for reporting.

Quote

(3) The "tone" function is not for the ATmega8 : http://arduino.cc/en/Reference/Tone
There is already a better and good version, but the new one is not in Arduino 1.0.


As we noted prior to the release of Arduino 1.0, we are going to slowly let the ATmega8 go. There are many libraries that are not going to work with that processor because of its lack of memory space, but also because of having less timers. However, if there is a better library for tone that is also covering the ATmega8 I would like to know. Could you please post a link to the one you are referring to?

/d

Krodal

The Reference of sizeof() is now odd again: http://arduino.cc/en/Reference/Sizeof
The comment is about a string with a trailing NULL, but the example is with "myInts".
Even with 16-bit characters the variable would not be called "myInts".
And with an array of integer data, there is probably no trailing NULL.
This is confusing for new programmers.
Please make it two examples again, one for a string (with -1), one for integers (without -1).

The ATmega8 is no longer used on Arduino boards, but it is very cheap for home-made Arduino-compatible boards.
The new tone() library: http://code.google.com/p/arduino/issues/detail?id=292

Go Up