Cronios 2 BASIC code modification for LED Nixie L…how to?

Startseite Foren LED-Nixie-Clock Cronios 2 BASIC code modification for LED Nixie L…how to?

Ansicht von 2 Beiträgen - 1 bis 2 (von insgesamt 2)
  • Autor
    Beiträge
  • #1802
    theurge
    Teilnehmer

    Hello, I’m in the US and want to find out how I would modify the basic code to add another color mode. I would like to make the hour, minutes and seconds their own separate color to make it easier to view.

    I apologize in advance, I am a programming novice. It appears to me that the code responsible for the various color modes is at lines 1000-1040 in the 2.15 version of the file but beyond that I am unsure how I would change the colors.

    Any help would be greatly appreciated!

    Thank you

    #1803
    Vanessa
    Moderator

    Hi,
    we would suggest editing 1040. h is the color, p is the starting position (0-10-20-30-40-50) and z is a counter.
    For example:
    1040:
    if p < 20 then led.ihsv(1, 0, 255, v – b)
    if p > 19 and p < 40 then led.ihsv(1, 120, 255, v – b)
    if p > 39 then led.ihsv(1, 240, 255, v – b)

    there are of course more options 🙂
    Regards
    Vanessa

Ansicht von 2 Beiträgen - 1 bis 2 (von insgesamt 2)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.