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

Page : 1 2 3 4 5 6 7 8 Prev 9 10 Next
Mon, 14 Aug 2023, 15:30
spinal
Got a work around, I'll have to check it every half hour though and copy+paste into a doc. ¯\_(ツ)_/¯

-=-=-
Check out my excellent homepage!
Mon, 14 Aug 2023, 15:33
Jayenkai
Well, if that's workable. Might be tricky overnight, though.

-=-=-
''Load, Next List!''
Mon, 14 Aug 2023, 20:14
Kuron
You can do it, we have faith in you!
Tue, 15 Aug 2023, 00:46
spinal
Well, if that's workable. Might be tricky overnight, though.


If I remove all the power saving code, then it only gets a couple of hours battery, especially if I stick a couple of LED's on there also.

-=-=-
Check out my excellent homepage!
Tue, 15 Aug 2023, 09:32
spinal


Something is up with my pixel function, not 100% sure what it is, but it's not rendering 'black' pixels. I *think* the screen is inverted compared to most monocheomr screens, so White = 0 and Black = 1 (I think).

So perhaps this...


Isn't doing what I think it is?

|edit|
Forget that, I'll leave it there to show how stupid I was.
The problem was in my sprite drawing function, I forgot I attempted to add transparency a couple of days ago.

-=-=-
Check out my excellent homepage!
Tue, 15 Aug 2023, 09:54
Jayenkai
I'm sure there's a reason for it, but what's with the or and anding when setting the stuff value? Should you not just be setting it directly to the value?

|edit| LOL, ok! |edit|

-=-=-
''Load, Next List!''
Tue, 15 Aug 2023, 12:19
spinal
bah, it's crashing more than ever now.

Time to start over.

-=-=-
Check out my excellent homepage!
Tue, 15 Aug 2023, 12:20
Kuron
Damn. Yeah, sometimes a fresh start is best. You can do this, I know it!
Wed, 16 Aug 2023, 10:22
spinal
Reverting back to version 1, just before switching to gadgetbridge for the notifications.

First I'll get it to connect, then accept the time etc. and go from there again.

-=-=-
Check out my excellent homepage!
Wed, 16 Aug 2023, 10:34
Jayenkai
Poor Spinal
Good luck
Wed, 16 Aug 2023, 10:40
spinal
However, I did just notice that I wasn't freeing some pointers after use, perhaps that's what was causing the random crashes....

-=-=-
Check out my excellent homepage!
Wed, 16 Aug 2023, 11:17
Kuron
Oy vey! That might be enough to do it.
Wed, 16 Aug 2023, 11:26
Kuron
Spinal don't feel bad. Even the big boys are having "time issues".
Fri, 18 Aug 2023, 01:36
spinal
OK, Started from scratch, First I got the BLE code working and connecting, no problems yet.
Then I added all of the power saving code, one item at a time and still working (power at 1.9mA).
Left it running for a while, no crashing, sent multiple notifications, still no crashing.

Switched to Putty instead of the Arduino Serial monitor because it supports unicode formatting commands (such as colours and clearing the screen)


I noticed that txt messages come through twice, once without any sender info, then again with full info. I guess I need to put a check for that once everything is working correctly.

Todays task - get the screen working again, perhaps redo all of the pixeling code from scratch as there was some weirdness going on with that last time. But first I'll leave it running for a few hours and keep an eye on the time and crashing and stuff.

-=-=-
Check out my excellent homepage!
Fri, 18 Aug 2023, 01:51
Jayenkai
Fingers crossed!
Fri, 18 Aug 2023, 10:23
Kuron
You can do it!
Fri, 18 Aug 2023, 10:32
spinal
So far so good. I've started adding the screen functions back and it's not crashed yet. Ble is still working, slightly slower for some reason, although the power saving 'deep sleep' seems to be working fine and not killing the Ble like it did last time.

-=-=-
Check out my excellent homepage!
Fri, 18 Aug 2023, 10:48
Kuron
Keep us posted, please.
Fri, 18 Aug 2023, 14:22
spinal
Added the screen functions back, reverted to the original 'send full screen' rather than only the dirty lines, for some weird reason it isnt dirtying the lines properly and I can't be bothered to find out why.

-=-=-
Check out my excellent homepage!
Fri, 18 Aug 2023, 14:59
Jayenkai
Nothing dirty? That's 'cos your code is so perfectly clean!

-=-=-
''Load, Next List!''
Sat, 19 Aug 2023, 02:49
spinal
It's weird, I would manually force the buffer and the copy to be different, but then it would only decide that where I'd put the text was different and the background wouldn't be.

I was calling clearSceeenBuffer() in my setup, so I'd expect the first frame to render fully, but nope





|edit|
Something I should have thought of, sleeping for a second at a time, makes the buttons unresponsive. However, I get one free question per day on gpt-4, so I let AI add interrupts to be sleep and button handeling. Now, instant buttons presses even when sleeping!

-=-=-
Check out my excellent homepage!
Sat, 26 Aug 2023, 04:30
spinal
Got wordwrap sort of working, but for some reason its updating the global textY position wrongly.



|edit| Why is this 144x186 image not displayed at full size, even when clicked on?

-=-=-
Check out my excellent homepage!
Sat, 26 Aug 2023, 04:54
Jayenkai
I'm getting a 144x168 image. If it's meant to be 144x186, email me the original image and I'll have a poke around to try to figure it out.

-=-=-
''Load, Next List!''
Sat, 26 Aug 2023, 05:02
spinal
It saves as 144x168, it copy+pastes as 144x168, it only doesnt display in the post as 144x168, it displays as 130x151.

-=-=-
Check out my excellent homepage!
Sat, 26 Aug 2023, 05:12
Jayenkai
*shrugs* Not seeing it. Are you sure you haven't zoomed out SoCoder a bit in your browser or something? Hit Ctrl+0.

-=-=-
''Load, Next List!''
Sat, 26 Aug 2023, 05:14
spinal
Bloody hell, that was it.
Page : 1 2 3 4 5 6 7 8 Prev 9 10 Next