Verfasste Forenbeiträge
-
AutorBeiträge
-
Jon
TeilnehmerTheraVet,
The color is set at a global level (of sorts). The display routine for the clock (all modes) is at 1000:
If you wanted to „hack“ it (which is what I’d do to start), I would take over one of the color modes (multi-color maybe). Something like:
t = read 20, 5 ‚ read colour value from index
if p < 20 then t = read 20, 4 ‚ read a different color for date
LED.ihsv(1, t, 255, v – b) ‚ set „standard 1 colour“ at brightness V
goto 1090This would use color „5“ for the time, and color „4“ for your date. With some more work you could make this change with the dial.
As for skipping the 0 digit, you just need to add an if before the gosub:
n = s / 10
p = 0
if n <> 0 then gosub 1000I didn’t test any of this, but feel free to let me know if you need any additional assistance (of if I’ve misunderstood what you wanted)
Jon
TeilnehmerOk, that makes more sense now!
Vanessa nice work… I’m sure I made a mess! 😀
I’ll take a look and try to add the flicker back in and not disrupt the rest (if that’s ok).
Jon
TeilnehmerER-Tronik,
Is there a reason why the calibration is set with the io.sys every cycle in Vanessa’s code? Do we need to set the calibration before reading from the RTC? Can we just set it once (powerup and when the calibration value changes)?
Jon
TeilnehmerI found and squashed a few more bugs. I also freed up a few more variables for future use. Hopefully this is the last update in a while.
https://www.dropbox.com/s/ougi28d0vcmyuyx/LED-Nixie-Clock-2.02.js.bas.txt
If you need to contact me, feel free at led-basic.driestone@surfspamfree.com
Cheers!
Jon
TeilnehmerLastly, my additional options should be enabled by default if you do a eeprom reset by holding the dial when plugging in power. That would have also fixed your bombing code.
I will admit that this is very much „beta“ code mostly for my own edification and purposes. I will do my best to debug/fix issues that anyone finds. I’m not really testing beyond my own specific install (12 hour time, US date display, etc). I’m trying to be agnostic enough that other configurations should work too.
Jon
TeilnehmerChris, I reused some eeprom values from the older clock values. If they were out of range from the old values it would crash. I’ve added some bounds that should (crossing fingers) prevent that.
I also realized my RTC drift code wasn’t working quite right, so I spent the last few days rewriting it. I think this operates better.
Additionally changed the date editor so the order of editing matches your date format. Lastly I tried to clean up some variable usage to free up some variables in case anyone needs variables in the future!
https://www.dropbox.com/s/dik3ud4390uob0z/LED-Nixie-Clock-2.01.js.bas.txt?dl=0
Jon
TeilnehmerHere is a link to a youtube video of the flicker and fade in action (the setting allows for more, or less of both)
Jon
TeilnehmerA few weeks ago I build my clock, and over the weekend I built a box to put it in. I did download and install the English version of the software and installed it, but I had a few issues.
First, my clock has a drift of about 45 seconds per day. Second, there are a lot of extras that I really didn’t care for, so I sat down and modified the 1.5 clock.
I rewrote the time drift calculations so they are done real-time, and updates the RTC at midnight. I extended the maximum drift to 99 seconds.
Additionally, I attempted to replicate something that looks more like a 1940s/50s side lit display by adding an additional color that looks more like an incandescent light bulb.
As part of my attempt to make this thing look „old“, I added a fade between numbers (so when a number changes it fades out quickly, and fades the next one in).
Additionally I added a flicker, which randomly flickers numbers (as if the bulbs are old or bad grounding).
Note that I stripped out a bunch of stuff. I removed the alarm, stopwatch, slot machine, party mode, and second flip options/code. Additionally I had to remove the buzzer off of my controller board because it sat too high (I was going to resolder it under the board where it would fit, but it broke when I attempted to remove it), so I haven’t verified that the buzzer works properly.
My photo looks pink, but in person it’s an off-white color.
Here’s a link to my file: https://www.dropbox.com/s/g3oor6vxk4ec6ig/LED-Nixie-Clock-2.00.js.bas.txt
I haven’t fully tested the 24 hour mode, and I’m still verifying that my method to combat drift is working properly, but I figured I’d release it into the wild and see what people thought.
-
AutorBeiträge