123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|283|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> SpinalWatch

Page : 1 2 Prev 3 4 Next 5 6 7 8 9 10
Mon, 26 Jun 2023, 10:40
spinal
Oh, the XIAO BLE is smaller and cheaper
Sun, 02 Jul 2023, 00:23
spinal
Ok, new chip and new screen, so far, the pin numbers are wong on the xiao chip in Arduino, that doesn't make things easy.

-=-=-
Check out my excellent homepage!
Mon, 03 Jul 2023, 10:40
spinal
OK, changed my method for showing the time, instead of wasting resources on a second timer than increments the clock based on checking if millis() has changed, I'm just using millis() and calculating the current time based on the user inputted current time and the running time. So far so good, but I can't think of how to add the date in the same way.

-=-=-
Check out my excellent homepage!
Wed, 05 Jul 2023, 03:57
spinal
bloody hell, I've forgot how to do a simple scrolling menu...

My brain can't see whats wrong here



-=-=-
Check out my excellent homepage!
Wed, 05 Jul 2023, 04:03
Jayenkai
What is/isn't happening?
I'd at least add a catch for listEnd, to stop the listStart going further than 4-positions from the end.



|update| -=-=- |update|
Oh, also, you're using menuText[pos], but you should be using menuText[ t ]. Pos is the position on the screen, t is the position in the list.

-=-=-
''Load, Next List!''
Wed, 05 Jul 2023, 08:46
spinal





-=-=-
Check out my excellent homepage!
Wed, 05 Jul 2023, 09:32
Jayenkai
Yep, works a treat
I'll have a look later. Brain's currently fried!

-=-=-
''Load, Next List!''
Wed, 05 Jul 2023, 09:37
spinal
The problem I have, is that it's something I've done hundreds of times, but just can't see whats wrong.

|edit| Oh, hang on.....



Yup, I'm an idiot.

-=-=-
Check out my excellent homepage!
Wed, 05 Jul 2023, 11:24
Kuron
I am glad that Spinal uses his powers for good.
Wed, 05 Jul 2023, 13:04
spinal
Just imagine the chaos I could cause!
Sat, 08 Jul 2023, 15:37
spinal
Oh, why wont I ever learn to keep my code backed up with some sort of version control?

-=-=-
Check out my excellent homepage!
Sat, 08 Jul 2023, 18:09
Kuron
*whacks spinal* Bad Spinal!

I never use any official version control, just frequent saves and renames before any major new changes, so I end up with a directory full or near duplicate files.
Mon, 10 Jul 2023, 14:31
spinal
OK, got the screen working again, this time using hardware SPI instead of the software SPI that the gfx library uses. Which gets me a fairly respectable 102fps.
However, I will need to write my own gfx routines from scratch, but that's no big deal, I am a genious after all lol.

I know I'd only need 1fps or even 1fpm, but not seeing the screen update is really good.

|edit|


I can see how this screen saves energy. There is no onboard processor, or at least nothing that really 'does' anything. You upload the data directly to the screen, nothing transfering from on buffer to the screen at x times per second, you just put the data where you want it and it stays there.
So, if you update fast enough for persistance of vision to merge the black and white pixels, there is no refresh rate to fight, so the camera can pick it up no problem.

That's a 1 colour screen refreshing at about 100fps, flicking between 3 images. no tearing or anything.

-=-=-
Check out my excellent homepage!
Mon, 10 Jul 2023, 15:15
Jayenkai
Cool!
Mon, 10 Jul 2023, 15:25
Kuron
Awesome and impressive!
Tue, 11 Jul 2023, 02:24
cyangames
That's really cool!
Thu, 13 Jul 2023, 01:07
spinal


Got a basic text routine in, as a test I'm pixeling the whole screen one pixel at a time and still getting 70fps.

-=-=-
Check out my excellent homepage!
Fri, 14 Jul 2023, 16:10
spinal
Replaced the text routine with a general (but still basic) sprite routine.
Also testing the 'low power' mode, which apparently puts itself to sleep until a timer wakes it up, i've set it for just under a second as the screen needs its DC bias reversed to prevent damage in the long term (apparently other screens do this internally themselves).




Anyway, the next test will be, plug it in and leave it running for a good few hours to see how well it keeps time without an external RTC connected.

-=-=-
Check out my excellent homepage!
Fri, 14 Jul 2023, 16:32
Jayenkai
Good luck with the test!
Sat, 15 Jul 2023, 07:56
spinal
After more than 5 hours today, the time is still exact to the second.


Oh no! I'll need some sort of scritping engine for the watchfaces....

-=-=-
Check out my excellent homepage!
Sat, 15 Jul 2023, 09:46
Jayenkai
Might be better to hardcode them, rather than trying to code an interpreter which would inevitably end up using more power, I'd imagine.

-=-=-
''Load, Next List!''
Sat, 15 Jul 2023, 10:01
spinal
Yeah, but I'd like to change the clockface on the fly without having to rebuild the whole program.

-=-=-
Check out my excellent homepage!
Sat, 15 Jul 2023, 10:43
Jayenkai
Be as optimised as you can, then.
I'm not really sure on the best way to go, to be honest.
As optimised as JSE is.. .. it isn't!!!!

-=-=-
''Load, Next List!''
Sat, 15 Jul 2023, 14:07
spinal
As a rule, I generally don't listen to my food, but maybe this time it's on to something....



-=-=-
Check out my excellent homepage!
Sat, 15 Jul 2023, 14:17
Jayenkai
Go, Go, Spinal!!! \o/yeay\o/
Sat, 15 Jul 2023, 17:22
Kuron
My last fortune cookie didn't have a fortune in it. Such is the life of Kuron. Yours seems spot on!
Page : 1 2 Prev 3 4 Next 5 6 7 8 9 10