App inventor sending 0's to display

I'm noob at app inventor, and i find a problem at making a metronome.
My arduino has display and bluetooth, and it work flawless when i try to send a normal text(like the "Mi" for example). But when i try to make a string so my user can input a infinite amount of data and send to the arduino it prints "0".

I inputed Dó,Dó,sec_5,Dó with my "read" command and it shows.
List_preview: ["Do", "Do", 5, "Do"]. Note: the display don't accept accents.
Number_of_objects_in_the_list: 4.
Order: 0.

Display showed: 0000.

you have some empty sockets in your blocks... you should fill them accordingly...
also are you aware, that the index in list block returns 0 in case the thing is not found in the list? see also the documentation http://ai2.appinventor.mit.edu/reference/blocks/lists.html#indexinlist

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

Thanks for the feed back, it is so reliever receiving a message after 5 days