Tick neon configuration in MNC6 version

More
1 month 1 week ago #12697 by xavier
Hello,

I would like to make the neons separators to glow constantly on this version but I can't find where the behaviour is configured.
I also have the old arduino shield version with the FirmwareV1 and all I had to do is replace this line:

analogWrite(tickLed, getLEDAdjusted(255, pwmFactor, dimFactor));

by this line:

analogWrite(tickLed, 255);

Anyone knows where this can be changed in the mnc6 version?

ps: sorry for my english :)

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #12698 by Ian
The English is great, don't worry... :)

The code for the MNC6 is here: bitbucket.org/isparkes/mnc6-firmware/src/master/

and you can upload it with any 6-pin ICSP device.

The MNC6 works in a different way - the separators are managed by the shift registers, and you would need to change the code around lines 2193-2197
if (blinkState) {
    long long leds = 0xf000000000000000;
    outputValue = outputValue | leds;
    outputValueCurr = outputValueCurr | leds;
  }

to be something like
  long long leds = 0xf000000000000000;
  outputValue = outputValue | leds;
  outputValueCurr = outputValueCurr | leds;

The variable "blinkState" is what controls the LEDs, if you remove the "if", they will be on all the time.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #12699 by Ty_Eeberfest
What Ian said is perfectly correct. However, in my personal programming style (a matter of opinion!) I would change this:
if (blinkState) {
    long long leds = 0xf000000000000000;
    outputValue = outputValue | leds;
    outputValueCurr = outputValueCurr | leds;
  }

To this:
// if (blinkState) {
if (1) {   // Make separators stay on constantly
    long long leds = 0xf000000000000000;
    outputValue = outputValue | leds;
    outputValueCurr = outputValueCurr | leds;
  }

My reasoning: When I decide a year from now that I want to make the separators work in the original way it will be easy to find and remember what I did!

Just my opinion... B)

Look into it later when the dust is clearing off the crater.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #12700 by xavier
Thank you! I wouldn't have guessed that (in a reasonable time) :)

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #12701 by xavier
Thank you! :woohoo:

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #12702 by Ian
totally right Ty, I was being lazy.

Please Log in or Create an account to join the conversation.

Moderators: AccutronTy_EeberfestIan
Time to create page: 0.116 seconds
Go to top
JSN Boot template designed by JoomlaShine.com