Close

Brief keyboard and file explorer description

A project log for nWatch

Selfmade watch that helps You learn STM32 programming.

peter-wasilewskiPeter Wasilewski 09/15/2015 at 19:400 Comments

Buttons, scroll lists and textoxes are just simple C structures with some functions to controle them. They all are capable to detect a single click and hold. Scroll list and textobxes can additionally detect a finger shift and react on it, by moving the list items, or moving the text in textbox (if it's too long to be showed at one time ). Of course I have com plans regarding them - I'm planning to add an slide to show how long is the list, and some other cosmetic fixes (smoothen corners of the pixel boxes) to make the list look better. I was planning to add an label on the top of the list saying something like " choose an *.txt file " to tell the user what he/she should do. I have thought about textboxes too. Now they are only able to add or delete text at the end of the string. In the future the user is going to be able to pick the edit place by simply moving the cursor.

Hmm now I can see that I haven't showed You the keyboard in my (poor quality) video. So I made another one ;)

In the second video You can see the keyboard and a textbox used to rename a file. You have to simply hold an list iten You want to edit. I'm planning to add 2 more buttons which are : uppercase/lowercase letters and special characters. Of course the keybard is going to look nicer, but this is not the priority.

As the quality is a bit better You are likely to see the icons next to file names. They have given me a hard time, because I have to store them in internal RAM memory. Touch fifo overflow interrupt is making the sd card read function impossible to finish without an error. So I partially solved the problem by putting the icons in the stm's ram. However it's not the solution - finished watch is going to use much more icons, for sure more than 3 ;) . I'm thinking about external sram memory, but I'm not sure if it won't disturb the display ( by working on the same fsmc bus). It's still a concept, not a working solution.

Second video (keyboard and explorer) :

Copy rc5 app:

If You have any questions, fell free to ask ;)

Discussions