Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - kay1234

Pages: [1]
1
Developers Corner / play menu timeout
« on: 23.03.2007 at 19:33:57 »
Hi MIS,

I changed a few lines in main.c to achieve the following goals considering the menu timeout:

  • simplify changing the timeout value
  • offer possibility to deactivate the timeout completely

There is one small handling problem with deactivating the timeout and the backlight timeout: if you are still in "select mode", UP/DOWN while the display light is off will still scroll through the icon menu instead of executing a function.

Maybe you can update the SVN with this code.

Kay.


Code: [Select]
--- main.c (revision 179)
+++ main.c (working copy)
@@ -118,7 +118,8 @@
 uint8_t mnu_scroll_in_progress = 0; // for menu scrolling
 uint32_t mnu_speed; // speed of menu scrolling;
 uint32_t last_time; // helper for menu scrolling speed
-uint8_t mnu_tout = 20; // select menu timeout (10 sec). After this time menu switch to volume settings
+#define MNU_TOUT 20 // select menu timeout (10 sec). After this time menu switch to volume settings. -1 will deactivate timeout
+uint8_t mnu_timer = MNU_TOUT; // the timer counting down from MNU_TOUT
 
 
 playstate_t playstate = {0}; //!< Actual status of playing file
@@ -416,7 +417,7 @@
  mnu_speed = 8;
  break;
  }
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
 }
 
 /** \fn int get_playmenu(void)
@@ -1144,10 +1145,10 @@
  insearch = 0;
  volume_adjust(0); // update volume sign
  }
- if(mnu_tout)
+ if(mnu_timer>=0)
  {
- mnu_tout--;
- if(mnu_tout == 0)
+ mnu_timer--;
+ if(mnu_timer == 0)
  {
  mnuent = 1;
  mnuofs = 0;
@@ -1165,7 +1166,7 @@
  mnu_scroll(1);
  else
  {
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
  switch(get_playmenu())
  {
  default: break;
@@ -1196,7 +1197,7 @@
  mnu_scroll(2);
  else
  {
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
  switch(get_playmenu())
  {
  default: break;
@@ -1221,7 +1222,7 @@
  mnu_scroll(-1);
  else
  {
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
  switch(get_playmenu())
  {
  default: break;
@@ -1253,7 +1254,7 @@
  mnu_scroll(-2);
  else
  {
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
  switch(get_playmenu())
  {
  default: break;
@@ -1274,7 +1275,7 @@
  break;
 
  case EV_PRESS:
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
  mnuent = !mnuent;
  disp_mnuicon(mnuofs);
  if(mnuent)
@@ -1292,7 +1293,7 @@
  if(ev != EV_PLAYING_STARTED && ev != EV_LONGPRESS)
  playinfo();
  set_event(ev);
- mnu_tout = 20;
+ mnu_timer = MNU_TOUT;
  mnuent = 1;
  break;
  case MNU_VOLUME:

2
General Discussion / album graphics
« on: 02.03.2007 at 02:14:19 »
What file name/file type is required to display album graphics?

Greetings,
Kay.

3
Software / strange ID3V2 tags
« on: 02.03.2007 at 02:13:07 »
Hi!

I have some files here that have ID3V2 tags only. yamppPod does not display them, neither does ID3-TagIT. But Winamp and foobar2000 do not have a problem with them. File properties of Windows Explorer shows them, too. Since the ypod is not the only one not displaying them the problem seems to be more general. Anyway, I can't find out what the problem is and how to solve it. Maybe someone has an idea about this...

Greetings,
Kay.

EDIT: would be nice to display the filename on the playscreen instead of nothing in case there is no ID3 or it can't be read...

4
Wishlist / first key action switches backlight on
« on: 02.03.2007 at 02:01:44 »
In the state when the backlight is switched off the first action on the key should do nothing except for switching it back on again. At the moment the backlight is switched on and the assigned function is carried out. That means you can't just switch the backlight back on without changing the volume or switching to the menu at the same time.

5
Software / Breakout crashes (FW 0.35)
« on: 02.03.2007 at 01:55:05 »
Hi!

I finally got my card reader and a new memory card (the first one was broken, took me quite some time to find out...) and now the yamppPod runs like a charm with firmware 0.35. Except for Breakout, it simply crashes the player every time I try to open it. No blue screen, no nothing, after a little while the player just shuts off. And yes, I replaced the bin with the one from the firmware archive. What can I do about that?

Greetings!
Kay.


6
General Board / assembled yampp-3/USB at webshop
« on: 17.02.2005 at 18:27:02 »
Hi,

the assembled yampp-3/USB is out of stock at the moment and will be available in the webshop by March 21. What I ask myself is: what do I get when I order it? It should be revision D, right?

What CPU will be on the board then? Looking at the discussions in the hardware forum, it would be nice to have a mega162 on the board. I have never soldered SMD parts - I assume that replacing the CPU would be a really tough task...

Greetings,
kay1234

Pages: [1]