Hi,
Why at mirror inclusion to the programmed image the shone strip is added? Look the attached screenshot. At normal inclusion (not mirror) everything is all right. How to get rid of it?
Regards
Mirror and Don't mirror - problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 6
- Joined: Sat May 30, 2009 1:02 am
Mirror and Don't mirror - problem
- Attachments
-
- 555.JPG (61.73 KiB) Viewed 3970 times
-
- Posts: 6
- Joined: Sat May 30, 2009 1:02 am
Re: Mirror and Don't mirror - problem
Nobody knows? What can be? In pictures of users the same problem - look. On the mirror party there is a parasitic luminescence of LEDs.
- Attachments
-
- 22.JPG (10.38 KiB) Viewed 3956 times
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Mirror and Don't mirror - problem
hmm, thats a bug we havent heard of before. does it move if you change the magnet position?
-
- Posts: 6
- Joined: Sat May 30, 2009 1:02 am
Re: Mirror and Don't mirror - problem
Position of a magnet does not correct a question. If the image is located on all area - then this luminescence is not visible. If the image is located not on all area - then there is a parasitic luminescence
-
- Posts: 46
- Joined: Sun Jul 09, 2006 2:00 pm
Re: Mirror and Don't mirror - problem
There already was solution for this bug on forum, cant find it now. That "line" is last line of previous image or first of next image cant tell for shure =]
But You must change this (in main.c):
to this:
But You must change this (in main.c):
Code: Select all
if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) {
// less than ~5 seconds since last sensor
PORTA |= 0x1;
eepromaddr %= NUM_PIXELS * 4;
spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT);
if (mirror) {
spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr), BACK);
} else {
LATCH_SELECT_PORT |= _BV(BACK);
NOP; NOP; NOP; NOP;
LATCH_SELECT_PORT &= ~_BV(BACK);
}
Code: Select all
if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) {
// less than ~5 seconds since last sensor
PORTA |= 0x1;
eepromaddr %= NUM_PIXELS * 4;
spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT);
if (mirror) {
spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr)-4, BACK);
} else {
LATCH_SELECT_PORT |= _BV(BACK);
NOP; NOP; NOP; NOP;
LATCH_SELECT_PORT &= ~_BV(BACK);
}
-
- Posts: 6
- Joined: Sat May 30, 2009 1:02 am
Re: Mirror and Don't mirror - problem
Thanks. I will try.
Last edited by Kama on Wed Jul 28, 2010 6:10 pm, edited 1 time in total.
-
- Posts: 6
- Joined: Sat May 30, 2009 1:02 am
Re: Mirror and Don't mirror - problem
matajumotors wrote:There already was solution for this bug on forum, cant find it now. That "line" is last line of previous image or first of next image cant tell for shure =]
But You must change this (in main.c):to this:Code: Select all
if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) { // less than ~5 seconds since last sensor PORTA |= 0x1; eepromaddr %= NUM_PIXELS * 4; spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT); if (mirror) { spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr), BACK); } else { LATCH_SELECT_PORT |= _BV(BACK); NOP; NOP; NOP; NOP; LATCH_SELECT_PORT &= ~_BV(BACK); }
Code: Select all
if (sensor_timer < ((F_CPU/NUM_PIXELS)/256 * STANDBY_TIMEOUT)) { // less than ~5 seconds since last sensor PORTA |= 0x1; eepromaddr %= NUM_PIXELS * 4; spieeprom_read_into_leds(eepromaddr + anim_eeprom_offset, FRONT); if (mirror) { spieeprom_read_into_leds(anim_eeprom_offset + (1024UL-eepromaddr)-4, BACK); } else { LATCH_SELECT_PORT |= _BV(BACK); NOP; NOP; NOP; NOP; LATCH_SELECT_PORT &= ~_BV(BACK); }
Only I have not understood - how to make these changes? Where to make changes? The special program is necessary? Help, please
Regards
-
- Posts: 46
- Joined: Sun Jul 09, 2006 2:00 pm
Re: Mirror and Don't mirror - problem
Personaly i am using AVR Studio, but the easiest way i think, is to download firmware, there will be source files, make file and hex file. edit the main.c in notepad (add "-4"), save and compile it with the make file, search site for tutorial using make files. Then upload new hex to spokepov.
-
- Posts: 6
- Joined: Sat May 30, 2009 1:02 am
Re: Mirror and Don't mirror - problem
Thanks. If I make changes - all will earn normally? And not the mirror party also will be normal to work?
P.S. How with you to communicate? I have a question concerning your project on a site http://kaspars.id.lv (a lantern for a bicycle). My server gives out an error at letter sending My address kama95@BANNED
P.P.S. Do you speak in Russian?
P.S. How with you to communicate? I have a question concerning your project on a site http://kaspars.id.lv (a lantern for a bicycle). My server gives out an error at letter sending My address kama95@BANNED
P.P.S. Do you speak in Russian?
Last edited by Kama on Thu Aug 12, 2010 1:31 pm, edited 1 time in total.
-
- Posts: 46
- Joined: Sun Jul 09, 2006 2:00 pm
Re: Mirror and Don't mirror - problem
If you will change that, everything will work as it should. =] Da, ja govorju po russki =] mail is working.
-
- Posts: 28
- Joined: Mon Dec 19, 2011 11:19 pm
Re: Mirror and Don't mirror - problem
Hi
May I know how to upload the new firmware into Spokepov with USBtiny?
May I know how to upload the new firmware into Spokepov with USBtiny?
Please be positive and constructive with your questions and comments.